|
Home > Archive > Web Servers on Windows > January 2005 > Getting php4 to run as module in apache2
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Getting php4 to run as module in apache2
|
|
| Dan Stumpus 2004-12-29, 2:47 am |
| 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
| |
|
| On 28 Dec 2004, "Dan Stumpus" <dstumpus_NOSP@mindspring.com> wrote
in news:wrqAd.1210$Cc.398@newsread3.news.pas.earthlink.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.
| |
| Dan Stumpus 2004-12-29, 5:49 pm |
| 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
| |
|
| On 29 Dec 2004, "Dan Stumpus" <dstumpus_NOSP@mindspring.com> wrote
in news:0pBAd.11897$RH4.4965@newsread1.news.pas.earthlink.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.
| |
|
|
Dan Stumpus wrote:
> Nil wrote:
>
>
> 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).
>
tell[vbcol=seagreen]
>
> 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
| |
| Nisse Engström 2005-01-10, 2:46 am |
| 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
|
|
|
|
|