PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 19th, 2002, 09:58 AM
mhoward mhoward is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 49 mhoward User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
PHP/Apache2 Install on Win2k

After having PHP installed with IIS5 on my Win2K server and having a few issues, I have now installed Apache2 web server.

I have run through the config instructions that come with the PHP/Windows download but I am now getting the following 2 error messages every time the Apache2 service tries to start...

1.
The Apache service named reported the following error:
>>> Syntax error on line 160 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: .

2.
The Apache service named reported the following error:
>>> Cannot load C:/php/sapi/php4apache.dll into server: The specified module could not be found. .

Line 160 of my httpd.conf reads...

LoadModule php4_module C:/php/sapi/php4apache.dll

My PHP install dir is c:php so the path is correct and indeed the file exists.

Has anyone experienced this problem and resolved?

Reply With Quote
  #2  
Old September 22nd, 2002, 06:59 AM
vonstroodl vonstroodl is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 vonstroodl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHP/Apache2 Install on Win2k

the problem is that the instructions that come with the php distrubutions only cover installations for Apache 1.3.x and not the 2.0 versions
luckily for your (and me!) flashkit.com has a tutorial on how to do just that
http://www.flashkit.com/tutorials/Backend/Installi-Jeffrey_-776/more4.shtml

Reply With Quote
  #3  
Old September 22nd, 2002, 07:05 AM
vonstroodl vonstroodl is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 vonstroodl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: PHP/Apache2 Install on Win2k

oh forgot to mention one thing
in the tutorial, it mentions adding the line "LoadModule php4_module c:/PHP/experimental/apache2filter.dll"
you should replace it with 'c:/PHP/sapi/php4apache2.dll' instead or wherever your php4apache2.dll file may be

Reply With Quote
  #4  
Old October 4th, 2002, 01:57 PM
mhoward mhoward is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 49 mhoward User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: PHP/Apache2 Install on Win2k

thanks. That link you gave me won't work. Do you know of anywhere else I can get it?

Reply With Quote
  #5  
Old October 4th, 2002, 02:10 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP/Apache2 Install on Win2k

http://www.flashkit.com/tutorials/Backend/Installi-Jeffrey_-776/index.php

Reply With Quote
  #6  
Old November 30th, 2002, 11:19 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP/Apache2 Install on Win2k

i have the exact same problem as mhoward described.
i use apache 1.3.27 and php 4.2.3 on a win2k os, so has nothing to do with apahce2 as vonstroodl said.

please help me out with this!

--
psu

Reply With Quote
  #7  
Old December 3rd, 2002, 07:12 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP/Apache2 Install on Win2k

Copy your file /php/php4ts.dll to your /windows/system or /windows/system32 folder.

That worked for me.

Reply With Quote
  #8  
Old June 10th, 2003, 12:58 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP/Apache2 Install on Win2k

From the install.txt file:

!! NOTE !!
Whereever you load php4apache.dll from, php4apache.dll also
needs the php4ts.dll also included in the PHP4 distribution.
php4apache.dll depends on php4ts.dll which is loaded as soon as
Apache loads php4apache.dll. If php4ts.dll can't be found, you
usually get an error like (also see the "Problems?" section at
the end of the file):

Cannot load c:/php/sapi/php4apache.dll into server

So where does php4ts.dll has to be to be properly loaded ?
php4ts.dll is searched in the following order:

1) in the directory where apache.exe is start from
2) in the directory where php4apache.dll is loaded from
3) in your %SYSTEMROOT%System32, %SYSTEMROOT%system and
%SYSTEMROOT% directory.
Note: %SYSTEMROOT%System32 only applies to Windows NT/2000/XP)
4) in your whole %PATH%

Note: What is %SYSTEMROOT% ? Depending on your Windows
installation this may be for example c:winnt or C:windows

Usually you would just copy it over to %SYSTEMROOT%System32.
But if you want to have multiple PHP installations (for
whatever reason) this is a bad idea. For this circumstance the
safest thing is to let php4ts.dll reside in the same directory
where php4apache.dll is loaded from (see point 2 above).

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP/Apache2 Install on Win2k


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway