PHP5.4 + apache2.4 Configuration Issues

Source: Internet
Author: User
My environment is:

Win7 64-bit

Apache2.4.4 64-bit

php5.4 Thread-Safe version


PHP.ini configuration is complete

Configuration issues under Apache

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"       


Now Apache can not start, the above 3 code comment is no problem, ask in Win7 64 bit under apache2.4 64-bit how to configure PHP


Reply to discussion (solution)

AddHandler? It's useless, addtype.

Not even AddType.

The following path must be added to the system's environment path

E:/instools/develop/php/php-5.4.15/ext; e:/instools/develop/php/php-5.4.15
You try it, I just tried it today.

Your code runs under my Apache is no problem, but the premise is "E:/instools/develop/php/php-5.4.15/php5apache2_4.dll" I have modified, the last module name I used is php5apache2_ 2. dll. Did you check if you wrote it wrong?

Here is a suggestion, try not to use SetHandler application/x-httpd-php PHP, because this approach is flawed, that is. Php.txt class files are also parsed into PHP code. (The PHP Hanzhongkang teacher has emphasized this when it comes to PHP learning.)
Try to use:

SetHandler application/x-httpd-php

Or put the error log on.

The following path must be added to the system's environment path

E:/instools/develop/php/php-5.4.15/ext; e:/instools/develop/php/php-5.4.15
You try it, I just tried it today.

Tried, or not, Apache boot not up, you say the log is Apache logs folder?

Your code runs under my Apache is no problem, but the premise is "E:/instools/develop/php/php-5.4.15/php5apache2_4.dll" I have modified, the last module name I used is php5apache2_ 2. dll. Did you check if you wrote it wrong?

Here is a suggestion, try not to use SetHandler application/x-httpd-php PHP, because this approach is flawed, that is. Php.txt class files are also parsed into PHP code. (The PHP Hanzhongkang teacher has emphasized this when it comes to PHP learning.)
Try to use:

SetHandler application/x-httpd-php


Php5apache2_4.dll not write wrong, originally with Apache is 2.2 of this file no problem, but Apache I use is apache2.4 so file corresponds to 2.4, changed to 2.2 also experiment, no

Can your 64-bit Apache use the 32-bit interface library Php5apache2_4.dll? What does the official website say?

Can your 64-bit Apache use the 32-bit interface library Php5apache2_4.dll? What does the official website say?

I experimented with apache2.4 32 last night.

Php5apache2_4.dll only exists in the newly released PHP 5.4.15 package. None of the previous versions
The results are experimental. Release only a few days, obviously do not have many tests, if there is a problem, it is not reflected in the estimate

If you can't wait, you can test yourself. But you don't seem to have that ability.

Php5apache2_4.dll only exists in the newly released PHP 5.4.15 package. None of the previous versions
The results are experimental. Release only a few days, obviously do not have many tests, if there is a problem, it is not reflected in the estimate

If you can't wait, you can test yourself. But you don't seem to have that ability.

In version 5.4.x prior to PHP 5.4.15, Php5apache2_4.dll was downloaded as a separate zip package, which was used as an experimental test, and now Php5apache2_4.dll has been integrated into the latest PHP version, only to indicate that the test has passed , instead of what you said, integrating into the latest PHP version becomes a test.

Also I send a post is to ask a configured friend to give some help, your "If you can't wait, you test yourself." But it seems that you do not have the ability "and have the problem of the people to ask for the purpose of the same, according to your meaning as long as there is a problem to test on their own, there is no need to come here to consult others, I suspect you are how to become a moderator?"

Error log, which is about Apache inside the related Windows logs

Mine is such a bug tip:
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

It's been a long struggle.

Test environment is: Windows 2003 (x86)

The same problem, how to solve the ah????

  • Related Article

    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.