Forums

Resolved
0 votes
I have error when adding a website to the webserver. See the screenshot for the error.
Saturday, August 17 2019, 11:35 AM
Share this post:
Responses (11)
  • Accepted Answer

    Thursday, August 22 2019, 06:07 PM - #Permalink
    Resolved
    0 votes
    Thanks for that info Dirk!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, August 21 2019, 04:00 PM - #Permalink
    Resolved
    0 votes
    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.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, August 18 2019, 09:20 AM - #Permalink
    Resolved
    0 votes
    No. I've no idea what the default of /var/www/html is. It could even be root:root, but the flexshare app requires the group to be allusers. Part of the flexshare app is installed when you install the Web Server app as it is used for the FIle and FTP upload bits
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, August 18 2019, 07:54 AM - #Permalink
    Resolved
    0 votes
    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.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, August 18 2019, 07:10 AM - #Permalink
    Resolved
    0 votes
    Everything is pointing to a faulty installation of httpd which is an upstream package. It provides the folder /var/www/html and adds the user and group apache. The only thing I am not sure about is what changes the ownership of /var/www/html to the allusers group. It may be app-flexshare.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 17 2019, 06:49 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 17 2019, 06:43 PM - #Permalink
    Resolved
    0 votes
    The user and group apache should be added as part of the post-install script of the httpd package. The useradd may fail is a user with the same id (48) already exist. What is the output of:
    id 48
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 17 2019, 06:18 PM - #Permalink
    Resolved
    0 votes
    You can do root:allusers. I've just played arouns and it looks like you get that error when the user does not exist. To check, try doing:
    id apache
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 17 2019, 03:46 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 17 2019, 11:50 AM - #Permalink
    Resolved
    0 votes
    Yes, I have 2 users.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 17 2019, 11:49 AM - #Permalink
    Resolved
    0 votes
    Marcel van van Leeuwen wrote:

    I have error when adding a website to the webserver. See the screenshot for the error.

    Did you add a user in Account/User ?
    Not that has any use to a webserver to my opinion
    The reply is currently minimized Show
Your Reply