1

As per one of the tutorial on configuring phpMyAdmin I configured the apache/conf/httpd.conf file as follows to establish the connection for PHP in apache.

PHPIniDir "c:\webserver\php"
LoadModule php5_module "c:\webserver\php\php5apache2_4.dll"
AddHandler application/x-httpd-php .php

I am getting an error:

The request operation has failed 

While restarting apache with the above changes. Where am I going wrong? Please can somebody explain how to figure it out.

3
  • 4
    Use forward slashes / instead of `\` in path names. Apache works with forward slash in windows also. also please mention the version of PHP and Apache you are using. Commented Nov 28, 2013 at 3:44
  • Try httpd -k start from the Apache/bin folder and see what error message you are getting. Commented Nov 28, 2013 at 3:48
  • 1
    @Bansi Thank you for the reply. I tried with \ but still apache is not getting started. The apache and PHP versions are httpd-2.2.25-win32-x86-no_ssl and php-5.5.6-Win32-VC11-x86 respectively. Also, I tried using httpd -k start but it says **httpd: Syntax error on line 133 of C:/webserver/apache/conf/httpd.conf: Cannot l oad C:/webserver/php/php5apache2_4.dll into server: The specified module could not be found. ** Commented Nov 28, 2013 at 4:21

1 Answer 1

1

With httpd-2.2.25 you should be using php5apache2_2.dll not php5apache2_4.dll.

Change the line

LoadModule php5_module "c:\webserver\php\php5apache2_4.dll"

to

LoadModule php5_module "c:/webserver/php/php5apache2_2.dll"
Sign up to request clarification or add additional context in comments.

1 Comment

I downloaded another version of PHP. Thank you. It works fine now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.