PHP5.4 + apache2.4 configuration problems

Source: Internet
Author: User
PHP5.4 + apache2.4 configuration problems my environment is:

Win7 64-bit

Apache2.4.4 64-bit

Php5.4 thread-safe version


Php. ini configuration has been completed

Configuration problems in apache

In http. conf

    LoadModule php5_module "E:/Instools/Develop/php/php-5.4.15/php5apache2_4.dll"    AddHandler application/x-httpd-php .php    PHPIniDir "E:/Instools/Develop/php/php-5.4.15"       


Apache cannot be started now. it is okay to comment out the above three sentences. how can I configure php for apache2.4 64-bit in win7 64-bit?


Reply to discussion (solution)

AddHandler? No, AddType.

Neither can AddType.

The following path must be added to the system environment path:

E:/Instools/Develop/php/php-5.4.15/ext; E:/Instools/Develop/php/php-5.4.15
Try it. I just tried it today.

Your code runs under my apache, but the premise is "E:/Instools/Develop/php/php-5.4.15/php5apache2_4.dll" I have modified, the final module name is php5apache2_2.dll. Check whether you wrote the error?

Here is another suggestion. try not to use SetHandler application/x-httpd-php .php. because of this defect, the. php.txt file will also be parsed into php code. (This was emphasized by php-han Zhongkang when I learned php from Chuanzhi podcast)
Try to use:

SetHandler application/x-httpd-php

Otherwise, paste the error log and check it out.

The following path must be added to the system environment path:

E:/Instools/Develop/php/php-5.4.15/ext; E:/Instools/Develop/php/php-5.4.15
Try it. I just tried it today.

I tried it, but I still cannot. apache cannot be started. are you talking about the logs in the apache logs folder?

Your code runs under my apache, but the premise is "E:/Instools/Develop/php/php-5.4.15/php5apache2_4.dll" I have modified, the final module name is php5apache2_2.dll. Check whether you wrote the error?

Here is another suggestion. try not to use SetHandler application/x-httpd-php .php. because of this defect, the. php.txt file will also be parsed into php code. (This was emphasized by php-han Zhongkang when I learned php from Chuanzhi podcast)
Try to use:

SetHandler application/x-httpd-php


Php5apache2_4.dll is not written incorrectly. it is okay to use this file of apache 2.2, but apache uses apache2.4. Therefore, the file corresponds to 2.4, and it is also tested to change to 2.2.

Can your 64-bit apache use the 32-bit API library php5apache2_4.dll? What do I say on the official website?

Can your 64-bit apache use the 32-bit API library php5apache2_4.dll? What do I say on the official website?

I tried apache2.4 for 32 bits last night.

Php5apache2_4.dll only exists in the latest php 5.4.15 package. None in previous versions
It is experimental. Only a few days after the release, it is clear that there are not many people doing the test. if there is a problem, it is estimated that it has not been reflected.

If you can't wait, test it on your own. But it seems that you do not have this capability

Php5apache2_4.dll only exists in the latest php 5.4.15 package. None in previous versions
It is experimental. Only a few days after the release, it is clear that there are not many people doing the test. if there is a problem, it is estimated that it has not been reflected.

If you can't wait, test it on your own. But it seems that you do not have this capability

In php 5.4.15 and earlier versions 5.4.x, php5apache2_4.dll is downloaded as a separate zip package and used for experimental testing. now php5apache2_4.dll has been integrated into the latest php version, it only indicates that the test has passed, but not that you have integrated it into the latest php version for testing.

In addition, I posted a post asking my configured friends to help you. "If you can't wait, test it on your own. However, it seems that you do not have this ability. "The purpose of this is different from that of the person who sends a post to ask questions. as long as there is a problem, you can test it on your own. there is no need to ask someone here, I doubt how you became a moderator?

The error log refers to the windows logs related to apache.

My error message is as follows:
Httpd.exe: Syntax error on line 525 of C:/Program Files/Apache Software Foundation/Apache2.4/conf/httpd. conf: Cannot load C:/Program Files/PHP/php5apache2_4.dll into server: \ xd5 \ xd2 \ xb2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xb6 \ xa8 \ xb5 \ xc4 \ xb3 \ xcc \ xd0 \ xf2 \ xa1 \ xa3

I have been struggling for a long time.

Test Environment: windows 2003 (x86)

How can we solve the same problem ????

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.