Bluehost.com Web Hosting $6.95

Getting php4 to run as module in apache2

This is a discussion on Getting php4 to run as module in apache2 within the Windows Web Servers forums, part of the Web Server and Related Forums category; When I put the following three lines in my hppd.conf (as per the php install instructions): LoadModule php4_module "...


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 12-29-2004
Dan Stumpus
 
Posts: n/a
Default Getting php4 to run as module in apache2

When I put the following three lines in my hppd.conf (as per the php install
instructions):

LoadModule php4_module "c:/php/php4apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "c:/php"

I get the following error in the console (not even the log file) on startup:

Syntax error on line 987 of c:/..../httpd.conf:
Cannot load C:/Php/php4apache2.dll into server: One of the library files
needed to run this application cannot be found.
Note the errors and press the <esc> key to exit.

The php4apache2.dll is in the correct directory.
Can anyone give me a hint as to what might be missing?

In the meantime, I'm running as a cgi.

Regards,

Dan


  #2 (permalink)  
Old 12-29-2004
Nil
 
Posts: n/a
Default Re: Getting php4 to run as module in apache2

On 28 Dec 2004, "Dan Stumpus" <dstumpus_NOSP@mindspring.com> wrote
in news:wrqAd.1210$Cc.398@newsread3.news.pas.earthlin k.net:

> The php4apache2.dll is in the correct directory.
> Can anyone give me a hint as to what might be missing?


I always had trouble getting PHP4 to find it's dlls in the PHP
directory. I finally put the necessary ones (php4apache.dll,
php4ts.dll, and my.ini) in Windows\system32 and all was well.

Since then, I've installed PHP5 and it finds it's dlls wherever I tell
it to look.
  #3 (permalink)  
Old 12-29-2004
Dan Stumpus
 
Posts: n/a
Default Re: Getting php4 to run as module in apache2

Nil wrote:

> I always had trouble getting PHP4 to find it's dlls in the PHP
> directory. I finally put the necessary ones (php4apache.dll,
> php4ts.dll, and my.ini) in Windows\system32 and all was well.


Thanks! On my old creaky win 98 system, I put php4ts.dll in Windows, and it
works now (I left the ini and php4apache2.dll in c:\php).

> Since then, I've installed PHP5 and it finds it's dlls wherever I tell
> it to look.


I went with php4 'cause I couldn't figure out how to enable mysql support,
but now that I've researched the answer, I'll upgrade soon.

Thanks for your help,

Dan


  #4 (permalink)  
Old 12-29-2004
Nil
 
Posts: n/a
Default Re: Getting php4 to run as module in apache2

On 29 Dec 2004, "Dan Stumpus" <dstumpus_NOSP@mindspring.com> wrote
in news:0pBAd.11897$RH4.4965@newsread1.news.pas.earth link.net:

> I went with php4 'cause I couldn't figure out how to enable mysql
> support, but now that I've researched the answer, I'll upgrade
> soon.


It took me a little while, but I got this working as well, so ask if
you want advice when the time comes.

> Thanks for your help,


You're welcome. Thanks for the follow-up - that's almost unheard of in
this newsgroup.
  #5 (permalink)  
Old 01-03-2005
Mike
 
Posts: n/a
Default Re: Getting php4 to run as module in apache2


Dan Stumpus wrote:
> Nil wrote:
>
> > I always had trouble getting PHP4 to find it's dlls in the PHP
> > directory. I finally put the necessary ones (php4apache.dll,
> > php4ts.dll, and my.ini) in Windows\system32 and all was well.

>
> Thanks! On my old creaky win 98 system, I put php4ts.dll in Windows,

and it
> works now (I left the ini and php4apache2.dll in c:\php).
>
> > Since then, I've installed PHP5 and it finds it's dlls wherever I

tell
> > it to look.

>
> I went with php4 'cause I couldn't figure out how to enable mysql

support,
> but now that I've researched the answer, I'll upgrade soon.
>
> Thanks for your help,
>
> Dan


Will PHP5 run on Win98 SE or is XP or NT required?
I haven't tried PNP5 yet, afraid of consequences on my creaker.
Thanks,
Mike

  #6 (permalink)  
Old 01-10-2005
Nisse Engström
 
Posts: n/a
Default Re: Getting php4 to run as module in apache2

Mike<mncohen@earthlink.net> wrote:
>
> Will PHP5 run on Win98 SE or is XP or NT required?
> I haven't tried PNP5 yet, afraid of consequences on my creaker.


I have PHP 5.0.2 running on Win98SE.

--n
 
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 10:18 PM.


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