LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mod_suphp not working (https://www.linuxquestions.org/questions/linux-newbie-8/mod_suphp-not-working-4175411580/)

crypt90 06-15-2012 05:47 AM

mod_suphp not working
 
i installed apache 2.2 with php 5.2.17 i want to build suphp with it but when i build suphp with following options its giving me error


./configure --with-apxs=/ifail/bin/apxs --with-apr=/apr/bin/apr-1-config --with-setid-mode=owner --with-php=/nope/ --with-logfile=/var/log/suphp.log --sysconfdir=/etc/ --enable-SUPHP_USE_USERGROUP=yes

ERROR


make[3]: *** [mod_suphp.lo] Error 1
make[3]: Leaving directory `/dd/suphp-0.7.1/src/apache2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/dd/suphp-0.7.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/dd/suphp-0.7.1/src'
make: *** [all-recursive] Error 1

i installed apr-devel apr-util-devel php-pdo and php-cli also
my php is cgi enabled

i am expecting a good replay :D :p

bathory 06-15-2012 11:23 AM

Hi,

The actual error should be reported before the lines you've posted.
Run:
Code:

make distclean
and start over with "./configure ..." and "make"

Regards

crypt90 06-22-2012 06:19 AM

suphp
 
Tnx for the replay brother. I got it fixed i think problems created by apr and apr-utils i rebuilt both and i got suphp installed

:D

crypt90 06-22-2012 06:23 AM

php
 
Now i am facing a new problem i cant see php-cgi binary in bin as well as in sapi/cgi directory i installed php with --enable-cgi option m using php 5.3.X
apache 2.2.X... m expecting a good replay.

bathory 06-22-2012 07:53 AM

Hi,

I guess you're also also using "--with-apxs2" to compile php as an apache DSO.
Well, the bad news is that you cannot have both the DSO and the ph-cgi built at the same time. Have a look here for an explanation
The good news is that this AFAIK can be done in php-5.4.x (cgi is enabled by default)

Regards

crypt90 06-23-2012 12:19 PM

suphp
 
yea bro i tried php 5.4 first but its making troubles with suphp i think compatibility isues but now m getting new errors suphp_usergroup is messed up m getting error messages when its enabled now m getting crazy with suphp :D its working but cant access pages 500 internal error i know its problem with user and group permissions but cant enable that parameter.suphp is running i am getting logs and dso file is present in modules directory :P :) m starting to love linux more :D


All times are GMT -5. The time now is 06:10 PM.