Posted by timwood on June 14, 2010 at 9:25pm
In Greg's post here: http://groups.drupal.org/node/72718 he discusses how to make Ubuntu Lucid use php5 packages from Ubuntu Karmic due to the issues with php5.3 and Drupal. I tried using this approach on a server I'm building (non-mercury/pantheon) and discovered a few holes in the documentation, I think...
- There was no information about adding the Karmic sources to /etc/apt/sources.list
- Adding the preferences to /etc/apt/preferences.d/php will not work for aptitude as there is still a bug with it. Instead I added/edited /etc/apt/preferences.
- Third and I think most important, when I used the suggested preferences file (http://pantheon-storage.chapterthree.com/php), my system only retrieved the original package from the Karmic repository (5.2.10.dfsg.1-2ubuntu6), not the Karmic updates/security packages (5.2.10.dfsg.1-2ubuntu6.4). In order to have it retrieve the latest php5 packages from Karmic I had to modify each "Pin" line to use "karmic-updates" like so: Pin: release a=karmic-updates
I didn't want to update the Wiki documentation page in case my notes didn't line up with mercury/pantheon. Thoughts/comments are appreciated.
-Tim

Comments
re: Re: Running Drupal/Pressflow on Lucid wiki page
Tim,
1) Yes, I forgot that we do add Karmic sources to /etc/apt/sources.list
2) Good to know about aptitude
3) I didn't know this - good catch!
Please do add any/all of this to the wiki!Added 5/15/10Thanks!
Greg
--
Greg Coit
Systems Administrator
http://www.chapterthree.com
re: Re: Running Drupal/Pressflow on Lucid wiki page
Greg,
Sorry I wasn't able to get to updating the wiki page, it's been really busy at work.
I just made a few edits, specifically adding -updates to libapache2-mod-php5 and the example of php5-xdebug at the bottom. I also changed the version number of php it says it pins from karmic at the bottom. Was there a reason you left "-updates" off libapache2-mod-php5?
-Tim
Thank You Tim!
Nope, just a typo on my part.
Thanks again Tim!
Greg
--
Greg Coit
Systems Administrator
http://www.chapterthree.com
change preferences.d/php to /etc/apt/preferences
Greg, about Step-by-step: Setting up Project Mercury 1.1 (Varnish, Apache, APC, Memcached and Solr) using BCFG2 - BETA!!! -
in Stage 2, line 4 of the code, you might want to change this as per point 2 in this post. If left unchanged, any user of aptitude will soon find php 5.3 on their server... I chose not to change the wiki myself to make sure that you remember to change this in any other scripts that you might have out there.
I'm not sure about the existing Linode Stackscript, but it would be great to change this there also.
re: change preferences.d/php to /etc/apt/preferences
Updated - thanks for the reminder.
Greg
--
Greg Coit
Systems Administrator
http://www.chapterthree.com
Did not succeed installing xdebug
Ran through your instructions, here is the output of apt-get install php5-xdebug:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-xdebug is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package php5-xdebug has no installation candidate
Is this the "an error" you were describing?
update: we ended up cheating and installing xdebug extension through PECL
Better late than never, we
Better late than never, we traced the problem to an error in the /etc/apt/preferences.d/lucid file. Setting php5-xdebug to plain karmic allowed the install to proceed.