Question

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

  • Posted on September 30, 2014
  • MeanAsked 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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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