LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   php headache in Mandriva 2006 (https://www.linuxquestions.org/questions/mandriva-30/php-headache-in-mandriva-2006-a-382835/)

PsychosisNode 11-13-2005 06:42 PM

php headache in Mandriva 2006
 
Hello all!

Just moved from Mandriva LE2005 on Athlon XP to 2006 64bit version on Athlon 64, but one problem:

I have a directory containing PHP scripts that I'm working on in my home directory, symlinked from /var/www/html. This worked fine in LE2005, but not any more. Apache won't do anything with PHP scripts, absolutely nothing comes back to the browser - no errors, just nothing, HTML pages work fine, but not php. I believe I have all the php packages installed.

btw: I've been coding PHP for a few years now, but I'm a total n00b at apache configration and the like.

Any help is much appreciated

TIA

PsychosisNode 11-13-2005 08:54 PM

FIXED
 
It was somethig to do with packaging. After much coffee and swearing, I decided to use the Mandriva package removal tool to remove all php-related packages (of which there were loads, many probably unecessary) then installed just the apache module, the php-mysql module and their dependancies. After this and restarting apache (using /etc/rc.d/init.d/httpd restart) PHP worked. Before this, /var/log/httpd/error_log would contain an entry stating that a child process segfaulted for every attempt to access a php script.

Note that I needed to manually edit the /etc/php.ini file to change the line:
Code:

extension_dir = "/usr/lib/php4/extensions"
to:
Code:

extension_dir = "/usr/lib64/php4/extensions"
to enable the mysql module after installing it as Mandriva uses /usr/lib64 for 64bit lib versions.

Hope this helps!


All times are GMT -5. The time now is 02:08 AM.