lunedì 29 febbraio 2016

Install Apache2+PHP5 on Debian 8

Installing Apache 2
Apache is available as a Debian package, therefore we can install it like this:
apt-get install apache2
Now 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-php5
Install php5-mysqlnd for MySQL
apt-get install php5-mysqlnd
Install APCu PHP Cache to improve the PHP speed
apt-get install php5-apcu
Install 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-xsl
Restart Apache:
service apache2 restart

Nessun commento:

Posta un commento


Cerca su Google

Cerca nel Blog con Google