LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Updated to php 5.6 but server still shows 5.5.18-1 version (https://www.linuxquestions.org/questions/linux-server-73/updated-to-php-5-6-but-server-still-shows-5-5-18-1-version-4175523700/)

Paulius_J 10-29-2014 11:49 AM

Updated to php 5.6 but server still shows 5.5.18-1 version
 
Hello, I updated my ubuntu web server's php version to 5.6, I followed this tutorial:

http://phpave.com/upgrade-to-php-56-on-ubuntu-1404-lts/

And after I did all steps I restarted apache, but server still shows my old php version, I have no Idea what am I missing, maybe someone could suggest me what did I miss?

eklavya 10-30-2014 12:02 AM

Run the command on terminal.
Code:

php -v
What is the version here?

Put the following code in a file and save as info.php
Code:

<?php
phpinfo();
?>

Now run the file on browser, what is the version here?

Paulius_J 10-30-2014 02:00 AM

Yes I did both but both shows that I have 5.5.18 version.. I am out of ideas what could still be wrong, when I updated there were no errors, everything went smoothly.

socalheel 10-31-2014 06:29 AM

what happens when you run this:

Code:


rpm -qa | grep php

edit: i just read what server you were using ... disregard.

i was curious to see what package version got installed, i think dpkg will do that for ubuntu?

knudfl 10-31-2014 07:04 AM

#4 .

$ dpkg -S php5

$ sudo cat /var/log/dpkg.log | grep php

$ ls -tl /var/lib/dpkg/info/ | grep php


-

sundialsvcs 10-31-2014 08:50 AM

Also ... how is Apache invoking PHP? Are you using mod_php or somesuch, or is it invoking an external process to execute the PHP? Remember that it's possible to compile the interpreter into Apache, such that if you change versions you must also rebuild that module. Look at the server configuration directives to find out.


All times are GMT -5. The time now is 06:46 AM.