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:
  #1  
Old July 17th, 2005, 07:27 PM
B52 B52 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 B52 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Apache1.3 / PHP5: Cannot load c:/php/php5apache.dll

Having installed Apache+PHP I can no longer start apache. Here are the details...

(1) Clean install of win 98 (4.10.1998 - not 98SE) on AMDK2-6/300-3Gb-48Mb system

(2) Installed Quaterdeck Zip-It (File Compression/Decompression) and Adobe Acrobat Reader (5.0.1)

(3) Installed Apache (1.3.29) to Crogram FilesApache GroupApache

(4) Test page displays correctly but with following warning in the error log:

[Sat Jul 16 23:49:51 2005] [warn] (2)No such file or directory: exec() may not be safe

(5) unzipped PHP (5.0.4.4) to c:php

(6) Added c:php to PATH in autoexec.bat

(7) Rebooted and confirmed this OK using path command in DOS window

(8) Copied php.ini-recommended to C:Windows and renamed it php.ini

(9) Made following additions to httpd.conf using notepad

LoadModule php5_module "c:/php/php5apache.dll"
AddModule mod_php5.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

(10) Attempt to restart apache but get the following error:

<quote>

C:WINDOWSDesktop>C:"Program Files""Apache Group"Apacheapache.exe
Syntax error on line 197 of c:/program files/apache group/apache/conf/httpd.conf
:
Cannot load c:/php/php5apache.dll into server: (1157) One of the library files n
eeded to run this application cannot be found:

Note the errors or messages above, and press the <ESC> key to exit.

</quote>

An extract from httpd.conf with the offending line:

<quote>

# Example:
# LoadModule foo_module modules/mod_foo.so
#
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule status_module modules/mod_status.so
#LoadModule info_module modules/mod_info.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule anon_auth_module modules/mod_auth_anon.so
#LoadModule dbm_auth_module modules/mod_auth_dbm.so
#LoadModule digest_auth_module modules/mod_auth_digest.so
#LoadModule digest_module modules/mod_digest.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so

#MY ADDITION
LoadModule php5_module "c:/php/php5apache.dll"

</quote>


Attempts to resolve problem:

(1) Commenting out

LoadModule php5_module "c:/php/php5apache.dll" (line 179 of httpd.conf)

and

AddModule mod_php5.c (which produces an error on its own)

allows apache to start again (but no php functionality obviously).

(2) commenting out AddModule mod_php5.c alone makes no difference to the error

(3) Copying php5apache.dll and php5ts.dll to C:windowssystem32 (or C:windows) makes no difference to the error.

(4) Adding SetEnv PHPRC C:/php to httpd.conf makes no difference to the error.

(5) Tried to use strace (from cygwin) to discover system calls but none reported (but not sure whether I was using this correctly ...)

Help!

Reply With Quote
  #2  
Old July 17th, 2005, 10:55 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 3
RE: Apache1.3 / PHP5: Cannot load c:/php/php5apache.dll

Not sure but remove the double quotes from this line:

LoadModule php5_module "c:/php/php5apache.dll"


Leave the php5ts.dll in C:windows or in C:php


Reply With Quote
  #3  
Old July 18th, 2005, 08:57 PM
B52 B52 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 B52 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Apache1.3 / PHP5: Cannot load c:/php/php5apache.dll

Thanks for reply. Tried this but unfortunately no change to problem.

Have since tried (out of sheer desperation) moving all the php dlls in turn to c:windows, c:windowssystem32 and apachemodules (the latter with amended path in httpd.conf) but no luck.

Modules in apachemodules will load OK (with troublesome line 197 and corresponding AddModule line commented out of .conf file).

Wish I knew which library file could not be found.

Reply With Quote
  #4  
Old July 19th, 2005, 02:59 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: 25
RE: Apache1.3 / PHP5: Cannot load c:/php/php5apache.dll

Problem solved: believe it was due to missing or incorrect version of MDAC components.

Resolution involved following:

(1) Visited php.net and looked at bug list for similar problems. Some similar but maked 'bogus'. However got a few ideas, such as:

(a) Open DOS prompt and type

c:phpphp.exe -i

This reported "Error Starting Program: A required dll file odbc32.dll was not found"

(b) Download Dependency Walker from

http://www.dependencywalker.com/

Looked at dependencies of php5apache.dll -- odbc32.dll listed.

(c) Looked again at install.txt:

<quote>

MDAC requirements: If you use Microsoft Windows 98/NT4 download the latest version of the Microsoft Data Access Components (MDAC) for your platform. MDAC is available at
http://msdn.microsoft.com/data/. This requirement exists because ODBC is built into the distributed Windows binaries.

</quote>

Damn.

So downloaded MDAC2.6 - but needed Y2K updates (2 of them) and SP2 for IE4 before installation. Installed the Y2K but thought I'd upgade to IE5 rather than add SP2 to IE4. Did so. Then tried starting apache (just to see if there was any change). There was: it started. Guess IE5 must have put in the needed dlls.

Lesson for today: always, always, always RTFM. Glad I discovered Dependency Walker though ...

Reply With Quote
  #5  
Old July 19th, 2005, 03:10 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 3
RE: Apache1.3 / PHP5: Cannot load c:/php/php5apache.dll

Glad you fixed your problem and tnx for sharing your solution.

Reply With Quote
  #6  
Old December 20th, 2005, 10:13 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: 25
RE: RE: Apache1.3 / PHP5: Cannot load c:/php/php5apache.dll

I fixed all of my problems of running PHP as an apache module (instead of CGI binary) by coppying every single dll to C:windows. That insures every single library file is coppied. You must make sure you have every library file that came with the PHP dowload coppied for this to work

Reply With Quote
  #7  
Old July 28th, 2007, 02:34 AM
manoj826 manoj826 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 2 manoj826 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 35 sec
Reputation Power: 0
Apache1.3.11/php-5.2/OS Win 98

In my case even php -i is working, all config checked twice the apache(1.3.11 OS Win 98) server is not interpreting the php(5.2) script just showing the blank screen, if we see the source it is just showing the php script itself. Also tried cgi installation of PHP but still the same error, can anybody help me. I feel there is a problem in php if I compile php script at command prompt it is returning the same script but earlier PHP version it was wrking...Whats the error ? pasting PHP -i

Thanking you

manoj826
Solved the problem..WAMP
My Config =>Windows98+Apache1.3+MySQL5.019+Php5.2
Problem resolved the error was very simple the short_open_tag=Off ,it shuld be On
in php.ini, allow the <? tag. Otherwise, only <?php and <script> tags are recognized. Anyway this binary php5.2 doesnt support MySQL for that do the following -
php.ini
extension_dir = "c:\php\ext"
extension=php_mysql.dll
extension=php_mysqli.dll
http.conf
LoadModule php5_module "C:/php/php5apache.dll"
AddModule mod_php5.c
LoadFile "C:/path to ur mysql/libmysql.dll"
if it works fine otherwise compile the source.

PHP5
If you are expecting the old script(PHP3/4) to work in PHP5 then
there are lot of troubles for eg accessing the server vars like
//$HTTP_GET_VAR[id]==>change it to $_GET[id]
similarly $ _POST..

Thanks for giving the forum to put my problems..hope the above information will be helpful to any new user who is using the windows 98.

Manoj

Last edited by manoj826 : July 31st, 2007 at 03:58 AM.

Reply With Quote
  #8  
Old July 28th, 2007, 11:11 AM
cwf's Avatar
cwf cwf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 354 cwf User rank is Private First Class (20 - 50 Reputation Level)cwf User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 3 Days 7 h 8 m 8 sec
Reputation Power: 3
So, did you complete the steps to install PHP under Apache1.3? - http://www.php.net/manual/en/install.windows.apache1.php

Is there some reason why you did not use an existing Windows binary?

Please edit your post above and wrap the long blocks of code/configuration in bbcode tags to set them off from the rest of the post and make them scrollable so they don't go on forever.

Reply With Quote
  #9  
Old July 29th, 2007, 09:15 AM
manoj826 manoj826 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 2 manoj826 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 35 sec
Reputation Power: 0
I am using PHP5 on my linux box but I dont have USB drivers for the router so I cant able to log on to my remote site.Thats why I needed W(98)AMP, earlier PHP version was wrking perfectly. Whatever you guys explained on this BB I tried but no success. Its is very easy to install on Linux .

Reply With Quote
  #10  
Old March 14th, 2009, 04:02 PM
bigbearivan bigbearivan is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Mar 2009
Posts: 1 bigbearivan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 11 m 34 sec
Reputation Power: 0
I`m using Windows Xp SP3, PHP 5.2.9-1, Apache 2.0.63 & when I restart Apache server appears this: pic.ipicture.ru/uploads/090314/PiIMP6Sqzn.png Tried to use MCDA, but that donesn`t works in Xp. Please, help me, I don`t know what i must to do... :silly

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Apache1.3 / PHP5: Cannot load c:/php/php5apache.dll


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek