LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Why doesn't apache (httpd) recognize and run with the new version of PHP I installed? (https://www.linuxquestions.org/questions/linux-server-73/why-doesnt-apache-httpd-recognize-and-run-with-the-new-version-of-php-i-installed-648116/)

jpuretz@tk20.com 06-09-2008 03:49 PM

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

trickykid 06-09-2008 04:05 PM

Did you install or upgrade PHP? Did you restart apache after upgrading or installing?

jpuretz@tk20.com 06-09-2008 04:14 PM

I installed a new version of PHP and then, yes I restarted apache.

trickykid 06-09-2008 04:36 PM

Quote:

Originally Posted by jpuretz@tk20.com (Post 3179700)
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.

jpuretz@tk20.com 06-09-2008 04:56 PM

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?

centralb 06-10-2008 03:45 AM

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.


All times are GMT -5. The time now is 03:44 AM.