Report this

What is the reason for this report?

suPHP w/ apache2 wont reload, why am I getting this error?

Posted on September 30, 2014
Mean

By Mean

<VirtualHost 162.xxx.xxx.xx:80>
    ServerName X.com
    ServerAlias www.X.com
    DocumentRoot /var/www/html
    <IfModule mod_suphp.c>
        suPHP_UserGroup root root
    </IfModule>
</VirtualHost>

are my settings … why does it give this error:

root@X:~# service apache2 reload
 * Reloading web server apache2                                                                                                             *
 * The apache2 configtest failed. Not doing anything.
Output of config test was:
AH00526: Syntax error on line 6 of /etc/apache2/sites-enabled/000-default.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

suPHP_UserGroup can only be used inside of a <Directory> or <Location> block. From the suPHP documentation:

suPHP_UserGroup (expects user- and groupname)

  • Only supported when compiled with setid-mode “force” or “paranoid” * Specify the user- and groupname to run PHP-scripts with. This setting can only be used within a <Directory> or <Location> context. Example: suPHP_UserGroup foouser bargroup

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.