Newbie Needs Help---Can't get php to Run

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I apologize if this is too obvious but I can't find the answer in FAQ,
documentation, config reviews, web searches, uninstall and reinstall
of a different distribution.

I am trying to set up php to learn it.

Win XP Pro, Apache 1.3.31, php 5.0.2.
Apache windows shows- Apache/1.3.1 <Win32> PHP/5.0.2 running...

I am trying to run the Hello.php example. IE 6.0 displays the
interpreted HTML portion and nothing else. View source shows the right
code. Access log shows 304 - (whatever that means).

Firefox 1.0 shows the unintepreted HTML echoed back (like source code
view) and the access log shows: - - [12/Oct/2004:06:07:56 -0500] "GET /hello.php HTTP/1.1"
304 - - - [12/Oct/2004:06:08:52 -0500] "GET /favicon.ico HTTP/1.1"
404 294

Hopefully this is a simple fix that I've overlooked. Your help would
be appreciated.

Re: Newbie Needs Help---Can't get php to Run

On Tue, 12 Oct 2004 04:15:31 -0700, Jim Garten wrote:

Quoted text here. Click to load it

Try this: /

Also, Apche 1.3 is not recommended for use on Windows -- Apache 2 is.

Also, also, try a very simple php script:


That's it.  Save it as phpinfo.php and then browse to

If you see a lot of info, then PHP is working.

Also, also, also, somehting that I see newbs do relatively frequently is
use a WYSIWYG editor like DreamWeaver to create PHP scripts.  Please don't
do this. Dreamweaver will convert <? and ?> to &lt;? and ?&gt; which will
make your script not work! Please use Notepad or another plain text
editor. There are eighty gajillion text editors available.


Jeffrey D. Silverman |
             Website |

Drop "PANTS" to reply by email

Re: Newbie Needs Help---Can't get php to Run

Jim Garten wrote:

Quoted text here. Click to load it

Did you manually install (recommended) or use an autoinstall?

Did you configure Apache?

Did you install as a module (recommended) or cgi?

Did you stop and restart after configuration?

Site Timeline