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 192.168.1.64 plus some other stuff I forgot and I can't find the site where I got the instructions.

It was something like 192.168.1.64/localhost/username and some other stuff.

I just want to test some php scripts.

Any help?

Ion

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:

<?php
phpinfo();
?>

and call it via 192.168.1.64/phpinfo.php 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 = 192.168.1.64.

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,

 

hecker

Link to comment
Share on other sites

 Share

×
×
  • Create New...