Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

How to update PHP installed from source

PHP beginner install

9:40 pm on May 10, 2011 (gmt 0)

New User

10+ Year Member

joined:Jan 31, 2008
posts: 20
votes: 0

Hello, I would like if someone answered what they recommend to do. I want to install PHP in an Ubuntu 11, but I can't figure out if it's better to compile it from source or to simply install a package. I would greatly appreciate info on how to update PHP once it is installed, cause I know it will be harder to update it if I compile it on the machine. Does anybody know if there's a way to configure it, or what additions it must be set up to come with during the compilation. (I mean the configuration before actually making the install). Is there a way to choose from the options namely --with and so, (of course --with MySql, since Postgre is not free of charge), so that it upgrades automatically. The fact is that I can't make my mind about what's best, to install it using apt-get or to install it from source, since I've read that people say it's harder to upgrade if its compiled, and others say the exact opposite (http://bit.ly/974AkV). Please help me make up my mind and thanks for reading anyway.
2:03 am on May 17, 2011 (gmt 0)

Full Member

10+ Year Member

joined:June 1, 2007
votes: 0

IMHO I would install from the package manager for php also PostGreSQL is absolutely free and opensource, I am not sure who told you that or where you read that but it is false.

apt-get update
apt-get upgrade world
apt get install php mysql perl etc etc

then in the future all you need to do is apt-get update then upgrade again and your existing versions will be upgraded by the package management system and keep all dependencies in line for you
wash rinse repeat ;)