Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Dec 10, 2012 3:41 pm 
Offline
Senior Newbie

Joined: Mon Dec 26, 2011 8:24 pm
Posts: 17
Hello I have a linode with debian 6.0, nginx, php 5.3 and mysql installed and want to upgrade to php 5.4.

I added the following to my /etc/apt/sources
Code:
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

deb http://packages.dotdeb.org squeeze-php54 all
deb-src http://packages.dotdeb.org squeeze-php54 all


Then I ran:
Code:
apt-get update
apt-get install php5


The output is the following :
Code:
root@ginger:~# apt-get install php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap php5-cgi php5-cli php5-common php5-curl php5-gd php5-mcrypt
  php5-mysql ssl-cert
Suggested packages:
  apache2-doc apache2-suexec apache2-suexec-custom php-pear openssl-blacklist
The following packages will be REMOVED:
  php-apc php5-suhosin
The following NEW packages will be installed:
  apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common
  libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap php5 ssl-cert
The following packages will be upgraded:
  php5-cgi php5-cli php5-common php5-curl php5-gd php5-mcrypt php5-mysql
7 upgraded, 11 newly installed, 2 to remove and 5 not upgraded.
Need to get 13.9 MB of archives.
After this operation, 14.8 MB of additional disk space will be used.



Couple of things that I am wondering, why is it installing apache related stuff? And why is it removing php-apc. Is it safe to upgrade php5.3 to php5.4 like this?


Top
   
PostPosted: Tue Dec 11, 2012 4:33 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
php5 is a metapackage that installs either an Apache module package or the CGI package. It seems to be defaulting to libapache2-mod-php5. You should be able to just install the CGI package with apt-get install php5-cgi.


Top
   
PostPosted: Tue Dec 11, 2012 6:19 am 
Offline
Senior Member
User avatar

Joined: Tue Jan 04, 2005 7:32 am
Posts: 277
Website: http://www.betadome.com/
Location: Ă…lesund, Norway
Skype: neonnero
Twitter: neonnero
Wouldn't a simple apt-get upgrade (after running the update command) do the trick, rather than trying to reinstall php5 altogether? Or am I thinking about it wrong?


Top
   
PostPosted: Tue Dec 11, 2012 10:56 am 
Offline
Senior Newbie

Joined: Mon Dec 26, 2011 8:24 pm
Posts: 17
apt-get upgrade returns this

Code:
The following packages have been kept back:
  mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5 newrelic-php5
  php5-cgi php5-cli php5-common php5-curl php5-dev php5-gd php5-mcrypt
  php5-mysql
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.


I will try with apt-get install php5-cgi.


Top
   
PostPosted: Tue Dec 11, 2012 10:59 am 
Offline
Senior Newbie

Joined: Mon Dec 26, 2011 8:24 pm
Posts: 17
Seems like apt-get dist-upgrade might be the way to go.

Code:
root@ginger:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  php-apc php5-suhosin
The following NEW packages will be installed:
  libaio1 mysql-client-core-5.5 newrelic-daemon newrelic-php5-common
The following packages will be upgraded:
  mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5 newrelic-php5
  php5-cgi php5-cli php5-common php5-curl php5-dev php5-gd php5-mcrypt
  php5-mysql
12 upgraded, 4 newly installed, 2 to remove and 0 not upgraded.
Need to get 47.5 MB of archives.
After this operation, 24.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? n



Top
   
PostPosted: Sun Dec 16, 2012 1:36 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:35 pm
Posts: 111
Location: United Kingdom
You should really be using php-fpm and not php-cgi.


Top
   
PostPosted: Tue Dec 18, 2012 12:53 pm 
Offline
Senior Newbie

Joined: Mon Dec 26, 2011 8:24 pm
Posts: 17
What is the difference? And why does the linode LEMP guides install php-cgi?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group