Advertisement
Ankirama

Untitled

Apr 19th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. ## installer packages ##
  2. apt-get install apache2 ssh
  3.  
  4. fichiers conf: /etc/apache2/mods-available/nom_du_module.conf
  5. enable module: a2enmod nom_du_module
  6.  
  7. ## virtual host ##
  8. add in /etc/hosts your ip + a name (reboot ou reload mais je sais plus comment)
  9. add a file in /etc/apache2/site-available/ (copy on default)
  10. change DocumentRoot by /usr/share/phpmyadmin/ to allow access to phpmyadmin from your vh
  11. if you have any problem, change Listen in /etc/apache2/ports.conf:
  12. Listen 80 buy Listen your_ip:80 + NameVirtualblabla *:80 by your_ip:80
  13.  
  14. in your virtualHost file add NameServer sub_domain.your_name_in_hosts
  15. you have to add your virtualhost domain too in hosts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement