Note that there are some explanatory texts on larger screens.

plurals
  1. POError restarting Apache with suPHP: suPHP_UserGroup
    text
    copied!<p>I am trying use suphp with apache for use a user for each vhost, all vhost is one directory in /var/www/ for example /var/www/user1/ and directory of each vhost only can read write and execute own that is user of that vhost.</p> <p>I'am using Debian, apache2, I disable mod_php and cgi, enable suphp (I install suphp with apt-get install libapache2_mod_suphp). Configuration file /etc/apache2/conf.d/suphp is this:</p> <pre><code>[global] ;Path to logfile logfile=/var/log/suphp/suphp.log ;Loglevel loglevel=info ;User Apache is running as webserver_user=www-data ;Path all scripts have to be in docroot=/var/www:/var/www/${HOME}/public ;Path to chroot() to before executing script ;chroot=/mychroot ; Security options allow_file_group_writeable=false allow_file_others_writeable=false allow_directory_group_writeable=false allow_directory_others_writeable=false ;Check wheter script is within DOCUMENT_ROOT check_vhost_docroot=false ;Send minor error messages to browser errors_to_browser=false ;PATH environment variable env_path=/bin:/usr/bin ;Umask to set, specify in octal notation umask=0077 ; Minimum UID min_uid=100 ; Minimum GID min_gid=100 [handlers] ;Handler for php-scripts application/x-httpd-suphp="php:/usr/bin/php-cgi" ;Handler for CGI-scripts x-suphp-cgi="execute:!self" </code></pre> <p>And in the vhost are trying use www-data user for if this found add new user and change own of files. File of vhost:</p> <pre><code>&lt;VirtualHost *:80&gt; &lt;IfModule mod_suphp.c&gt; suPHP_Engine on AddHandler application/x-httpd-suphp .php suPHP_AddHandler application/x-httpd-suphp suPHP_UserGroup www-data www-data &lt;/IfModule&gt; ... </code></pre> <p>And the rest of vhost file is as in vhost without suphp found. When I try /etc/init.d/apache2 restart apache say this error:</p> <pre><code>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. failed! </code></pre> <p>I try enable module cgi and is same. How fix this error? Thx.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload