Ubuntuapachephpp
Ubuntuapachephpp
Ubuntuapachephpp
Installing a web application server on ubuntu server using apache and php.
Create a new engine called ubuntuWebApplication using VM VirtualBox. Install ubuntu server 11.04.
Make the installation in Enghish. Do not install the LAMP server.
Configure network
First, we are going to enable two network devices in the VirtualBox Configuration Sheet.
Next, we are going to configure the interfaces sudo vi /etc/network/interfaces For instance we could write: auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 192.168.2.x netmask 255.255.255.0 gateway 192.168.2.1 We need restart network: sudo /etc/init.d/networking restart
Installing Apache 2
sudo apt-get install apache2 It requires a restart for it to work sudo /etc/init.d/apache2 restart
Installing PHP 5
To only install PHP5. install the package libapache2-mod-php5
Enable this module by doing sudo a2enmod php5 which creates a symbolic link /etc/apache2/mods-enabled/php5 pointing to /etc/apache2/mods-availble/php5 . Relaunch Apache 2 by sudo service apache2 restart