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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 |
|
|||
|
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/ |