[ASTUCES] - LAMP (Linux/Apache/MySQL/Php) à toujours avoir sous la main.
Page 1 sur 1
[ASTUCES] - LAMP (Linux/Apache/MySQL/Php) à toujours avoir sous la main.
INSTALLATION
apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql
Réparer les permissions (Sous Debian/Ubuntu/Raspbian)
apache_user=$(cat /etc/apache2/envvars |grep "APACHE_RUN_USER"|sed 's/.*=//')
apache_group=$(cat /etc/apache2/envvars |grep "APACHE_RUN_GROUP"|sed 's/.*=//')
chown -R $apache_user:$apache_group /var/www
chmod -R 775 /var/www
Changer le mot de passe ROOT de MySQL
mysqladmin -u root -p password
Redémarrer Apache et MySQL
service apache2 restart
service mysql restart
Dossier et fichiers de configurations sous Debian et Dérivés
Dossier par défaut des fichiers webs
/var/www
Configuration d'Apache2
/etc/apache2/apache2.conf
/etc/apache2/conf.d
/etc/apache2/ports.conf
Configuration des Virtual Host
/etc/apache2/sites-available
(pour activer la configuration faire)
ln -sv /etc/apache2/sites-available/nomdelaconf.conf /etc/apache2/sites-enabled/nomdelaconf.conf
Configuration PHP
/etc/php5/apache2/php.ini
apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql
Réparer les permissions (Sous Debian/Ubuntu/Raspbian)
apache_user=$(cat /etc/apache2/envvars |grep "APACHE_RUN_USER"|sed 's/.*=//')
apache_group=$(cat /etc/apache2/envvars |grep "APACHE_RUN_GROUP"|sed 's/.*=//')
chown -R $apache_user:$apache_group /var/www
chmod -R 775 /var/www
Changer le mot de passe ROOT de MySQL
mysqladmin -u root -p password
Redémarrer Apache et MySQL
service apache2 restart
service mysql restart
Dossier et fichiers de configurations sous Debian et Dérivés
Dossier par défaut des fichiers webs
/var/www
Configuration d'Apache2
/etc/apache2/apache2.conf
/etc/apache2/conf.d
/etc/apache2/ports.conf
Configuration des Virtual Host
/etc/apache2/sites-available
(pour activer la configuration faire)
ln -sv /etc/apache2/sites-available/nomdelaconf.conf /etc/apache2/sites-enabled/nomdelaconf.conf
Configuration PHP
/etc/php5/apache2/php.ini
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|