PHP environment preparation

Source: Internet
Author: User
PHP environment setup This post was last edited by tcmis from 2013-04-0317: 53: 43 & nbsp; the first time my brother came into contact with PHP, today I set up an environment for one afternoon, I have read a lot of information on the Internet, but I cannot help you with it. I have to consult with experts in this field. & nbsp; the environment and software list is as follows & nbsp; OS: & nbsp; PHP environment construction
At the end of this post, tcmis edited at 17:53:43 a.m. on. this is the first time that my brother contacted PHP. today, I set up an environment for one afternoon. I 've flipped through a lot of information on the Internet, but I can't help it, you have to consult experts in this field. the environment and software list is 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 works, that is, when php is loaded in Apache, the old configuration is not successful,
LoadModule php5_module "d:/Program Files/PHP/php5apache2_2.dll"
After checking the information, nothing can start Apache.
1. LoadModule php5_module d:/Program Files/PHP/php5apache2_2.dll
2. LoadModule php5_module ../PHP/php5apache2_2.dll

The above dll is also the same as php5apache2. dll. I tried it all once. I don't know what else to pay attention to. thank you for your advice ..
------ Solution --------------------
What about quotation marks?
LoadModule php5_module "d:/Program Files/PHP/php5apache2_2.dll"
------ Solution --------------------
Decisively integrate the installation package... compile it in linux later.
------ Solution --------------------
Do not use the installation program for your PHP. Use the php-5.2.17-win32-vc6-x86.zip format to decompress the package directly.
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 --------------------
I suggest you renew Wampserver.
------ Solution --------------------
Reference:
I re-installed PHP again. this time, I directly installed it in the root directory of drive D, LoadModule php5_module "D:/php/php5apache2_2.dll". This is no problem,
However, I checked it online and someone said that if you install it under X: \ program files, you can use x: \ program files .. /Replace. I cannot replace it yesterday. cannot php be installed on x: \ program ......


I have heard of it instead of installing it in the Chinese path. it is impossible not to install it in program files... because the original installation packages are all under this. if you are still struggling, you can try this.
Http://bbs.csdn.net/topics/370107885

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.