Apache is segfaulting, PHP doesn't work

djcronos

Verified User
Joined
Mar 21, 2006
Messages
75
Hi all,

I followed the All-in-One instructions made by @how@ and everything appeared to work at first, but now I'm experiencing problems.

First, PHP files aren't working. When I pull up a .php file in my browser, it asks me to download it.

I sent in a trouble ticket to DA, and he said that Apache was segfaulting. He told me to recompile apache using the following link:

http://help.directadmin.com/item.php?id=26

I did that, but PHP still doesn't work.

This might be the cause of the problem, but when I run an 'apachectl configtest' on the box, I get the following error message:

Code:
[Thu Oct 19 14:55:21 2006] [error] Cannot remove module mod_perl.c: not found in module list

Everything else works fine. I'm able to add new customers, set up their email, and their web sites.

I followed someone else's post to remove --with-openssl from the /usr/local/directadmin/custompapache/configure.php file and recompile PHP, then restart Apache. I did that, and that didn't work either.

Any ideas?
 
I searched the forums and came across other people who were having segfaults, and it looks like it was a result of the --with-openssl variable in /usr/local/directadmin/customapache/configure.php. I removed it and recompiled everything - still no go. I don't get segfaults anymore, but I can't view php pages.

Any ideas?
 
This worked:

Code:
cd /usr/local/directadmin/data/templates
cp virtual_host*.conf custom
cd custom
perl -pi -e 's/php_admin/#php_admin/' *
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
/usr/local/etc/rc.d/httpd restart
 
Back
Top