TurnKey Linux Virtual Appliance Library

Update PHP in LAMP?

Clint's picture

Is it possible and a better question are there instructions for upgrading the PHP included in the LAMP package to 5.3x?

 

Thanks

Jeremy's picture

A quick google suggests...

You'll probably need to install from source. Although another possibility may be installing from the Debian repos (I think its in 'testing').

This will probably not be a project for the faint of heart!

This seems like a pretty good guide for building from source (but i can't vouch for it - also seems like its for a more recent version of Ubuntu). Here is another. Here is a third.

The php website has migration documentation that would be well worth a read. Also this looks like an interesting article and lists some backwards compatability issues you may encounter. Probably both worth a thorough read prior to doing anything further.

Finally the source snapshots can be found here.

Be great if you could document your progress and bugs that you discover on the TKL Dev Wiki Whiteboard. Also be aware that after you do this you will need to do your own security updates (as none will happen automatically).

[Edit] Make sure you back up all data before attempting any of this! Better still perhaps do it on a clean install of TKL LAMP and then import your data.

 

L. Arnold's picture

Spent some time, but... hazards

I went quite a ways down this road but much of the ./configure commands outlined on the links do not seem pertinent to Turnkey installs.

It would be very helpful to get this updated as I need to migrate Turnkey Joomla to minimum PHP 5.2.8 (best if php 5.2.3 which is sitting on my box now... I just don't know how to configure it from here).

Need to run MageBridge on top of Joomla which requires this version of PHP.

thoughts on how to proceed?  Why not just build a New Appliance and "have it done"... at the very least... then it is only an issue of migrating some folks Joomla installs (mine is fresh so I could start over).

thank you (I like the system otherwise).

Jeremy's picture

Updated appliances are on the way

The new TKL appliances are on the way. Currently the TKL beta of Ubuntu Lucid is available here. Once the devs are happy with new appliance built on this base they will be released. FYI Lucid has php v5.3.2 available in the repos - and thus the version that TKL appliances with php included will use.

The easiest way to go would to be patient and wait for that release. Otherwise you could build your own server on top of the new Core. If you think your setup is unique and useful enough perhaps consider releasing a TKLPatch and enter the TKLPatch development contest. TBH though as a TKL appliance currently exists for Joomla it may not be a great candiate.

L. Arnold's picture

How to upgrade JoomIa with new Lucid Release?

I am wondering what the process can be to to move an Ap set like Joomla to the new Lucid builds. I am not thinking a  New install, hit rather on inline upgrade/ update.  Something like a Script world be great. Thanks for the great products!

Clint's picture

Great information! I was

Great information! I was hoping someone had already went through it, but I guess I am not that lucky

I will throw up a test server and play around with the information that you posted. I will document the steps for future needs in the community.

Again, thanks for the information.

I too am trying to update the

I too am trying to update the PHP (need 5.2.8 for moodle). I've so far been unsuccessful. If anybody has any success, instructions would be awesome. Loving the new LAMP appliance so far though. 

Alon Swartz's picture

Moodle Appliance?

Why not use the Moodle Appliance?

Planning on using turnkey as

Planning on using turnkey as a testbed for moodle 2.0 (php 5.2.8 required), the moodle appliance has the same PHP issue (and is a fairly old version).

Liraz Siri's picture

Build from source?

Like with any other server, you always have the option to build software from source if the version you need can't be installed via package management. Note that when the new Ubuntu LTS comes out in April we'll upgrade all appliances to that version so this won't be an issue for long.

 The lack of package upgrade

 The lack of package upgrade isn't really a problem. I love the stuff turnkey has turned out so far, and as far as my testbed for moodle 2, i always have other options. I have just grown to love the simplicity of the turnkey interface and how nicely everything just works; I'm spoiled. Tomorrow is my day off so I'm going to try to figure out my own way to upgrade the PHP (and will post instructions if I get it figured out). In the meantime, please keep up the great work guys!

L. Arnold's picture

Any progress on your PHP upgrade? I could also use.

My Joomla builds  also needs Pep 5.28. It world do best, I Think, with 5.3. As Noted above a simple upgrade to a current install would be very helpful in the final build.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)