Solved

Can't get Apache to recognize .php files

Posted on 2003-11-05
2
1,096 Views
Last Modified: 2013-12-13
I just installed Aoache and PHP 4.3 on windows 2k.

The apache server works fine and I changed the config file to incl;ude the lines

LoadModule php4_module c:\PHP\php4apache2.dll

AddType application/x-httpd-php .php .phtml .html
AddType application/x-httpd-php-source .phps

Note that the loadmodule path is correct, when its not correct I can't get apache to start, when it is correct it starts without error.

When I try to load a .php page in my brownser I get the standard windows dialog box that lets you choose the application to be used to edit the .php file.



0
Comment
Question by:nietod
2 Comments
 
LVL 16

Accepted Solution

by:
_nn_ earned 125 total points
ID: 9690840
Wild guess : did you move php4ts.dll to the system32 directory as suggested on http://www.php.net/manual/en/install.apache2.php ?

Btw, it's preferable to use forward slashes '/' in pathnames in apache config files.

LoadModule php4_module c:/PHP/php4apache2.dll
0
 
LVL 22

Author Comment

by:nietod
ID: 9691583
That didn't help--at least I don't think it did.  I hadn't copied the php4ts.dll because the instructions I was following didn't say to.  But when I did I still had the problem.   It ended up the problem was that I was specifying the wrong path in the browser, I was specifying the regular "DOS" path to the .php file.  When I specified it though the localhost URL it worked.  

Thanks anyways.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question