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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Installing PHP on Apache Server

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am running on Windows XP Professional and just recently installed Apache Web Server on it. I needed to test some PHP documents so I installed PHP to work with the server. After the installation I assumed that I only needed to restart my server for it to work. After restarting it, PHP still did not work.

I need to know why is doesn't work and how I need to configure my Apache server and PHP files so that it will work.

Thank you for your time,
Said Ketchman
 
Normally under Linux you would compile php to run with apache, however I'm not sure if thats required for windoze.

Apache will need to be told to process the php pages tho, and will need to be told where it can find the php application and what files will use it (eg .php .php3 .phtml)
***************************************
Party on, dudes!
 
Not sure about XP but on Win2000 you need to add the following three lines to your httpd.conf file:

ScriptAlias /cgi-bin/ "C:/Program Files/Apache
Group/Apache/cgi-bin/"
ScriptAlias /php/ "C:/PHP/"
ScriptAlias /php4/ "C:/PHP/"

Hope that helps.

George K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top