Solved

Can't get Apache to recognize .php files

Posted on 2003-11-05
2
1,094 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Form not operating correctly. 1 22
Hacked File Timestamps 4 49
datetime in sql 6 23
array_values - reorder after unset? 5 9
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
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…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

919 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now