Web Hosting Talk







View Full Version : php and apache2


nastea
11-03-2003, 02:43 PM
i have a problem with my php, and apache2, apache2 will not start if i loadmodule libphp4.so, but if i don't load it, it works fine. and i've rebuilt php from scratch twice today

animelab
11-03-2003, 02:52 PM
Ive heard rumors, php doesnt like threads, try using the preforking mdm.

animelab
11-03-2003, 02:53 PM
Ah one more thing, does apache dump core or crash and leave a process hanging? if so try gdb on the core or dead process, see if you can find out what is causing the problem

nastea
11-03-2003, 03:04 PM
nothing works, it doesn't die, doesn't even start....

animelab
11-03-2003, 03:12 PM
what MPM are you using? The only thing i can think of is;

To build a multithreaded version of Apache your system must support threads. This also implies to build PHP with experimental Zend Thread Safety (ZTS). Therefore not all extensions might be available. The recommended setup is to build Apache with the standard prefork MPM-Module.

nastea
11-03-2003, 04:01 PM
./configure --enable-so --enable-access --enable-auth --enable-alias --enable-cgi --enable-imap --enable-include --enable-ssl --enable-vhost_alias

is how i built it

animelab
11-03-2003, 06:04 PM
try httpd -l tell me the output

nastea
11-03-2003, 06:05 PM
[root@dcevoclub bin]# ./httpd -l
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_ssl.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_vhost_alias.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c

animelab
11-03-2003, 07:48 PM
i can think of something else now, whats the error log say?

nastea
11-03-2003, 07:53 PM
nothing its empty

animelab
11-03-2003, 08:01 PM
Oo, thats a very weird problem. Ok, last thing i can thing of =\ compile apache with php and -ggdb

CFLAGS=-ggdb
EXPORT CFLAGS
then ./configure should get that in there for you.

compile and run the httpd file through gdb by going to its directory and typing

gdb httpd

once the console loads, type
r [enter]

hopefully apache will crash before the fork, which is what im thinking its doing.

If it does, type
bt [enter]

and post the results here. core files make this much easyer =\