Page 1 of 1

[SOLVED]Setting up PHP in Apache for Windows

Posted: Sun Jan 04, 2004 7:54 pm
by Straterra
I have added the following things to my httpd.conf file, yet I get this error when I try to run a .php file..

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, straterra@hotmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


This is what I added to my conf file.

AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "c:/php/php.exe"
ScriptAlias /cgi-bin/ "C:/ftp/users/straterra/cgi-bin/"


What else do I need to do?

Posted: Mon Jan 05, 2004 8:18 am
by Straterra
20 views..and no replies? What's wrong with that picture? I have done everything by the instructions at PHP.net and Apache.org..and it still doesn't work. If someone has the link for the Apache forums, I could try there aswell.

Posted: Mon Jan 05, 2004 8:27 am
by Nay
I'm no server expert. I have my local server use an installed :P.

http://apachefreaks.com/

Good luck,

-Nay

Posted: Mon Jan 05, 2004 8:57 am
by Straterra
Oooh! The almighty Nay replied to my topic! *bows down* I am not worthy!

Posted: Mon Jan 05, 2004 9:28 am
by Nay
Bow need not young padawan learner of mine. Post I must, for there I am the god of the king (nosaJ).

-Nay

now, damned I'll be if understood anyone it.

Posted: Mon Jan 05, 2004 9:58 am
by patrikG
Try you can also http://www.apachefriends.org/index-en.html
A very easy to install apache/mysql/ftp-server/mail-server/phpmyadmin etc. package it is.

Praise? Nay :p

Posted: Mon Jan 05, 2004 11:21 am
by Nay
Nah........<span style='color:red;text-decoration:blink' title='Alert a moderator!'>grilled spam</span>...

-Nay

Posted: Mon Jan 05, 2004 11:33 am
by patrikG
<-- not Jason ;)

Posted: Mon Jan 05, 2004 11:36 am
by Nay
Ah, right......

nosaJ?

-Nay

Posted: Mon Jan 05, 2004 2:00 pm
by xisle
you want to load the php module to parse php at page load, you'll need the .dll

LoadModule php4_module c:/php/php4apache.dll
AddType application/x-httpd-php .php

Posted: Mon Jan 05, 2004 4:10 pm
by Straterra
I don't have the php4apache.dll file.

Posted: Mon Jan 05, 2004 6:04 pm
by Straterra
I have reinstalled the FULL version of PHP, so now it should work..