Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Ubuntu server running apache2 and have installed php5 with

apt-get install php5 php-pear

and some other packages packages; php5-mysql, for example.

I'm a little confused as to which version of PHP the Ubuntu php5 package ships with. I'd like to be running the latest version of PHP at all times (currently 5.4.15). If I compile PHP from source on my server would that cause issues updating down the line? What's the best option here? Also, any tutorials for how to compile PHP, as I'm not 100% sure what I'm doing! But I'd like to give it a go.

I'm running Ubuntu 13.04 raring.

I'm new to sysadmin and server management, so it's more than likely I've missed a key piece of the puzzle here.

Any help greatly appreciated, Thanks!

share|improve this question
add comment

1 Answer

apt-get install php5 installs php version 5.4.6-1ubuntu1.2
you can check your php version with php -v

running whatever ships with the repository is normally fine for me, exceptions to this would be if there are severe or critical security holes found in php or there is a new feature that you MUST have the moment it gets released.

but if you really want to, you can keep track with the latest or even have multiple versions of php on your machine. It is possible and it wont destroy your set up, you just have to jump through a few more hoops. more info on multiple php installations here

Now, back to compiling php, you can go here for instructions. Though a bit old, they should still work. But you should also probably take a look at this.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.