En esta serie de posts te voy a mostrar cómo configurar un servidor LAMP con Apache 2.4.4, PHP 5.4.14 y MySQL 5.6.11, versiones un poco más recientes que las normalmente incluidas con Ubuntu.
PHP 5.4.14
Descarga PHP 5.4.14:
wget http://www.php.net/get/php-5.4.14.tar.gz/from/ar2.php.net/mirror -O php-5.4.14.tar.gz
Extrae el paquete:
dtrx php-5.4.14.tar.gz
Configura el paquete con las extensiones que desees. Puedes chequearlo con el script “configure”:
cd php-5.4.14
./configure --help
Dependencias requeridas:
sudo apt-get install libxml2-dev
Para Bzip2:
sudo apt-get install libbz2-dev
Para cURL:
sudo apt-get install curl libcurl4-openssl-dev
Para GD:
sudo apt-get install libvpx1 libpx1-dev libjpeg62-dev libpng-dev libfreetype6-dev libxpm-dev
Para internacionalización:
sudo apt-get install libicu-dev
Para mcrypt:
sudo apt-get install mcrypt libmcrypt-dev
Configurar PHP:
`./configure --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-gettext --enable-intl --enable-mbstring --with-mcrypt --with-mysql --with-mysqli --with-pdo-mysql --enable-soap --enable-zip --with-apxs2=/usr/local/apache2/bin/apxs`
Instalar PHP:
make
sudo make install
6lamp, php, ubuntu, linux, server, compile,
Encontrame en
heTnWgKNMij