配置服务器过程中错误Cannot load php5apache2.dll into server
用Apache搭建服务器,Apache的版本为:Apache2.2.25-win32-x86-no_ssl,PHP版本为:php-5.2.6-win32, 编写测试PHP的文件: index.php,内容为: html headtitlephp 测试 /title/head ?php phpinfo(); ? /html 保存在Apache的软件安装目录htdocs文件夹下,
用Apache搭建服务器,Apache的版本为:Apache 2.2.25-win32-x86-no_ssl,PHP版本为:php-5.2.6-win32,
编写测试PHP的文件:index.php,内容为:
phpinfo();
?>
保存在Apache的软件安装目录htdocs文件夹下,
原先搭建过apache_2.0.55-win32-x86.exe+ php-5.1-Win32.zip的组合,
为了使apache支持php.在apache的配置文件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
但是在重新启动apache的时候,cmd窗口会提示Cannot load php5apache2.dll into server,
错误的原因是:
Apache+PHP的不同组合需要使用不同的dll来进行链接,
需要将LoadModule php5_module C:/php/php5apache2.dll改为:
LoadModule
php5_module C:/php/php5apache2_2.dll,
此时重新启动Apache,则可以启动成功。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version
Recommended: Win version, supports code prompts!

Atom editor mac version download
The most popular open source editor

Notepad++7.3.1
Easy-to-use and free code editor

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
