Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo mkdir /var/www/phptest
- sudo chown -R $USER:$USER /var/www/phptest
- sudo chmod -R 755 /var/www
- /var/www/phptest/index.php
- <?php echo 'run!'; ?>
- <VirtualHost *:80>
- ServerName phptest.web
- ServerAlias www.phptest.web
- ServerAdmin webmaster@localhost
- DocumentRoot /var/www/phptest
- <Directory /var/www/phptest>
- DirectoryIndex index.php
- AllowOverride All
- Order allow,deny
- Allow from all
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
- sudo a2ensite phptest.conf
- sudo service apache2 restart
- 192.168.1.2 phptest.web www.phptest.web
- Localhost/registro/Index.html
Add Comment
Please, Sign In to add comment