Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just made a new instance via AWS EC2 - opting for the most recent stable release of ubuntu - 11.04. I now need to install the latest versions of PHP and Apache. I've run an apt-get update etc..

Unfortunately I require an even newer version of PHP - which isn't available via apt-get.

I've tried compiling php 5.3.8 via source, but I've had lots of problems.

My question is, should I continue down this route? Or is there an alternative? I've seen posts on here about alternative repository lists.. Can someone point me in the right direction, that would be a massive help! thanks

share|improve this question
up vote 0 down vote accepted

Take a look at dotdeb repository.

share|improve this answer
dotdeb has packages for debian, not for ubuntu. – stew Oct 4 '11 at 16:09

I do he following (for PHP 5.2.x)

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/servers/apache/bin/apxs --with-pgsql=/usr/local/servers/postgresql --enable-pdo --with-pdo-pgsql=/usr/local/servers/postgresql --with-pear --without-mysql

make make install

You'll possibly want to add any number of the following options among others depending on your needs:

--enable-xml --enable-libxml --with-pcre-regex --enable-trans-sid --enable-sockets --with-iconv --enable-mbstring --enable-ctype --with-zlib --with-ssl --enable-simplexml --enable-dom --enable-spl

share|improve this answer

Your Answer


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.