?
Solved

Can't get Apache to recognize .php files

Posted on 2003-11-05
2
Medium Priority
?
1,099 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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.
Suggested Courses

770 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