LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-29-2014, 11:49 AM   #1
Paulius_J
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
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?
 
Old 10-30-2014, 12:02 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 636

Rep: Reputation: 142Reputation: 142
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?
 
Old 10-30-2014, 02:00 AM   #3
Paulius_J
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-31-2014, 06:29 AM   #4
socalheel
Member
 
Registered: Oct 2012
Location: Raleigh, NC
Distribution: CentOS / RHEL
Posts: 158

Rep: Reputation: 3
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?

Last edited by socalheel; 10-31-2014 at 06:31 AM.
 
Old 10-31-2014, 07:04 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#4 .

$ dpkg -S php5

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

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


-
 
Old 10-31-2014, 08:50 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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.
 
1 members found this post helpful.
  


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
Intel NIC not shows the updated Driver-10Gbe XF SR 2Port Server Adapter mohbrsu Linux - Networking 2 06-13-2012 03:08 PM
CentOS version not getting updated from 5.7 SarahGurung Linux - Newbie 8 03-08-2012 03:12 AM
Php updated version is not shown by apache srilu Linux - Server 7 08-09-2011 05:51 AM
Redhat Dedicated Server (Updating PHP Version - Will Pay!) simonm Linux - Newbie 6 09-23-2008 01:14 PM
running php page on linux desktop version server speck693 Linux - Software 2 12-17-2007 11:36 PM

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

All times are GMT -5. The time now is 06:37 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