Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Windows 10 - Home
- Apache 2.4.12
- ## httpd-xampp.conf
- ScriptAlias /php73 "C:/xampp/php73"
- <Directory "C:/xampp/php73">
- AllowOverride None
- Options None
- Require all denied
- <Files "php-cgi.exe">
- Require all granted
- </Files>
- </Directory>
- <Directory "C:\home\testphp73">
- UnsetEnv PHPRC
- <FilesMatch "\.php$">
- SetHandler application/x-httpd-php73
- Action application/x-httpd-php73 "/php73/php-cgi.exe"
- </FilesMatch>
- </Directory>
- ## httpd-vhosts.conf
- <VirtualHost *:80>
- DocumentRoot "C:/home/testphp73"
- ServerName testphp73.test
- <Directory "C:/home/testphp73">
- # AllowOverride All # Deprecated
- # Order Allow,Deny # Deprecated
- Allow from all # Deprecated
- # --New way of doing it
- Require all granted
- </Directory>
- </VirtualHost>
- ## index.php
- <?php
- phpinfo();
Add Comment
Please, Sign In to add comment