Click to See Complete Forum and Search --> : php as DSO


Anon
01-04-2001, 11:29 AM
Hello,

Apache 1.3.14, PHP 4.0.4, FreeBSD 3.2
I compiled apache with DSO support. Then compiled php with --with-apxs. It added
"LoadModule php4_module libexec/libphp4.so" to httpd.conf

every time I try to start apache I get the following error:
"Floating point exeption - core dumped
apachectl start: httpd could not be started"
and right after that:
"ns /kernel: pid 2121 (libhttpd.ep), uid 0: exited on signal 0 (core dumped)"

What could be the problem ? Apache without php starts normally.

Thank you.
Leonid.

chriss
01-04-2001, 12:21 PM
Make sure that libexec/libphp4.so is actually the correct path to the file. When in doubt, use the absolute path not the relative path.

It should also have added this line in your httpd.conf file.
AddModule mod_php4.c

These lines will need to be in there too, but have no relevance to your problem of the web server not starting.
AddType application/x-httpd-php .php
AddType application/x-https/php-source .phps

Good Luck.

Anon
01-05-2001, 10:02 AM
Thank you,

I tried to specify full path (but anyway if apache cannot find module, it displays different error), to add "AddModule" (php didn't add it by itself). Nothing changes.

I suspect that problem could be in mysql support since I haven't installed mysql yet. And I recompile php without php support. But inpite of the fact that I did ./configure --apxs=path_to_apxs (so without --with-mysql) - ./configure tells me "You chose to compile PHP with the built-in MySQL support..."

I remove config.cache and even reextract php installation from archive. "configure" says that about mysql support anyway. That is the only thing (except something like a bug) I can suggest to be a problem.

Actually, I don't know what to think.

Leonid

chriss
01-05-2001, 10:18 AM
I don't know if PHP compiled with mysql will work without mysql being installed. I would try and install mysql before preceding unless you do not want mysql support.

In that case the configure line should read as follows.
./configure --with-apxs --without-mysql

if you just run ./configure then mysql support goes in by default.

Hope this helps.

Anon
01-05-2001, 11:09 AM
Unfortunatelly it doesn't help.
I compile php --without-mysql, but apache doesn't start with the same error.

I start to think that I found a bug. :)
Leonid

chriss
01-05-2001, 11:57 AM
The only other thing I suggest is to compile PHP as CGI interpereter.

I think all you have to do is type
./configure --without-apache --without-apxs
This should build PHP as CGI.

I believe that writing php pages as CGI pages is a little different so you might have to look into that. I'm sorry but I have never run PHP as CGI so I will be little help as far as that goes.