Guest User

Untitled

a guest
Dec 11th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. sudo mkdir /var/www/phptest
  2.  
  3. sudo chown -R $USER:$USER /var/www/phptest
  4. sudo chmod -R 755 /var/www
  5.  
  6. /var/www/phptest/index.php
  7. <?php echo 'run!'; ?>
  8.  
  9. <VirtualHost *:80>
  10. ServerName phptest.web
  11. ServerAlias www.phptest.web
  12. ServerAdmin webmaster@localhost
  13. DocumentRoot /var/www/phptest
  14. <Directory /var/www/phptest>
  15. DirectoryIndex index.php
  16. AllowOverride All
  17. Order allow,deny
  18. Allow from all
  19. </Directory>
  20. ErrorLog ${APACHE_LOG_DIR}/error.log
  21. CustomLog ${APACHE_LOG_DIR}/access.log combined
  22. </VirtualHost>
  23.  
  24. sudo a2ensite phptest.conf
  25.  
  26. sudo service apache2 restart
  27.  
  28. 192.168.1.2 phptest.web www.phptest.web
  29.  
  30. Localhost/registro/Index.html
Add Comment
Please, Sign In to add comment