[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Can't get Apache to recognize .php files

Posted on 2003-11-05
2
Medium Priority
?
1,101 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
_nn_ earned 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

656 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