Share this post:
Responses (11)
-
Accepted Answer
Apache by default assigns the user as apache and the group as apache, creating both during its installation. You can change those credentials if you like in /etc/httpd/conf/httpd.conf. I know in using Joomla for my websites, doing a recursive chown to the webroot (or virtual web root) using apache:apache takes all those problems away. -
Accepted Answer
-
Accepted Answer
So "/var/www/html/" has normally the ownership of "apache:apache?
[root@voyager html]# id 48
uid=48(apache) gid=48(apache) groups=48(apache)
[root@voyager www]# ls -al
total 8
drwxr-xr-x 5 root root 48 Aug 17 20:39 .
drwxr-xr-x. 24 root root 4096 Aug 17 20:39 ..
drwxr-xr-x 2 root root 6 Jul 29 19:19 cgi-bin
drwxrwx--- 6 apache allusers 4096 Aug 18 09:25 html
drwxr-xr-x 2 root root 6 Apr 29 22:09 virtual
Installed a WordPress site in /var/www/html and it is working fine.
btw PHP Engines is a nice app it indeed solves the php issue with WordPress sites. -
Accepted Answer
-
Accepted Answer
I'm not sure anymore. I had the impression that group allusers was not there.
I did a reinstall of both system as you can see in my BDC post.
If I do now " id apache":
[root@voyager www]# id apache
uid=48(apache) gid=48(apache) groups=48(apache)
So it exists on this install. Also after installing the webserver app from the marketplace /var/www/html has owner:group apache:allusers. /var/www/virtual and /var/www/cgi/bin still are owner:group root:root -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
I did some testing and it seems my server (PDC) has no "allusers" group. The strange thing the group is in the webconfig" (webconfig --> Accounts --> group) but if I do "chown apache:allusers html" error. I changed apache with "root" thus "chown root:allusers html" same error, chown root:root html" and everything is fine. So to conclude the group allusers is not present!
[root@voyager www]# chown apache:allusers html
chown: invalid group: 'apache:allusers'
Now that I add the piece of text I realize it says clearly group. apache:allusers --> owner:group -
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »