Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

1157

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  The opposite to IndexIgnore (or a negation operat..  
Author Message
lb004a8267_2

External


Since: Jan 04, 2004
Posts: 1



(Msg. 1) Posted: Sun Jan 04, 2004 8:39 pm
Post subject: 1157
Archived from groups: alt>apache>configuration (more info?)

I have just installed apache and php on windows 98
and added the following lines to the apache httpd.conf

ScriptAlias /php/ "C:/php"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

LoadModule php4_module modules/php4ts.dll
AddType application/x-httpd-php .php

But when I run the apache server I get this error message

Cannot load c:/program files/apache group/apache/module/php4ts.dll into
server: (1157) One of the library files needed to run this application
cannot be found.

the php4ts.dll is in 4 places on my machine

c:\php
c:\windows
c:\windows\system
c:\windows\system32

Please help!!

 >> Stay informed about: 1157 
Back to top
Login to vote
nomail13

External


Since: Jan 04, 2004
Posts: 4



(Msg. 2) Posted: Sun Jan 04, 2004 9:47 pm
Post subject: Re: 1157 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Lewis Burden" <lb004a8267_2.RemoveThis@blueyonder.co.uk> wrote in message
news:zeYJb.13865$Od5.13065@news-binary.blueyonder.co.uk...
 > I have just installed apache and php on windows 98
 > and added the following lines to the apache httpd.conf
 >
 > ScriptAlias /php/ "C:/php"
 > AddType application/x-httpd-php .php
 > Action application/x-httpd-php "/php/php.exe"
 >
 > LoadModule php4_module modules/php4ts.dll
 > AddType application/x-httpd-php .php
 >
 > But when I run the apache server I get this error message

I have a similar problem. Shouldn't the Loadmodule line read:

LoadModule php4_module c:/windows/system32/php4ts.dll

(or any of the other locations ?)
I may be completely wrong I admit upfront! Lame helping the blind....

Gluck!
Sjoerd<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: 1157 
Back to top
Login to vote
jsnews

External


Since: Jul 04, 2003
Posts: 6



(Msg. 3) Posted: Sun Jan 04, 2004 11:35 pm
Post subject: Re: 1157 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Lewis Burden" <lb004a8267_2 RemoveThis @blueyonder.co.uk> wrote in message
news:zeYJb.13865$Od5.13065@news-binary.blueyonder.co.uk...
 > I have just installed apache and php on windows 98
 > and added the following lines to the apache httpd.conf
 >
 > ScriptAlias /php/ "C:/php"

What would you want that for ?

 > AddType application/x-httpd-php .php

That's good.

 > Action application/x-httpd-php "/php/php.exe"

This loads the CGI version of php. You probably don't want that.

 >
 > LoadModule php4_module modules/php4ts.dll

This looks like the command to load the Apache PHP4 module. But there are
two things wrong with it: 1) It loads the wrong dll 2) You can't have PHP
active both as a CGI version and as an Apache module.

Resolution:
-----------
php4ts.dll needs to be copied to c:\windows\system (and just left there).

the LoadModule line should load the Apache PHP module, not the php4 dll:

--> LoadModule php4_module c:/php/sapi/php4apache.dll
# For Apache 1.3.x

or

--> LoadModule php4_module c:/php/sapi/php4apache2.dll
# For Apache 2.0.x, which I assume you're running

(of course you should change the path to the php directory if php is
installed anywhere else)


 > AddType application/x-httpd-php .php
 >
 > But when I run the apache server I get this error message
 >
 > Cannot load c:/program files/apache group/apache/module/php4ts.dll into
 > server: (1157) One of the library files needed to run this application
 > cannot be found.
 >
 > the php4ts.dll is in 4 places on my machine

That only leads to confusion. Just leave it in c:\php put a copy in
c:\windows\system.

 >
 > c:\php
 > c:\windows
 > c:\windows\system
 > c:\windows\system32
 >
 > Please help!!

Read the documentation!! It's there for a purpose!

Here is a working PHP config for Apache 2.0.x:

httpd.conf:
-----------
--> LoadModule php4_module c:/php/sapi/php4apache2.dll
....
--> AddType application/x-httpd-php .php

That's really all.

Jeroen.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 1157 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]