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

  • Posted September 30, 2014
    DocumentRoot /var/www/html
    <IfModule mod_suphp.c>
        suPHP_UserGroup root root

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.


Submit an 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