Is there an easy way out to get the latest PHP? I have tried updating my package but none of it has 5.4.6 yet… if anyone knows on how to do it quickly, can it be shared here?
I've tried compiling from the source, but I am constantly getting:
configure: error: Cannot find OpenSSL's <evp.h>.
In my ./configure
I've specified where evp.h
is, --with-openssl=/usr/include/openssl \..
, but still it gives me, that error –
Best Answer
Installing PHP 5.4.* on Ubuntu 12.04
Simply add the PPA repository:
And install it:
You may need to install add-apt-repository on Ubuntu 12.04. To do so, run the command:
Other New Versions
For PHP 5.5 (currently 5.5.30) add the PPA repository instead:
For PHP 5.6 (currently 5.6.14) add the PPA repository instead: