Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php & Apache

Status
Not open for further replies.

csniffer

Programmer
Apr 30, 2003
161
GB
Hi all, ok the problem is that I am trying to get php4 to work with apache. Up until I installed php Apache worked fine although it did nothing. I am using a book to install mysql apache and php4 and everything seemed to go fine until I added the line
Code:
LoadModule php4_module c:/php4/sapi/php4apache2.dll [\code]
now I get an error message that says [code] LoadModule php4_module c:/php4/sapi/php4apache2.dll cannot load  the specified module could not be found [\code] 
does anybody have any suggestions on this because i have been struggling now 4 a few days but i have got nowhere  


To err is human, to completely mess up takes a computer.
 
There are several questions to be answered:

1. What version of Windows do you use?
2. Are you sure the dll is in that location?
3. Are you using the correct version (Apache 2?)

If answers are:
1. 2000, XP and 2. yes
then it probably an access problem. Has the Apache server the necessary access privileges for the file?
 
Hi DRJ478 and thx 4 the prompt reply. My OS is XP, my Apache is version 2 but the dll is not in that location as the dll does not exists on the computer. I tried # out the line and Apache works fine. I must confess I don’t understand why the book says insert this line but I assumed it was so that apache would create its own dll? But I am puzzled at this and a little miffed because I expected the installation to be straight forward, just a case of moving a few files and adding a few lines.

To err is human, to completely mess up takes a computer.
 
They are installed already but even after install the dll does not exist ? I have searched forums, the php home site, the apache site but there is no mention of this problem and I think this book has given me duff advice. Saying that the book is a reputable book (sams teach…in 24hrs php Mysql Apache. Anymore suggestions would be appreciated or has anybody come across this before, it is on p.52 of the book.

To err is human, to completely mess up takes a computer.
 
Have you searched your local disks for the DLL?
Maybe it is installed in some other location.
Also make sure that you have the administrative privileges to find all files.
 
i have searched all folders including hidden and system folders but without success. thx again 4 ur trouble

To err is human, to completely mess up takes a computer.
 
The another way is recompiling apache with php and mysql. Try it using gcc.
 
thx all 4 ur help but i think i will go 4 an all in job

To err is human, to completely mess up takes a computer.
 
I've had that error before, if you're getting it for the same reason I was, it's an ordering issue.

I had the issue because in the instructions there was a block fo 3 commands to add to the .conf file, and I just pasted them all in one place, when they either had to be above a certain other line, or maybe they had to be spread out... I wish I remembered, but I hope that helps.

Here's my best guess as to what it was...

The loadmodule needs to come before the clear module list directive needs to come before the addmodule command.

g'luck

-Rob
 
That sounds promising thx, if u remember anything else please let me know. U can always email me at asmtony@yahoo.co.uk

To err is human, to completely mess up takes a computer.
 
ok i have now discovered the problem which may be useful to others. The problem is that I have downloaded the self installing Apache as appose to the zipped binaries. A good website for install information is

To err is human, to completely mess up takes a computer.
 
by the way thx to all

To err is human, to completely mess up takes a computer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top