|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Cannot load C:/php/sapi/php4apache.dll into server
Hi all!
I am very new in this Apache/php things. I was recomended to follow the installation instruction "how to setup an php/mysq/apache" the Instruction is here But when i reload the Apache so do i get an error like: The Apache service named reported the following error: >>> Cannot load C:/php/sapi/php4apache.dll into server: The specified module could not be found. The php4apache.dll file is in that patch so i just cant figure what the problem is ![]() Any ideas? I use winXP-SP1, Apache2, PHP4.3.1 |
|
#2
|
||||
|
||||
|
Use this for apache 2:
LoadModule php4_module c:/php/sapi/php4apache2.dll instead of php4apache.dll If that doesnt work then please in the future try using the search feature of the site I searched on it and got the below results... Also in the future, please reference the posting rules. I'll post the url for my search and also another thread to reference for this exact problem..my search: http://www.devarticles.com/forum/se...rder=descending reference this thread for this error.. thanks http://www.devarticles.com/forum/sh...=php4apache.dll |
|
#3
|
|||
|
|||
|
Quote:
why are you using apache 2 in the first place. it's alot of hell involved with dealing with apache2, thats why they urged you not to use it . stick to the regular version of apache ![]()
__________________
Apache Expert |
|
#4
|
||||
|
||||
|
I agree.. apache 1.3.27 is much easier to configure
![]() |
|
#5
|
|||
|
|||
|
As the author from the article, i must clearly point out that the article was for apache 1.3 and not 2.0, your going to need a bit more effort to get apache 2.0 to work.
|
|
#6
|
|||
|
|||
|
i figured out how to get apache2 and php to work if you want the help let me know.
ben should i write an article on this ![]() |
|
#7
|
|||
|
|||
|
well was reading that Apache2 was enhanched for NT. Thats why was it easy to choose it
And the server works perfect now ![]() |
|
#8
|
|||
|
|||
|
apache 2 php
i sure would like to know how to get the apache to run with php anyway.. lol
havent used apache.... i got the apache1.3x and the 2.0.48 php installer version 4.3.4 Help lol... thanks. |
|
#9
|
||||
|
||||
|
What platform are you using?
|
|
#10
|
|||
|
|||
|
platform
i am running on win2k professional.
have tried by adding de following 2 lines! LoadModule php4_module "c:/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php and moved the php4ts.dll file 2 winnt/system32 however by doing that my server stopped running after a restart failed to start operation lol... this i was doing with the apch2.0.4.8 and php4.3.4 |
|
#11
|
|||
|
|||
|
got it fixed and solved lol
Well here it is for those who still dont know how on a win2k machine or.. windows.
first because php 4.3.4 doesnt have de apache2.dll i got me a easyphp1.7 and installed it. URL i think ( google :> ) than after installing it copy and paste the sapi folder from the easyphp /php/ folder and copy it into the c:\php folder. ( it will have the apache2.dll now in youre c:\php ) than add 2 lines @ the but of LoadModule in httpd.conf LoadModule php4_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php and copy the php4ts.dll into youre /windows/system/ or winnt/system folder restart apache and youre alll good |
|
#12
|
|||
|
|||
|
Thank you ol4pr0!! I could not figure it out until I read you post. (Got to pick the broken bits of glass I threw in Frustration!!!)
![]() |
|
#13
|
|||
|
|||
|
Ok i followed this thread to the T, and i still can figure out why nothing is working. Please look at
my attached config file and let me know what i am doing worng. I am using apache 2. my php is installed in c:\PHP |
|
#14
|
|||
|
|||
|
There was two things I found I had to do...
one was explained here. I had to copy the php4ts.dll file to my /windows/system directory. But before that, I had to download the 'other' PHP4 file. The installer one did not install the sapi folder and lots of other things. So, make sure you download the source file. Cheers, Fozzy |
|
#15
|
|||
|
|||
|
Solution in User Manual
The option of copying files to the windows/system folder is really difficult to maintain. (what when a new version of PHP comes out?)
The manual of Apache2 is quite clear about how to load php. Just make sure you add C:\php (or wherever you installed PHP) to the PATH environment variable. (XP: START > Control Panel > System and press "Environment Variables" it usually is already there) Just don't forget to restart windows if you want to start the server from the Apache Monitor! For further reading try the install.txt that comes with PHP and read the "Manual Installation Steps" part and the "Apache 2.0.x on Microsoft Windows" part. |
|
#16
|
|||
|
|||
|
I have this problem too. I have installed previous apache and PHP. And there was old version of php.ini and php4ts.dll in Windows/system and winnt directory..
So make sure, that before your installation, there is no another php.ini or php4ts.dll on your computer!!! WinXP/Apache1.3.33/PHP4.4.0/MySQL4.0... |
|
#17
|
|||
|
|||
|
I followed the steps on this site and it works very fine for me.
php-apacheDOTblogspotDOTcom replace DOT by . |