Error Cannotloadphp5apache2. dllintoserver during server configuration

Source: Internet
Author: User
Build the server with Apache, Apache version is: Apache2.2.25-win32-x86-no_ssl, PHP version is: php-5.2.6-win32, write the test PHP file: index. php, the content is: htmlheadtitlephp test titlehead? Phpphpinfo ();? Html is saved in the htdocs folder of the Apache software installation directory,

Build the server with Apache, Apache version is: Apache2.2.25-win32-x86-no_ssl, PHP version is: php-5.2.6-win32, write the test PHP file: index. php, content: html headtitlephp test/title/head? Php phpinfo ();? /Html is saved in the htdocs folder of the Apache software installation directory,

Build a server with Apache, Apache version: Apache 2.2.25-win32-x86-no_ssl, PHP version: php-5.2.6-win32,

Compile the PHP test file index. php with the following content:

Php Testing

Phpinfo ();

?>

Save it in the htdocs folder of the Apache software installation directory,

First build a combination of apache_2.0.55-win32-x86.exe + php-5.1-Win32.zip,

To enable apache to support php, add the following lines to the apache configuration file httpd. conf:

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 prompts "Cannot load php5apache2. dll into server,

The cause of the error is:

Different combinations of Apache and PHP require different dll links,

Change LoadModule php5_module C:/php/php5apache2. dll:

LoadModule php5_module C:/php/php5apache2_2.dll,

Restart Apache.





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.