LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-09-2008, 03:49 PM   #1
jpuretz@tk20.com
LQ Newbie
 
Registered: May 2008
Posts: 13

Rep: Reputation: 0
Why doesn't apache (httpd) recognize and run with the new version of PHP I installed?


Do I need to have apache generate a new '.so' file? I think it's still running off of the old version of PHP because when I do a security scan, the scan portrays the old version of PHP.

Thanks,
Jackie
 
Old 06-09-2008, 04:05 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Did you install or upgrade PHP? Did you restart apache after upgrading or installing?
 
Old 06-09-2008, 04:14 PM   #3
jpuretz@tk20.com
LQ Newbie
 
Registered: May 2008
Posts: 13

Original Poster
Rep: Reputation: 0
I installed a new version of PHP and then, yes I restarted apache.
 
Old 06-09-2008, 04:36 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by jpuretz@tk20.com View Post
I installed a new version of PHP and then, yes I restarted apache.
Well, if you installed and didn't update, you probably installed alongside the older version and apache is still referencing it. I'd either suggest looking at apache configurations to use the newer version or try upgrading instead of installing alongside it.
 
Old 06-09-2008, 04:56 PM   #5
jpuretz@tk20.com
LQ Newbie
 
Registered: May 2008
Posts: 13

Original Poster
Rep: Reputation: 0
apache and php continued

Sounds good, but I'm kind of a newbie to linux, do you have any suggestions on how to go into the apache configurations and change them?
 
Old 06-10-2008, 03:45 AM   #6
centralb
LQ Newbie
 
Registered: Jan 2007
Distribution: Redhat, Debian, "Custom"
Posts: 27

Rep: Reputation: 15
Thumbs up

Also consider checking the creation date of the .so in your apache modules directory. If it's an older version (not from your recent php build), manually copy an updated .so from the php build directory prior to restarting apache.
 
  


Reply



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
Configure PHP source to HTTPD installed from YUM ittec Linux - Software 2 03-03-2008 03:31 AM
Apache doesn't recognize .php files alkos333 Slackware 1 07-19-2007 09:10 PM
Apache 2.0.47 Error when try to run the command httpd -S wanna13e Linux - Enterprise 14 07-06-2007 01:31 AM
apache not able to recognize php files phamtranquocvie Linux - Newbie 2 10-06-2004 11:32 AM
httpd won't start (apache 2.0 newly installed) Who Linux - Software 1 03-28-2003 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:18 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
Open Source Consulting | Domain Registration