|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 C (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! |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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 ... |
|
#5
|
|||
|
|||
|
RE: Apache1.3 / PHP5: Cannot load c:/php/php5apache.dll
Glad you fixed your problem and tnx for sharing your solution.
|
|
#6
|
|||
|
|||
|
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
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
||||
|
||||
|
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. |
|
#9
|
|||
|
|||
|
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 .
|
|
#10
|
|||
|
|||
|
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
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Apache1.3 / PHP5: Cannot load c:/php/php5apache.dll |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|