Bluehost.com Web Hosting $6.95

Getting PHP to work with Apache

This is a discussion on Getting PHP to work with Apache within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hi, I'm trying to get PHP to work with Apache 2 on Win2K. I'm trying to setup the ...


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 04-09-2004
GreenAlbatros
 
Posts: n/a
Default Getting PHP to work with Apache

Hi,

I'm trying to get PHP to work with Apache 2 on Win2K.
I'm trying to setup the httpd.conf file to allow PHP to work with
Apache.
I'm editing the file adding the following lines:
LoadModule php_module c:\php\sapi\php4apache2.dll
and
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

When I restart Apache, I'm getting the following error:

Syntax error on line 173 of C:/Program Files/Apache
Group/Apache2/conf/httpd.con
f:
Can't locate API module structure `php_module' in file
C:/php/sapi/php4apache2.d
ll: No error
Note the errors or messages above, and press the <ESC> key to exit.
16...

What am I doing wrong?
When I'm using the default httpd.conf Apache works fine. It is only
when I'm adding the above lines that I'm getting the error message.

HELP!!!
Thanks
GreenAlbatros
  #2 (permalink)  
Old 04-12-2004
rach
 
Posts: n/a
Default Re: Getting PHP to work with Apache


"GreenAlbatros" <glevert@magma.ca> wrote in message
news:cc840794.0404081800.67f90f41@posting.google.c om...
> Hi,
>
> I'm trying to get PHP to work with Apache 2 on Win2K.
> I'm trying to setup the httpd.conf file to allow PHP to work with
> Apache.
> I'm editing the file adding the following lines:
> LoadModule php_module c:\php\sapi\php4apache2.dll
> and
> AddType application/x-httpd-php .php .phtml
> AddType application/x-httpd-php-source .phps
>
> When I restart Apache, I'm getting the following error:
>
> Syntax error on line 173 of C:/Program Files/Apache
> Group/Apache2/conf/httpd.con
> f:
> Can't locate API module structure `php_module' in file
> C:/php/sapi/php4apache2.d
> ll: No error
> Note the errors or messages above, and press the <ESC> key to exit.
> 16...
>
> What am I doing wrong?
> When I'm using the default httpd.conf Apache works fine. It is only
> when I'm adding the above lines that I'm getting the error message.
>
> HELP!!!
> Thanks
> GreenAlbatros


Just the other day I ran into the same problem.

You gotta download the zip file and not the install file. Then to make
things really easy, make sure it's unzipped to the c:\php folder. Then you
gotta copy the "php4ts.dll" file into the C:\Winnt\system32 or
C:\Windows\system etc folder. Now start apache2 and you should be set.

Rach

http://www.php.net/manual/en/install...windows.manual


  #3 (permalink)  
Old 04-13-2004
TowerOfPower
 
Posts: n/a
Default Re: Getting PHP to work with Apache

glevert@magma.ca (GreenAlbatros) wrote in message news:<cc840794.0404081800.67f90f41@posting.google. com>...
> Hi,
>
> I'm trying to get PHP to work with Apache 2 on Win2K.
> I'm trying to setup the httpd.conf file to allow PHP to work with
> Apache.



http://www.devside.net/web/server/win32/php-bin

http://www.devside.net/
 
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 08:31 PM.


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