Advertisement
LrdArc

Public_html

Dec 23rd, 2015
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. - cd ~
  2. - mkdir www
  3. - sudo chmod a+x ~/www
  4. - sudo chown -R www-data:www-data /home/$USER/www
  5. - sudo chmod -R 775 /home/$USER/www
  6. - sudo adduser $USER www-data
  7. - sudo reboot
  8. - sudo a2enmod userdir
  9. - sudo service apache2 restart
  10. - sudo nano /etc/apache2/mods-available/php5.conf | commenting some line
  11.  
  12. - cd /etc/apache2/sites-available/
  13. - sudo nano 000-default.conf
  14. DocumentRoot "/home/$USER/www"
  15. <Directory "/home/$USER/www">
  16. Options -Indexes +FollowSymLinks +MultiViews
  17. AllowOverride All
  18. Satisfy Any
  19. Require all granted
  20. </Directory>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement