Apache and PHP cannot be associated

Source: Internet
Author: User
Apache and PHP cannot be associated. apache version is a httpd-2.2.25-win32-x86-no_ssl.
PHP is php-5.3.27.tar
The three lines added by httpd in E: \ apache \ conf are:
LoadModule php5_module "E:/PHP/php5apache2_4.dll"
PHPIniDir "E: \ PHP"
AddType application/x-httpd-php. php. phtml
However, when Apache is started, the error php5apache2_4.dll is reported. It's speechless.
The php5apache2_2.dll file is added in the tutorial, but only php5apache2_4.dll is in the PHP file.
How can I solve this problem? It has been a problem for several days. it has been reinstalled several times.


Reply to discussion (solution)

"E:/PHP/php5apache2_4.dll" should be "E: \ PHP \ php5apache2_4.dll"

It seems that the php5apache2_4.dll written later has something to do with the apache version. if it is not a problem on the top floor, switch to the PHP version and check whether PHP version of php5apache2_2.dll is available.

1 floor + 1

Sorry, thanks to the proposal on the first floor. I noticed the backslash when I installed it several times. it's not that problem. it still doesn't work after the change. it seems that the version does not match, however, it doesn't matter if I see other posts saying that they are different versions. I don't know the correct version. I have found several PHP versions and have not found any PHP version that contains php5apache2_2.dll. Depressed.

Can I recommend a PHP version with php5apache2_2.dll? Thank you very much.

I have a local http://www.kuaipan.cn/file/id_18519259030232013.htm.

Can I download the php5apache2_2.dll file separately?

Calm and carefully read the installation instructions

Php I don't have an installed version. I only need compression. I have no installation instructions. it's really hard to learn something by myself... Tough child

Try another php version with a lower version.

Php I don't have an installed version. I only need compression. I have no installation instructions. it's really hard to learn something by myself... Tough child

You should use the integrated environment. Give you a development tool Daquan http://tool.php100.com/

Install an integrated environment.

I downloaded a php-5.2.17-Win32-VC6-x86 installation file from the Internet, which contains php5apache2_2.dll, filled with joy after the installation is still not good, now is the memory error, from the internet to see that C: I can delete a dll file in \ WINDOWS \ system32. Why is the error of the memory and 192.168.1.101 address reported .. I really want to understand.
You can install the integration .. Hope it will succeed.

Http://www.ychong.com/windows-wamp-installation-tutorials/ recommended you look.

Has your problem been solved? I also had this problem. I added these lines of code.
Loadmodule php5_module c:/IDS/php5/php5apache2_2.dll
PHPInidir "c:/IDS/php5"
AddType application/x-httpd-php. php. phtml

It is found that the first line of code cannot be started without the # sign. after the # sign is added, the code should not be associated when entering the Test file results in ie after startup, do you know how to solve this problem?

Php5apache2_2.dll check path
Instead of copying and pasting the paths in others' tutorials.

It is the local path. this file exists, and the path is okay. it is mainly the loadmodule php5_module c:/IDS/php5/php5apache2_2.dll statement. do you want to add the # sign before the statement, every time you add the # sign, apache cannot be started. I don't know why. adding the # sign seems to have no effect.

The integration package, or the rest of Linux are cloud float...

Linux is much simpler, and I feel like Windows is getting bored.

I do not know why the configuration files, such as the original "c: \ windows", should be written as "c:/windows". check the configuration files.

Has your problem been solved? I also had this problem. I added these lines of code.
Loadmodule php5_module c:/IDS/php5/php5apache2_2.dll
PHPInidir "c:/IDS/php5"
AddType application/x-httpd-php. php. phtml

It is found that the first line of code cannot be started without the # sign. after the # sign is added, the code should not be associated when entering the Test file results in ie after startup, do you know how to solve this problem?


Loadmodule php5_module c:/IDS/php5/php5apache2_2.dll. Where did you add it? This is to be added under LoadModule.

The location is correct, but the front side is not added # An error is reported.

Try another php version with a lower version.

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.