Forum Moderators: coopster

Message Too Old, No Replies

Trouble getting apache configured with php

internet explorer trying to open php file

         

mbush27

4:42 am on Mar 10, 2005 (gmt 0)

10+ Year Member



Hello everyone,

I apologize for having to ask this, but I have quadruple checked my settings and don't know why I can't get this to work. I installed apache on my computer (windows xp) and it is working. When I installed php and went to test it by typing phpinfo.php in the browser, internet explorer asks me what program I want to use to open it. I don't know why this is happening? Any suggesions?

Thank you so much

Matt

ironik

4:51 am on Mar 10, 2005 (gmt 0)

10+ Year Member



I've tried installing apache + php 'as is' from their respective sites and had trouble every time. I'm not that experienced at installing server products, so that probably let me down.

What I did was download a pre-installed configuration. Try googling EasyPHP (php 4, mysql, phpmyadmin) or XAMPP (php 4 + 5, mysql and a ton of extensions)

Since I don't work on *nix systems often I found this to be the easiest way of just getting straight into the coding without worry about the server bits.

mattx17

6:21 am on Mar 10, 2005 (gmt 0)

10+ Year Member



You need to add this to httpd.conf:

AddType application/x-httpd-php .php

Then restart apache. You can also add any other extensions you want php to parse (like .html, .php3, .php4, etc).

Hope this helps!

mbush27

1:34 pm on Mar 11, 2005 (gmt 0)

10+ Year Member



Hello everyone,

Thank you for your suggestions.

I had already made that change to the config file, and was still experiencing the problem.

I went ahead and installed xampp as suggested, with no problems.

However when I run a php file from shell, windows still says it does not know how to open the file. I even associated .php with php under the control panel.

Well, this led me to try perl which I was able to use to successfully run a sample through (hurray!). Unfortunately, I am really lost and am wondering if anyone can point me in the right direction.

I have a site on widgets, and want to make a widget book store. I want the amazon data to actually reside on my web pages, rather than be links to amazon. Can anyone point me in the right direction? I would be happy to purchase a program, but I can't seem to find one that does this.

Thank you again for your help