LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-13-2005, 06:42 PM   #1
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Rep: Reputation: 30
Question 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
 
Old 11-13-2005, 08:54 PM   #2
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Original Poster
Rep: Reputation: 30
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandriva 10.1 or Mandriva 2006 RC1 ronlon Mandriva 17 04-17-2006 02:24 AM
mandriva 2006 mohama Mandriva 5 11-09-2005 06:28 PM
Mandriva 2006 Al_Khidr Linux - Software 1 10-20-2005 01:18 PM
Mandriva 2006 Happeren Mandriva 62 10-15-2005 12:01 PM
Where can I get the new Mandriva 2006? jacatone Linux - Software 2 09-16-2005 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration