When wamp is installed with multiple PHP versions, a problem occurs during the loading of wamp where multiple versions of php are put. during the loading, the GD library is not opened.
After reading it, phpinfo ()
Point to the old php. ini. how can I change it to the new version of php. ini?
I tried several methods online. Thank you.
Reply to discussion (solution)
Php extension must be compatible with the main php file
The environment settings required for different versions are also different.
Therefore, we recommend that you create an httpd. conf file for each php version and copy it to apache2/conf when switching the version.
Use is multi site configuration httpd-vhosts.conf this opened, in this case how to do?
Is it "creating an httpd. conf for each php version and copying it to apache2/conf when switching the version?
Thank you.
You can download the httpd. conf parameters of different versions. Thank you.
You need to configure and load the correct php configuration file to switch to the required version.
Http://www.163ns.com/zixun/post/5838.html
Should this be okay? Wait for a while and try again
Thank you.
1. the VM is not supported by php and does not need to be changed.
2. the php-related lines in httpd. conf are actually only the rows.
PHPIniDir "/AMP/php54"
LoadFile "/AMP/php54/php5ts. dll"
LoadModule php5_module "/AMP/php54/php5apache2_2.dll"
Addtype application/x-httpd-php. php
The red box changes with the php version (that is, the path is different)
In general, there is no such sentence as LoadFile "/AMP/php54/php5ts. dll ".
In fact, this sentence is very important and the key to green configuration. He can ensure that the supported libraries required by php are found in the php5ts. dll directory.
There are also some supporting libraries required for third-party extensions that need to be loaded as well, such
Redis support database
LoadFile "/AMP/php54/ext/php_igbinary.dll"
SWSC support Library
LoadFile "/AMP/php54/ext/swscale-0.dll"
When you find that some php extensions cannot be loaded, you can try to load the required support libraries in advance.
Thank you!