DEBIAN installation serveur WEB

Après une installation de base, pour un serveur WEB simple :

apt-get update
apt-get upgrade
apt-get install aptitude
apt-get install htop
install mariadb-server
apt-get install apache2
apt-get install php5

apt-get install php-pear
apt-get install php-date
apt-get install php-db
apt-get install php-dompdf
apt-get install php-file
apt-get install php-fpdf
apt-get install php-tcpdf
apt-get install php-html-common
apt-get install php-http
apt-get install php-mail
apt-get install php-mail-mime
apt-get install php-net-url
apt-get install php5-gd
apt-get install php5-imagick
apt-get install php5-mcrypt
apt-get install php5-mysql
apt-get install php5-odbc
apt-get install php5-sqlite
apt-get install php5-xmlrpc

 

créer un fichier /etc/apache2/sites-enabled/monsite.vhost contenant :

<VirtualHost *:80>
	DocumentRoot /home/monsite/
  
    ServerName www.monsite.com
	ServerAlias www.monsite.fr
	ServerAlias monsite.com
	
    ServerAdmin webmaster@monsite.com

    <Directory /home/monsite/>
        Options FollowSymLinks
        #AllowOverride Indexes AuthConfig Limit FileInfo#
	AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    AddType application/x-httpd-php .php .php3 .php4 .php5

</VirtualHost>

/etc/init.d/apache2 stop

/etc/init.d/apache2 start

     

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

+ seventy = eighty