kamm

https://stackoverflow.com/a/49586592/429523

Jan 6th, 2019
697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Windows 10 - Home
  2. Apache 2.4.12
  3.  
  4. ## httpd-xampp.conf
  5.  
  6. ScriptAlias /php73 "C:/xampp/php73"
  7. <Directory "C:/xampp/php73">
  8.     AllowOverride None
  9.     Options None
  10.     Require all denied
  11.     <Files "php-cgi.exe">
  12.         Require all granted
  13.     </Files>
  14. </Directory>
  15.  
  16. <Directory "C:\home\testphp73">
  17.     UnsetEnv PHPRC
  18.     <FilesMatch "\.php$">
  19.         SetHandler application/x-httpd-php73
  20.         Action application/x-httpd-php73 "/php73/php-cgi.exe"
  21.     </FilesMatch>
  22. </Directory>
  23.  
  24. ## httpd-vhosts.conf
  25.  
  26. <VirtualHost *:80>
  27. DocumentRoot "C:/home/testphp73"
  28. ServerName testphp73.test
  29.     <Directory "C:/home/testphp73">
  30.         # AllowOverride All      # Deprecated
  31.         # Order Allow,Deny       # Deprecated
  32.          Allow from all         # Deprecated
  33.  
  34.         # --New way of doing it
  35.         Require all granted    
  36.     </Directory>
  37. </VirtualHost>
  38.  
  39. ## index.php
  40.  
  41. <?php
  42. phpinfo();
Add Comment
Please, Sign In to add comment