apache vhosts dev bugfix

This commit is contained in:
Bachir Soussi Chiadmi
2016-07-21 17:29:47 +02:00
parent 870d0c2053
commit 6915270cc5
+1 -1
View File
@@ -409,7 +409,7 @@ alpi_lamp(){
print_msg "Install Sites folder"
mkdir /home/$USER/Sites
cp $_cwd/assets/vhosts/dev.conf
sudo sed 's/USER/$USER/g' /etc/httpd/conf/vhosts/dev.conf
sudo sed -i "s/USER/$USER/g" /etc/httpd/conf/vhosts/dev.conf
print_msg "configure apache for php"
sudo sed -i.back 's/^LoadModule dir_module modules\/mod_dir\.so$/&\nLoadModule php5_module modules\/libphp5.so/' /etc/httpd/conf/httpd.conf
sudo sh -c "echo 'Include conf/extra/php5_module.conf' >> /etc/httpd/conf/httpd.conf"