RE: [PHP-INSTALL] Installing PHP 5.0 - viewing php script

From: Date: Wed, 03 Mar 2004 04:46:17 +0000
Subject: RE: [PHP-INSTALL] Installing PHP 5.0 - viewing php script
References: 1 2  Groups: php.install 
Request: Send a blank email to php-install+get-12897@lists.php.net to get a copy of this message
At 2004-03-03 12:20, Hari Bhanujan wrote: >If I put index.php and try to view localhost from mozilla I am getting >nothing displayed on the screen.. It's indeed important to call the file index.php and not index.htm or index.html. You also need to tell Apache (in it's configuration file) what to do with .php files. This is explained in the PHP installation information. Make sure you're looking at the index.php file through Apache and not directly as a file. This means that the file must be accessible from the root HTML directory, so depending on the version of Apache you're using this is for example by default: - c:\htdocs\index.php - c:\Program Files\Apache Group\Apache\htdocs\index.php (The exact location is defined within the Apache configuration file). You should then be able to access the file as: http://localhost/index.php Also check in the 'hosts' file (somewhere in the Windows directory or in /etc/ for Unix) if localhost has been defined and is equal to '127.0.0.1'. Also try the URL: http://127.0.0.1/index.php Also try the real IP address of the computer, on a local system behind a NAT-router this is for example 192.168.1.15. (Type 'ipconfig' after a DOS prompt). Also try pinging those IP addresses (but not all systems respond to ping calls). After a DOS prompt, type 'ping localhost'. Greetings, Jaap >I am installing Apache and PHP again (I need to make this work with php) > >Regards >Hari > >-----Original Message----- >From: Chris Hewitt [mailto:g0pae@manordat.demon.co.uk] >Sent: Tuesday, March 02, 2004 1:13 PM >To: hbhanujan@sbcglobal.net >Cc: php-install@lists.php.net >Subject: Re: [PHP-INSTALL] Installing PHP 5.0 - viewing php script > >Hari Bhanujan wrote: > >>I have checked the php.ini file. The option for short_open_tag is set >to >>on (not that it makes any difference). >> >>I am installing PHP again to see if it makes any difference.. >> >>Thanks >>Hari >> >>-----Original Message----- >>From: Mike Ni [mailto:cba20032002@yahoo.com] >>Sent: Tuesday, March 02, 2004 11:05 AM >>To: hbhanujan@sbcglobal.net >>Subject: RE: [PHP-INSTALL] Installing PHP 5.0 - viewing php script >> >> >>Perhaps it has something to do with "php.ini". >>Php.ini can determine the basic characterisctic >>of your php. >> >> >>Mkie >> >>--- Hari Bhanujan <hbhanujan@sbcglobal.net> wrote: >> >>>Jaap and all PHP gurus >>> >>>I tried the script for phpinfo() >>> >>>Here is what I put in the index.html file >>><h1> >>>Test >>></h1> >>><?php >>>phpinfo() >>>?> >>>I can see the test inside of html tags OK but not >>>info about php that I >>>have installed.. >>> >You mention that you have called the file index.html. Have you >configured Apache/IIS to have html files? What happens if you change >its name to index.php? > >HTH >Chris

« previous php.install (#12897) next »