Help - Search - Members - Calendar
Full Version: testing my php on apache
InsanelyMac Forum > Discuss and Learn > Internet(s), Servers, and Networks
ionmuniz
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
hecker
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:
CODE
<?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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.