Configuration d’un serveur Web sur VPS

Configuration d’un serveur Web sur VPS

Sur un serveur VPS du type de ceux d’OVH, il possible d’installé de nombreuse distribution avec ou sans Admin Panel.

Après plusieurs test, je me suis orienté vers une Debian 8 avec IPSConfig que je trouve très simple et surtout très complet pour la création de Site web / FTP / Base / MySQL / eMail.

Il existe un script très pratique d’installation assisté de ISPConfig :

Reconfiguration du language  et mise à jour de Debian 8

dpkg-reconfigure locales
aptitude update -y && sudo aptitude upgrade -y && sudo reboot

 

Script d’installation d’IPSConfig et des composant nécessaire : 

apt-get -y install unzip
wget https://github.com/servisys/ispconfig_setup/archive/master.zip
unzip master.zip
cd ispconfig_setup-master
./install.sh

 

Installation du theme ISPConfig Clean :

apt-get install git
cd /tmp
git clone https://github.com/dclardy64/ISPConfig_Clean-3.0.5.git
cd ISPConfig_Clean-3.0.5/
tar czvf i.tar.gz interface/
mv i.tar.gz /usr/local/ispconfig/i.tar.gz
cd /usr/local/ispconfig/
tar xzvf i.tar.gz
rm i.tar.gz
nano /usr/local/ispconfig/interface/lib/config.inc.php

ISPConfig clean 02

mysql -u root -p < /tmp/ISPConfig_Clean-3.0.5/sql/ispc-clean.sql
rm -rf /tmp/ISPConfig_Clean-3.0.5/

 

Ajout de plusieurs version de PHP (5.3.29 et 5.4.43) avec PHP-Farm / Fast-CGI sur ISPConfig : 

sudo apt-get install git-core
apt-get build-dep php5
apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-turbo-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev
git clone https://github.com/cweiske/phpfarm.git /opt/phpfarm
cd /opt/phpfarm/src
./compile.sh 5.3.29
./compile.sh 5.4.43

 

Configuration ISPConfig :

Capture decran 2015 07 16 a 14.24.01

Capture decran 2015 07 16 a 14.25.19

 

PHP Name : PHP 5.3.29

Path to the PHP FastCGI binary :
/opt/phpfarm/inst/php-5.3.29/bin/php-cgi

Path to the php.ini directory :
/opt/phpfarm/inst/php-5.3.29/lib

PHP Name : PHP 5.4.43

Path to the PHP FastCGI binary :
/opt/phpfarm/inst/php-5.4.43/bin/php-cgi

Path to the php.ini directory :
/opt/phpfarm/inst/php-5.4.43/lib