Jump to content

testing my php on apache

2 posts in this topic

Recommended Posts

I have apache and php installed, all I have to do to see if php is ok is to type plus some other stuff I forgot and I can't find the site where I got the instructions.

It was something like and some other stuff.

I just want to test some php scripts.

Any help?


Link to comment
Share on other sites

It will depend on how you configured your Apache server. On a standard installation of Apache/php you can just place a phpinfo.php test file in the /Apache/http/ folder. The file's contents should be:


and call it via to get a nice view of your php server's information.


There is no need to add the "localhost" string to the server's IP address. localhost, is a string that represents the local machines IP address. So in your case localhost =

You can try it out by entering localhost/phpinfo.php in your URL.


Also the username string is probably unnecessary unless you have enabled a per-user home folder structure (I doubt that).


Hope this helps,



Link to comment
Share on other sites


  • Create New...