XAMPP Configuration Multi PHP Version

admin
Arief Siswanto
2022-07-23 10:58:35

Download versi PHP dan extract ke dalam folder xampp.
Contoh download PHP 73.
maka extract ke dalam folder E:\xampp\php73

kemudian edit file berikut E:\xampp\apache\conf\extra\httpd-xampp.conf

tambahkan kode berikut ke bagian paling bawa file

ScriptAlias /php73/ "/xampp/php73/"
<Directory "/xampp/php73">
    AllowOverride None
    Options None
    Require all denied
    <Files "php-cgi.exe">
          Require all granted
    </Files>
</Directory>
Listen 73
<VirtualHost *:73>
    UnsetEnv PHPRC
    <FilesMatch "\.php$">
        php_flag engine off
        SetHandler application/x-httpd-php73
        Action application/x-httpd-php73 "/php73/php-cgi.exe"
    </FilesMatch>
</VirtualHost>
No reply found.