Al finalizar este mini-tutorial tendremos instalado un servidor LAMP (es decir Linux + Apache + MySQL + PHP) en nuestra computadora. Me he basado/traducido en el tutorial de HowtoForge.
Instalaremos: Apache 2 (servidor web), MySQL 5 (base de datos), PHP 5 (lenguaje de scripting) y phpMyAdmin / Webmin para la administración via web. Se asume que ya se tiene instalado Linux (en este caso Debian o algún Ubuntu), si deseas una guía para instalar Ubuntu, te puede servir esto.
Para instalar y configurar un Debian, hemos usado un máquina virtual, creada con la aplicación VMWare Server 1.0.7. Descargamos una imagen ISO de Debian de la Web Oficial de distribución. Queremos hacer una instalación típica sin interfaz gráfica. Haremos un Servior Web con Apache2+SSL+PHP5+MySQL5.
Creamos una máquina virtual:
File > New > Virtual Machine.
Se abre una ventana y seguimos estos pasos:
Siguiente > Typical y siguiente > Elegimos Sistema Operativo, versión y siguiente > Elegimos nombre de la máquina virtual, localización y siguiente > Use Bridged Networking y siguiente > Definimos el Disk Size necesario y finalizamos.
Para instalar Apache 2 tecleamos:
apt-get install apache2
Ahora instalaremos openssl:
apt-get install openssl ssl-cert
Para activar el mod ssl tecleamos:
a2enmod ssl
Q. I am using Apache server and PHP5. How do I install install php gd support?
A. PHP is used mainly in server-side application software along with various addons.
PHP includes a large number of free and open source libraries with the core build. PHP is a fundamentally Internet-aware system with modules built in for accessing FTP servers, many database servers, embedded SQL libraries such as embedded MySQL and SQLite, LDAP servers, and others. Many functions familiar to C programmers such as those in the stdio family are available in the standard PHP build.
The GD Graphics Library for dynamically manipulating images. You will need to compile PHP with the GD library of image functions for this to work.
However Ubuntu (and Debian) comes with package called php5-gd
Just type following command to install this module:
# apt-get install php5-gd
OR
$ sudo apt-get install php5-gd
Restart Apache
# /etc/init.d/apache2 restart
Test your php application.
Origen: http://www.cyberciti.biz/faq/ubuntu-linux-install-or-add-php-gd-support-to-apache/