[SOLVED]Setting up PHP in Apache for Windows

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

[SOLVED]Setting up PHP in Apache for Windows

Post 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?
Last edited by Straterra on Sat Jan 10, 2004 3:32 pm, edited 1 time in total.
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post 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.
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

I'm no server expert. I have my local server use an installed :P.

http://apachefreaks.com/

Good luck,

-Nay
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Oooh! The almighty Nay replied to my topic! *bows down* I am not worthy!
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Nah........<span style='color:red;text-decoration:blink' title='Alert a moderator!'>grilled spam</span>...

-Nay
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

<-- not Jason ;)
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Ah, right......

nosaJ?

-Nay
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post 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
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

I don't have the php4apache.dll file.
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

I have reinstalled the FULL version of PHP, so now it should work..
Post Reply