PHP cannot be started after PHP is configured in Apache
The version of PHP is: 5.2.17
Configuration file Code:
LoadModule Php5_module D:/php/php5apache2_2.dll
AddType application/x-httpd-php.php
Phpinidir "d:/php"
The download is a compressed package, installed in the d:/php
Status: The requested operation has failed
How to solve it? Apache PHP PHP5 Compression Web
Share to:
------Solution--------------------
Reference:
Apache is running a threaded MPM, but your the PHP Module is isn't compiled to be threadsafe. You need to recompile PHP.
Pre-configuration failed
This is the main sentence, refer to:
http://blog.csdn.net/abandonship/article/details/7344918
------Solution--------------------
Novice words suggest you install a wamp, particularly useful, I am a novice.
------Solution--------------------
Yes, to open php.ini file, modify it.
Extension_dir should not need to be modified, the default installation is already set
Default_charset can be replaced by what you need.
Extension is to find what you want, delete the front semicolon;
After you modify the save and restart Apache (Administrative tools, Services found apache2).
What do you mean by "installation is not successful"?
------Solution--------------------
I follow the Hanshunping PHP video deliberately installed, after the installation succeeded, compared to the downstairs of the main installation situation, pointed out that different.
1.apache configuration file, httpd.conf, Hanshunping teacher configuration so configured (can ignore the different path);
Phpinidir "f:/ampserver/php"
LoadModule Php5_module F:/ampserver/php/php5apache2_2.dll
SetHandler application/x-httpd-php
2. Next, we're going to install PHP. After PHP decompression, and did not php.ini this file, you have to do is to change the php.ini-production to PHP.ini (this step is not done?) ).
3. In Apache's Htdoc file, you'd better put a file that can be named info.php the file is
Phpinfo ();
Then you visit the next localhost/info.php, see if there is a table, there is no php,php the following table is not loaded Configuration File This column is not shown php.ini path. If so, the PHP installation was successful.
3. The question behind you:
Open php.ini File: (Add or Open)
Extension_dir = "PHP installation directory \ext"
Default_charset = "GBK"
Extension=php_mysql.dll
Do not understand how to change, because these php.ini modification is mainly for the installation of MySQL. Enable PHP and MySQL to connect.
In more detail, it is recommended that you take a look at Hanshunping's PHP video tutorial 25th-30 speaking.