But now I have thi issue, I need to have two php version on one instances of xammp so i downloaded the version i needed and make a new directory into xampp root and edited php.ini extension dir.
In the httpd-xampp.conf i inserted this:
- Code: Select all
ScriptAlias /php73 "C:/xampp/php73"
Action application/x-httpd-php73-cgi /php73/php-cgi.exe
<Directory "C:/xampp/php56">
AllowOverride None
Options None
Require all denied
<Files "php-cgi.exe">
Require all granted
</Files>
</Directory>
I only need one directory to use the second version so I inserted below:
- Code: Select all
<Directory "C:\xampp\htdocs\my_old_project1">
<FilesMatch "\.php$">
SetHandler application/x-httpd-php73-cgi
</FilesMatch>
</Directory>
The server start without error but when i request the page that need the old version it gives me a 500 error, in the windows event log i found this for every extension:
- Code: Select all
PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: E:\xampp\php\ext\mysqli (The specified module could not be found.), E:\xampp\php\ext\php_mysqli.dll (The specified procedure could not be found.)) (E:\xampp\php73\php-cgi.exe)
The problem is that it search for the extension enabled in the "default" version of php (not the second) and in its folder.