Results 1 to 10 of 25
Hi
I did the following.
Code:
wget http://www.suphp.org/download/suphp-0.7.1.tar.gz
Code:
tar -xzvf suphp-0.7.1.tar.gz
Code:
cd suphp-0.7.1
Code:
./configure --prefix=/usr/ --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with-setid-mode=owner --with-php=/usr/bin/php-cgi --with-logfile=/var/log/httpd/suphp_log --enable-SUPHP_USE_USERGROUP=yes
Code:
make && make ...
- 11-28-2011 #1Just Joined!
- Join Date
- Nov 2011
- Posts
- 65
SUPHP not installed
Hi
I did the following.
Code:wget http://www.suphp.org/download/suphp-0.7.1.tar.gz
Code:tar -xzvf suphp-0.7.1.tar.gz
Code:cd suphp-0.7.1
Code:./configure --prefix=/usr/ --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with-setid-mode=owner --with-php=/usr/bin/php-cgi --with-logfile=/var/log/httpd/suphp_log --enable-SUPHP_USE_USERGROUP=yes
Output of make and make install isCode:make && make install
make[1]: Entering directory `/tmp/suphp-0.7.1/src'
make all-recursive
make[2]: Entering directory `/tmp/suphp-0.7.1/src'
make[3]: Entering directory `/tmp/suphp-0.7.1/src'
make[3]: Leaving directory `/tmp/suphp-0.7.1/src'
make[2]: Leaving directory `/tmp/suphp-0.7.1/src'
make[1]: Leaving directory `/tmp/suphp-0.7.1/src'
make[1]: Entering directory `/tmp/suphp-0.7.1'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/tmp/suphp-0.7.1'
Making install in src
make[1]: Entering directory `/tmp/suphp-0.7.1/src'
make[2]: Entering directory `/tmp/suphp-0.7.1/src'
make[3]: Entering directory `/tmp/suphp-0.7.1/src'
test -z "/usr/sbin" || /bin/mkdir -p "/usr/sbin"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'suphp' '/usr/sbin/suphp'
/usr/bin/install -c suphp /usr/sbin/suphp
make install-exec-hook
make[4]: Entering directory `/tmp/suphp-0.7.1/src'
chmod u+s /usr/sbin/suphp
make[4]: Leaving directory `/tmp/suphp-0.7.1/src'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/tmp/suphp-0.7.1/src'
make[2]: Leaving directory `/tmp/suphp-0.7.1/src'
make[1]: Leaving directory `/tmp/suphp-0.7.1/src'
make[1]: Entering directory `/tmp/suphp-0.7.1'
make[2]: Entering directory `/tmp/suphp-0.7.1'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/tmp/suphp-0.7.1'
make[1]: Leaving directory `/tmp/suphp-0.7.1'
I can't find the configuration file suphp in httpd/conf.d/
in /etc/ too.
what am i doing wrong?
Thanks for your help in advance.
- 11-28-2011 #2Linux Guru
- Join Date
- May 2011
- Posts
- 1,788
There is an example config file in doc/suphp.conf-example. I am guessing it does not install one by default, i.e. your --sysconfdir=/etc flag to the configure script just tells suphp where it should look for the config file, not to put it there during install.
So if you copy doc/suphp.conf-example to /etc/suphp.conf, then edit it as needed, you should hopefully be good to go.
- 11-28-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 65
How do i tell to put it there?sysconfdir=/etc flag to the configure script just tells suphp where it should look for the config file, not to put it there during install.
I will use the sample config now.
But do i need another config in
/etc/httpd/conf.d/suphp.conf
/etc/suphp.conf
(The Perfect Server - CentOS 6.0 x86_64 [ISPConfig 3] - Page 5 | HowtoForge - Linux Howtos and Tutorials)
I just used this link to install suphp, I am not installing anything else from there.
- 11-28-2011 #4Linux Guru
- Join Date
- May 2011
- Posts
- 1,788
Unless I'm missing something, you don't/can't.
The guide you posted tells you how to create it:But do i need another config in
/etc/httpd/conf.d/suphp.conf
Create/edit the following file using an editor (vi):
In the file put the following single line:Code:vi /etc/httpd/conf.d/suphp.conf
You need to do the above as root, btw.Code:LoadModule suphp_module modules/mod_suphp.so
You can use gedit (graphical editor) if you're uncomfortable with the vi (command line editor).
- 11-28-2011 #5Just Joined!
- Join Date
- Nov 2011
- Posts
- 65
Thanks for the explanation.
Now, If i read my question, It is a foolish question!
Thanks for the help.
- 11-28-2011 #6Linux Guru
- Join Date
- May 2011
- Posts
- 1,788
"The only foolish question is the one that is not asked" or something like that...but I know what you mean :P
- 11-28-2011 #7Just Joined!
- Join Date
- Nov 2011
- Posts
- 65
oops,
I just restarted the httpd.
I got the following error.
Starting httpd: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/suphp.conf: Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: cannot open shared object file: No such file or directory
- 11-28-2011 #8Just Joined!
- Join Date
- Nov 2011
- Posts
- 65
Additionally,
I checked modules folder. I didn't find any mod_suphp.so
- 11-28-2011 #9Linux Guru
- Join Date
- May 2011
- Posts
- 1,788
It should have been installed to the following file location via the 'make install' command:
Is it not there?Code:/usr/lib/httpd/modules/mod_suphp.so
Edit: Looking again at your error:
I think you put the wrong path to the file in that config file. Post the contents of yours, if not sure, or just copy-paste the one in the guide - it should work.Syntax error on line 1 of /etc/httpd/conf.d/suphp.conf: Cannot load /etc/httpd/modules/mod_suphp.so into server: /etc/httpd/modules/mod_suphp.so: cannot open shared object file: No such file or directoryLast edited by atreyu; 11-28-2011 at 03:46 PM. Reason: error
- 11-28-2011 #10Just Joined!
- Join Date
- Nov 2011
- Posts
- 65
inside /usr/lib i didn't find any httpd folder. Is there anything wrong in my configuration?
EDIT
I didn't find any mod_suphp.soCode:/usr/lib64/httpd/modules
END OF EDIT
cat /etc/suphp.conf
cat /etc/httpd/conf.d/suphp.confCode:[global] ;Path to logfile logfile=/var/log/httpd/suphp.log ;Loglevel loglevel=info ;User Apache is running as webserver_user=apache ;Path all scripts have to be in docroot=/ ;Path to chroot() to before executing script ;chroot=/mychroot ; Security options allow_file_group_writeable=true allow_file_others_writeable=false allow_directory_group_writeable=true allow_directory_others_writeable=false ;Check wheter script is within DOCUMENT_ROOT check_vhost_docroot=true ;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 x-httpd-suphp="php:/usr/bin/php-cgi" ;Handler for CGI-scripts x-suphp-cgi="execute:!self"
Code:LoadModule suphp_module modules/mod_suphp.so


Reply With Quote

