无论是IIS 还是 Apache, 在启动PHP的时候,默认都从系统变量C:\Windows这个目录中寻找。 如果要在系统中同时使用IIS和Apache来运行PHP,而且PHP的版本又不一样,那么需要为Apache指定自己的PHP环境。 例如: 1 LoadModule php5_module D:/wamp/bin/php/php5
无论是IIS 还是 Apache, 在启动PHP的时候,默认都从系统变量"C:\Windows"这个目录中寻找。
如果要在系统中同时使用IIS和Apache来运行PHP,而且PHP的版本又不一样,那么需要为Apache指定自己的PHP环境。
例如:
<span>1</span> LoadModule php5_module "D:/wamp/bin/php/php5.4.3/php5apache2_2.dll" <span>2</span> PHPIniDir "D:\wamp\bin\php\php5.4.3"
这样Apache使用的php.ini和PHP的DLL都是加载的5.4.3版本的。让IIS使用环境变量中的php.ini。
另外在wamp启动的时候,经常会提示类似
"无法定位程序输入点 php_checkuid 于动态链接库 php5ts.dll"
"没有找到 php_pdo.dll ,因此这个应用程序未能启动。需要重新安装应用程序可能会修复此问题。"
上的错误。
解决方法:
1. 在 "D:/wamp/bin/php/php5.4.3"目录下新建这两个文件:
php-win.bat 内容为:
php-win.exe -c "D:/wamp/bin/php/php5.4.3/"
php.bat 内容为:
php.exe -c "D:/wamp/bin/php/php5.4.3/"
其中 -c 是指定程序启动是加载php.ini路径的意思。
2. 将wampmanager.ini中的php-win.exe和php.exe 替换成php-win.bat和php.bat.
重启wampmanager.exe就不会出现找不到挂载点的错误了。

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

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

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

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

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.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.
