I need to install the latest versions of apache, php and mysql that are available on their websites, but the problem is that apt repositories don't have these updates versions yet.
Versions that I want: Apache 2.4.4, PHP 5.4.16 and MySQL 5.6.12.
Versions available via apt: Apache 2.2.22, PHP 5.4.15, MySQL 5.5.31.
Ubuntu doesn't support the above versions of packages. Please, I want help! Thanks!
P.S. Tasksel also doesn't have these versions of packages yet.
Before to install the new versions, you should uninstall any other versions that you have installed before.
Install Apache 2.4.4
Before installing Apache 2.4.4, you should install PCRE, otherwise it will not succeed. The process of installing PCRE is simple. After you downloaded it, run in terminal next commands:
Download APR and APR-Util from http://apr.apache.org, unpack them to Apache directory, /srclib/apr and /srclib/apr-util (no version numbers in the directory names) and type following commands to install Apache:
Type following command to start Apache:
There may be something wrongs like:
Type following command to see httpd’s shared library dependencies:
Found "libpcre.so.1 => not found"
, then type the following command to update links:Restart Apache and should work.
Source: http://zhuojun.info/?p=1121
Install PHP 5.4.16
.tar.bz2
file: How to install a .tar.gz (or .tar.bz2) file?Install MySQL 5.5.31
.rpm
file: How do I install and manage RPMs?If you don't want to install the Apache 2.4 & PHP 5.5 by hand, you can find both in my PHP5 PPA.
I will add more PHP extensions and Apache 2.4 modules as people will come and ask for them.
There's also a MySQL 5.5 and MySQL 5.6 PPAs (and more).
In general you are not likely to find the latest versions on any pre-built stack, since there will always be a time lag between a new version release and package releases in official repositories due to the need to "iron out" system specific dependencies and quirks.
You have three options :
Now, unless there is a very specific option/need that is not offered/met in the available packages or you cannot wait for the vesrion to be included to the repositories, I suggest you go with the pre-build binaries.
Then again, compiling from source code is a great character building experience that will help you appreciate the hard work package maintainers do :-) You will have to resolve any package dependencies manually.
That being said, large and active projects like Apache, PHP and MySQL offer quite exhaustive documentation and how-to's for installing from source.
Another convenient way to install the latest versions of Apache, Php and Mysql I found very convenient is to use PPA i.e. Personal Package Archieve. Just search for ppa's for the software package you want and just add that ppa to the repositories and install the software using the following commands. Remember PPA's are built by users who want to help other users or developers by providing them with the latest softwares.
Also there are other ppa's available.
Maybe it will be convenient for any user with the same question as mine.