Jump to content

How to configure PHP 5 with Apache


Recommended Posts

Congrats and thanks for helping,i can see the test page now.

In PHP.Ini the doc_root has the wrong value

It shoudl have "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs" and

 

still i can see the test.php coming up fine.Why is that so ?

then What this tag does ?

Link to comment
Share on other sites

  • 1 month later...

Why is this happening???

 

LoadModule php5_module  "C:/Program Files/php/php5apache2_2.dll"

AddHandler application/x-http-php .php

PHPIniDir "C:/Program Files/PHP"

 

Above is what I added to my apache2.2 httpd

 

When I execute Apache (with these lines)

 

Apache won't start now. It complains that it can not load C:/Program Files/php/php5apache2_2.dll The specified module can not be found.

 

WHAT? Hay mr apache serve... it's right where I told you find it. what's the deal?

 

I tired to post a screen picture of my C:/Program Files/Php but that's beyond me too it seems with the edit option on this forum

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

Why is this happening???

 

LoadModule php5_module  "C:/Program Files/php/php5apache2_2.dll"

AddHandler application/x-http-php .php

PHPIniDir "C:/Program Files/PHP"

 

Above is what I added to my apache2.2 httpd

 

When I execute Apache (with these lines)

 

Apache won't start now. It complains that it can not load C:/Program Files/php/php5apache2_2.dll The specified module can not be found.

 

WHAT? Hay mr apache serve... it's right where I told you find it. what's the deal?

 

I tired to post a screen picture of my C:/Program Files/Php but that's beyond me too it seems with the edit option on this forum

 

 

the moderator can delete this!

I had used a install version that was automatic. Read the docs I was following didn't use the same auto install.  I went and extracted all the files from a zipped version of the same php version and that fixed this problem.  Something else must have been missing or maybe it was a permissions attribute?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.