Tagged: localhost, permisssions
- This topic has 4 replies, 4 voices, and was last updated Jun 1-7:08 am by cobber.
-
AuthorPosts
-
May 31, 2021 at 2:12 pm #60642Member
cobber
I’m new to AntiX and have just set up apache2, php and mariaDB.
I always forget the configuration for localhost as once it’s set I generally don’t touch it for a very long time.
If I want to allow the creation of directories and files in /var/www/html what is the process please?
Do I make a new group and add myself to the group and then allow the group to the html directory or is there a better way?
Many thanks
- This topic was modified 1 year, 11 months ago by cobber.
May 31, 2021 at 7:29 pm #60662Member
Xecure
::I have never set up a webserver, so I cannot provide any good guidance.
If this article is accurate
https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-debian-10
and it isn’t much different in antiX (except for service commands are different, no systemctl), then this should do.Maybe you also need to edit something in /etc/hosts, /etc/hostname and /etc/defaultdomain, but I have no idea if this is relevant. Maybe Dave or someone else can give better pointers.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.May 31, 2021 at 9:56 pm #60676Forum Admin
Dave
::If this setup is for building / testing webpages then the easiest would be to make the folder with www-data:users ownership
chown www-data:users /var/www/html chmod -R 664 /var/www/html/If it is only for your user, add a directory to your home directoy like ~/Web-tests, make the ownership your-username:www-data, and change /etc/apache2/sites-enables/000-default document root to /home/your-username/Web-tests/ followed by an apache restart (service apache2 restart).
- This reply was modified 1 year, 11 months ago by Dave.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
May 31, 2021 at 10:04 pm #60678Moderator
Brian Masinick
::I read through the article. Caveat: I do not have personal experience installing or using Apache, but many years ago I was on UNIX servers in my organization that were using Apache Web servers,so I’ve seen some of the components in action, and this article appears to be accurate for a simple, first time configuration.
Note that though they used www as their sample, that is the least secure implementation. I would opt for the most secure option that still accomplishes what you need.
As Xecure notes, anything with systemctl is using systemd, which we don’t use. In most cases, if it involves looking at information, using the logs in antiX will help. The dmesg or similar tools may suffice for some of this. Using a job control service from either sysvinit or runit that performs a similar function substitutes for what’s mentioned in the article.
As also mentioned, one of the developers who knows the definitive answer can provide the correct details.
--
Brian MasinickJune 1, 2021 at 7:08 am #60721Membercobber
-
AuthorPosts
- You must be logged in to reply to this topic.