Can't Configure PHP with Apache on Windows

This is a discussion on Can't Configure PHP with Apache on Windows within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hi I have done everything as stated in the book, but when I want to start Apache server Monitor I ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-28-2005
alegiit@yahoo.it
 
Posts: n/a
Default Can't Configure PHP with Apache on Windows

Hi I have done everything as stated in the book, but when I want to
start Apache server Monitor I get the error The requested operation has
failled. I have installed MySQL first, then Apache, in order to
install PHP4, I have unzipped all of the files to a directory on C:/
then I have copied the php.ini file in WINDOWS, then I have copied
php4ts.dll into WINDOWS/system32. I have made amendments into the
conf.httpd as follows:

LoadModule php4_module C:/php/sapi/php4apache2.dll

plus:

AddType application/x-httpd-php .php .phtml .html
AddType application/x-httpd-php-source .phps

Saved everything and when I start Apache Server I get the message "The
requested operation has failled"

Can someone help, thank you very much!
Sincerely
Alessandro

  #2 (permalink)  
Old 09-28-2005
Lee
 
Posts: n/a
Default Re: Can't Configure PHP with Apache on Windows


<alegiit@yahoo.it> wrote in message
news:1127932997.351076.312860@g43g2000cwa.googlegr oups.com...
> Hi I have done everything as stated in the book, but when I want to
> start Apache server Monitor I get the error The requested operation has
> failled. I have installed MySQL first, then Apache, in order to
> install PHP4, I have unzipped all of the files to a directory on C:/
> then I have copied the php.ini file in WINDOWS, then I have copied
> php4ts.dll into WINDOWS/system32. I have made amendments into the
> conf.httpd as follows:
>
> LoadModule php4_module C:/php/sapi/php4apache2.dll



Place the php4ts.dll into c:\windows ... not system directory... just try
it.. I had no problem installing on mine even without moving dll files. Hope
this helps


  #3 (permalink)  
Old 09-28-2005
Nil
 
Posts: n/a
Default Re: Can't Configure PHP with Apache on Windows

On 28 Sep 2005, alegiit@yahoo.it wrote in
news:1127932997.351076.312860@g43g2000cwa.googlegr oups.com:

> Hi I have done everything as stated in the book, but when I want
> to start Apache server Monitor I get the error The requested
> operation has failled.


Assuming this is Windows NT/2000/XP, check the application and system
logs for clues. Also the Apache error log.

I don't remember the exact details, but I remember that one or two of
the DLLs need to be in the path somewhere.
  #4 (permalink)  
Old 10-17-2005
Lardy
 
Posts: n/a
Default Re: Can't Configure PHP with Apache on Windows

When I did my installation I made some notes in case I ever had to do it
again. This is what worked for me, hope it helps.


Installation of PHP 5.0.4 with Apache 2.0.53 on Windows Server 2003
-------------------------------------------------------------------

1. Download and install Apache web server 2.0.53

2. Download PHP [php-5.0.4-Win32.zip] and extract it to C:\PHP

3. Add C:\PHP to the Windows PATH environment variable

4. Rename php.ini-recommended to php.ini

5. Add the following lines to your Apache configuration file [httpd.conf],
and save.

#PHP Configuration Start
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php/"
#PHP Configuration End

6. Restart the Apache Web Server

-------------------------------------------------------------------
You now have a working Windows Apache installation with PHP.



Lardy.


<alegiit@yahoo.it> wrote in message
news:1127932997.351076.312860@g43g2000cwa.googlegr oups.com...
> Hi I have done everything as stated in the book, but when I want to
> start Apache server Monitor I get the error The requested operation has
> failled. I have installed MySQL first, then Apache, in order to
> install PHP4, I have unzipped all of the files to a directory on C:/
> then I have copied the php.ini file in WINDOWS, then I have copied
> php4ts.dll into WINDOWS/system32. I have made amendments into the
> conf.httpd as follows:
>
> LoadModule php4_module C:/php/sapi/php4apache2.dll
>
> plus:
>
> AddType application/x-httpd-php .php .phtml .html
> AddType application/x-httpd-php-source .phps
>
> Saved everything and when I start Apache Server I get the message "The
> requested operation has failled"
>
> Can someone help, thank you very much!
> Sincerely
> Alessandro
>



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0