ionmuniz Posted April 6, 2008 Share Posted April 6, 2008 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 https://www.insanelymac.com/forum/topic/97706-testing-my-php-on-apache/ Share on other sites More sharing options...
hecker Posted April 6, 2008 Share Posted April 6, 2008 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 https://www.insanelymac.com/forum/topic/97706-testing-my-php-on-apache/#findComment-698177 Share on other sites More sharing options...
Recommended Posts