Wamp Installing multiple PHP versions, problems loading

Source: Internet
Author: User
Wamp in the release of multiple versions of PHP, loading, said the GD library is not open.

Look, Phpinfo ()
Pointing to the old php.ini, here is how to change to a new version of PHP.ini consult

There are several ways to try it out online. Thank you.


Reply to discussion (solution)

PHP extensions need to be compatible with PHP master files
The environment settings required for different versions of the

Therefore, it is recommended that you make a httpd.conf for each PHP version and copy to apache2/conf when switching versions


With the multi-site configuration httpd-vhosts.conf This is turned on, in this case how to do?

Is "Each PHP version made a httpd.conf, when switching versions to copy to Apache2/conf"?

Thank you





Want to know the different version of httpd.conf major changes to which parameters, can be downloaded to it. Thank you

You need to set the correct PHP configuration file to load so that you can switch to the desired version.

Http://www.163ns.com/zixun/post/5838.html

Is this supposed to be okay? I'll try when I'm not busy.

Thank you

1, virtual host does not belong to PHP support, no need to change.
2, httpd.conf in the actual PHP-related only these few lines
Phpinidir "/AMP/PHP54"
LoadFile "/amp/php54/php5ts.dll"
LoadModule php5_module "/amp/php54/php5apache2_2.dll"
AddType application/x-httpd-php. php
Set broken changes with PHP version (that is, the path is different)

General configuration in the explanation, there is no LoadFile "/amp/php54/php5ts.dll" This sentence
In fact, this sentence is very important, is the key to the green configuration. He can ensure that the support library required for PHP is found in the directory where the Php5ts.dll is located.

There are also some support libraries required for third-party extensions, which also need to be loaded, such as
Support Library for Redis
LoadFile "/amp/php54/ext/php_igbinary.dll"
Support Library for SWSC
LoadFile "/amp/php54/ext/swscale-0.dll"

You can try to preload the required support library when you find that some PHP extensions cannot be loaded.

Okay, thanks.

  • Related Article

    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.