Posted by Gleep on 02/09/07 19:26
On 6 Feb 2007 15:27:36 -0800, "Rob" <rfhurley@yahoo.com> wrote:
>...and the latest distribution of PHP for same. Apache tells me it's
>up & running, but I don't know what I need to do to run my PHP
>scripts. What do I do?
Sounds like you might be new at this. But if in fact you are running Apache correctly and it's
working with PHP you can easily test it
create a file called test.php
in that file type this
<?php
phpinfo();
?>
save that file to your default location or the root folder for your Apache install
usually it's apache/htdocs
start up apache then
open a browser type www.localhost/test.php
you should see a screen with lots of information
If you are working on home network with router, you need to make sure the router (port 80) is
forwarding to the correct IP that is assigned to your machine on your network. You should be able
to identifie your IP with your network settings and be familar with adjusting the configuratino on
your router. If not go to the manufactur documentation or ask someone with lots of experince with
this stuff. It can be very frustrating getting all this sorted when starting out.
Back around 2000 or so I used to struggle for days installing apache/php/mysql manually but just
kept at it... Eventually I found a site called apachefriends they have a very simple
application whenere you can install a complete server with all the trimming in 5 minutes.
look for xampplite in google read up on it, it's very slick
[Back to original message]
|