Wamp Installing multiple PHP versions, loading issues

Source: Internet
Author: User
Wamp Installing multiple PHP versions, problems loading
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.
------to solve the idea----------------------
You need to set the correct PHP configuration file to load so that you can switch to the desired version.
------to solve the idea----------------------
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.
  • 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.