Apache is available as a Debian package, therefore we can install it like this:
apt-get install apache2Now direct your browser to http://your-server-ip, and you should see the Apache2 placeholder page (It works!)
Installing PHP 5
We can install PHP 5 and the Apache PHP 5 module as follows:
apt-get -y install php5 libapache2-mod-php5Install php5-mysqlnd for MySQL
apt-get install php5-mysqlndInstall APCu PHP Cache to improve the PHP speed
apt-get install php5-apcuInstall other useful modules
apt-get -y install php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xslRestart Apache:
service apache2 restart
Nessun commento:
Posta un commento