Jump to content

Problem starting Apache 2.2.14, after installing PHP 5.3.1


Recommended Posts

Hi

I have windows XP on my intel pc.

I have installed Apache2.2.14 and it work fine.

Then I installed PHP 5.3.1.

 

I have following setup in httpd.conf.

 

LoadFile "C:/Program Files/php/php5ts.dll"

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

 

But I can't start apache with this two entrys in httpd.conf

 

When start Apache, it doesn't start.

I am not getting any error. Only popup windows with message

"The Requested Operation has Fail"

 

Please someone help.

 

cheers

Link to comment
Share on other sites

Hi

I have windows XP on my intel pc.

I have installed Apache2.2.14 and it work fine.

Then I installed PHP 5.3.1.

 

I have following setup in httpd.conf.

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

 

But I can't start apache with this two entrys in httpd.conf

 

When start Apache, it doesn't start.

I am not getting any error. Only popup windows with message

"The Requested Operation has Fail"

 

Please someone help.

 

cheers

Link to comment
Share on other sites

Why can't I find the php5apache2_2.dll in my php folder? I downloaded PHP 5.3.1 yesterday and tried to figure it out. I also searched my entire PC for the dll with no luck...

 

Any ideas?  :confused:

 

If this question was already answered, can you please post a link to that thread for me? Sorry, I didn't have time to search the entire forum...

 

Thanks

Link to comment
Share on other sites

  • 3 weeks later...

I'm having the same problem with my Apache server. I downloaded the latest versions of each (as far as I can tell), have VC6 PHP, and have everything linked.

 

I am using Windows XP

LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php  
PHPIniDir "C:/PHP/"

<FilesMatch \.php$>
      SetHandler application/x-httpd-php
</FilesMatch>

Loadfile "C:/PHP/php5ts.dll"

That is what I've inserted into into httpd.conf

 

Thank you in advance.

Link to comment
Share on other sites

These lines are not needed

<FilesMatch \.php$>
      SetHandler application/x-httpd-php
</FilesMatch>

Loadfile "C:/PHP/php5ts.dll"

Remove them.

 

Make sure you have restarted Apache after making any changes to the httpd.conf. You should also add PHP to the PATH Environment Variable. Do not configure the php.ini until Apache/PHP are working.

Link to comment
Share on other sites

I'm now wondering if I really need Apache. Are there any actual advantages to using it? Could I just upload my php files to an online server, or use a program like Microsoft's Expression Web?

 

I did what you advised, but Apache still is giving me the same error. I took the dll and moved it to a bunch of places and changed the directory, but it still cannot locate the module.

Link to comment
Share on other sites

  • 4 weeks later...

I know this thread is a month old but for sake of keeping the board clean I will post here.  I am having this exact same problem.  Secondly, until today I have no experience with Apache or PHP but I am not a total fool :)

*I am using Apache 2.2.14 with open ssl , PHP 5.3.1 not thread safe VC6 x86, XPSP3. 

*I have placed my php folder into the path variable and rebooted. 

In the error log I get: cannot open php5apache2_2.dll.  The module cannot be located.  I have dl'ed the dll and placed it in my php folder and still nothing.  I have searched many forums and tried many fixes but none work.

This is the code used:

<code>LoadModule php5_module "C:/server/php/php5apache2_2.dll"

PHPIniDir "C:/server/php"</code>

Thanks for any help, it works for other people so I am sure I am doing something wrong.

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.