Building a PHP environment
This post was last edited by Tcmis on 2013-04-03 17:53:43
Brother First Contact PHP, today is to build an afternoon of the environment, the internet turned a lot of information, how to get bad, you have to consult the master, the environment and software list as follows
Os:win7 32-bit
ide:zendstudioforeclipse-6.1.2
Php-5.2.17-win32-vc6-x86 (Thread Safe) + Httpd-2.2.22-win32-x86-no_ssl
The software is installed under D:\Program Files
Everything else, that is, when loading PHP in Apache, the old configuration is unsuccessful,
LoadModule php5_module "D:/program files/php/php5apache2_2.dll"
I checked the information and changed it into nothing. Apache is not launched
1.LoadModule Php5_module D:/program Files/php/php5apache2_2.dll
2.LoadModule Php5_module. /php/php5apache2_2.dll
To change the above DLL to Php5apache2.dll is also the same, the test has been tried, do not know what should be noted, please hero guidance, greatly appreciated.
------Solution--------------------
What about the quotes?
LoadModule php5_module "D:/program files/php/php5apache2_2.dll"
------Solution--------------------
Decisive integration of the installation package ... We're going to have to build it later in Linux.
------Solution--------------------
Landlord, your PHP do not use the installation program. Use this php-5.2.17-win32-vc6-x86.zip format for direct decompression.
1. Change Php.ini-dist to PHP.ini
2. Configure httpd.conf
LoadModule php5_module "D:/app/php5/php5apache2_2.dll"
Phpinidir "D:/APP/PHP5"
AddType application/x-httpd-php. php
------Solution--------------------
Suggest you download the Wampserver, the whole set to help you install
------Solution--------------------
Reference:
I have PHP reinstalled again, this time I installed directly in the root of the D disk, LoadModule php5_module "D:/php/php5apache2_2.dll" This is no problem,
But I checked on the internet, some people say that if you install under X:\program files, you can use the X:\Program files. /Replace, I also did not replace yesterday, do not PHP can be installed in the X:\Program
...
Do not install in the Chinese path I have heard, do not install under the program files is not possible ... Because the previous installation package is under this. If you're still tossing, you can do this.
http://bbs.csdn.net/topics/370107885