Solved

Can't get Apache to recognize .php files

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
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 look for a specific file type in a local or remote server directory using PHP.

771 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

11 Experts available now in Live!

Get 1:1 Help Now