Troubleshooting error cannot load Php5apache2.dll into server during configuration server

Source: Internet
Author: User

Using Apache to build the server, Apache version is: Apache 2.2.25-win32-x86-no_ssl,php version: Php-5.2.6-win32,

Write Test php file:index.php, the content is:

test </title>

<?php

Phpinfo ();

?>

Save in Apache's software installation directory Htdocs folder,

Originally built a combination of apache_2.0.55-win32-x86.exe+ php-5.1-win32.zip,

to enable Apache to support PHP. in the Apache the configuration file httpd.conf Enter the following lines:

scriptalias/php/"c:/php/"

AddType application/x-httpd-php. php3

AddType application/x-httpd-php. php

AddType application/x-httpd-php. phtml

LoadModule Php5_module C:/php/php5apache2.dll

However, when you restart Apache, the cmd window will prompt cannot load Php5apache2.dll into server,

The cause of the error is:

Different combinations of apache+php need to be linked using different DLLs,

The LoadModule php5_module C:/php/php5apache2.dll needs to be changed to:

LoadModule Php5_module C:/php/php5apache2_2.dll,

If you restart Apache at this point, you can start successfully.





Troubleshooting error cannot load Php5apache2.dll into server during configuration server

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.