View Full Version : setting up Apache+PHP+MySQL
g7star
12-16-2002, 12:36 PM
I'm trying to set up Apache+PHP+MySQL combo on my Windows 2000 machine.
Everything went well until I added following line to httpd.conf.
LoadModule php4_module c:/php/sapi/php4apache.dll
Apache doesn't Restart(Start) with the line.
Can anyone help?
scoutt
12-16-2002, 01:02 PM
what version of php are you using? if it is 4.2 then you have to downgrade to 4.1
g7star
12-16-2002, 01:15 PM
It's version 4.2.3
Thank you.. I'll try 4.1 then.
scoutt
12-16-2002, 01:19 PM
or even 4.2.0 I think works.
g7star
12-16-2002, 01:46 PM
I tried 4.1.2 but got the same problem.
So.. would 4.2.0 work?
scoutt
12-16-2002, 01:53 PM
I am using 4.1.2 and I didn't get that problem.
I will have to double check to see what i have and how I did it, but it should work.
now there is work around for 4.2.3 if you want to do it. you have to download the lastest and greatest and it usually is a beta verson and get a dll file from it, let me find a link for ya.
scoutt
12-16-2002, 02:09 PM
here read this and you will see where I had problems
http://forums.devshed.com/showthread.php?threadid=45434
but that should get you going. if not post back and I will look at mine and see what I did.
g7star
12-16-2002, 05:48 PM
I tried pretty much everything.. but still.. if I put the line, it fails with no exception.
LoadModule php4_module c:/xnet/php/sapi/php4apache2.dll
scoutt
12-16-2002, 05:51 PM
ok let me look at mine. when I get home
scoutt
12-16-2002, 07:45 PM
ah ha, mine is not setup as a module. I could never ge it to work either. even after download 4.3dev
so the only way I could get it to work is by the cgi way.
g7star
12-16-2002, 08:22 PM
I should try CGI way too then.
Thank you very much Scoutt.
scoutt
12-16-2002, 09:19 PM
yeah, it won't make a difference but like you I wanted the module way instead. but if it doesn't work then oh well. and the reason is that php is not (well suppose to in version 3) compatible with apache2
g7star
12-16-2002, 11:20 PM
Now it works with CGI.. but.. well.. not really.
It doesn't show any .php files.
The browser shows..
Forbidden
You don't have permission to access / on this server.
And the error.log shows something like..
Directory index forbidden by rule: C:/xnet/xroot/
In their FAQ, it says I should remove "<Files ~>", but it's not the case.
scoutt
12-17-2002, 12:12 AM
you have to use the web folder apache made for you. tha ti sthe only folder you can have as a localhost web folder. more than likely it is program files/apache group/apache2/htdocs/
how are you calling your php page?
g7star
12-17-2002, 08:07 AM
Thank you for the hint.
While I was checking those lines you wrote, I found that I didn't change <Directory "C:/xnet/xroot"> line.
Now, it is working.
I really appreciate your help!:)
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.