Install multiple PHP versions in wamp. a problem occurs during loading.-php Tutorial

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.