LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not incl (https://www.linuxquestions.org/questions/linux-newbie-8/invalid-command-suphp_usergroup-perhaps-misspelled-or-defined-by-a-module-not-incl-4175527754/)

pavanchauhan 12-08-2014 11:07 PM

Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not incl
 
I'm getting this issue from my vhost when i restart the httpd service.

i'm going to tell you my following steps on my server given below.

# uname -i
x86_64

# ./configure --prefix=/usr/local/suphp-2.4 --sysconfdir=/etc --with-apr=/usr/local/apr/bin/apr-1-config --with-apxs=/usr/local/apache/bin/apxs --with-apache-user=apache --with-setid-mode=paranoid --with-php=/usr/local/apache/bin/php-cgi --with-logfile=/var/log/suphp_log --enable-SUPHP_USE_USERGROUP=yes

# make

# make install

Thenafter my mod_suphp.so module sucessfully load in my httpd.conf file and apache service successfully started.

after i created a vhost and its working fine without suphp implemented also site is running fine.
but when i implement suphp on same vhost then i get this error.

Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not include


MY vhost is
[root@corp19 corpusers]# cat /usr/local/apache/conf.d/adventure.com.conf
<VirtualHost 192.168.81.137:80>
ServerAdmin webmaster@adventure.com
DocumentRoot /websites/www/users/adventure.com
ServerName www.adventure.com
ServerAlias adventure.com
CustomLog /usr/local/apache/logs/adventure.com_log combined
ErrorLog /usr/local/apache/logs/adventure.com-error_log
### suPHP ###
suPHP_Engine on
suPHP_UserGroup pawan pawan
suPHP_AddHandler x-httpd-php
AddHandler x-httpd-php .php .php3 .php4 .php5
<Directory /websites/www/users/adventure.com>
Options +Indexes FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


[root@corp19 corpusers]# /usr/local/apache/bin/apachectl
AH00526: Syntax error on line 15 of /usr/local/apache/conf.d/adventure.com.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
Kindly tell me where i did mistake in suphp.
i'm expecting a wonderful solution.

j-ray 12-09-2014 04:12 AM

This setting (suPHP_UserGroup) can only be used within a <Directory> or <Location> context.
...from the docs. Isn't that wonderful? I hope it at least helps...


All times are GMT -5. The time now is 05:25 PM.