Are you using Apache, or PHP's built-in web server? Unfortunately I have no experience with the built-in web server, so if that's the case, then I'm not sure what the issue could be. If it's Apache, then you need to edit your httpd.conf file and define your document root there.
- Dave
On Wed, Jun 24, 2015 at 8:59 AM, Purandar Sarmah <puransarmah@xxxxxxxxx> wrote:
Thank you.I got the same error.put the file hello.php in c:\xampp and then tried http://localhost/hello.phpHi Dave,I modified php.ini file which is located in C:\xampp\php and set
doc_root=c:\xampppuranOn Wed, Jun 24, 2015 at 7:14 AM, David Parker <dparker@xxxxxxxxx> wrote:Hello,
Just a guess, but I think you may be missing a definition for your document root in your web server configuration. There's usually a default one in the original config file, but you'll need to edit it to point to your C:\xampp directory.
- Dave
On Jun 23, 2015 7:01 PM, "Purandar Sarmah" <puransarmah@xxxxxxxxx> wrote:Thank you.Any help to resolve the issue will be greatly appreicaited.I followed the installation instruction thoroughly and did not recall seeing any failure or error messages. I followed Readme file and your FAQ. So far have not been able to resolve the issue.I tried http://localhost/hello.php placing the file in C:\xampp or C:\xampp\php or C:\xampp\apache or C:\xampp\htdocs folder. But each time, I get the following error.I installed the software in C:\xampp folder. This folder contains all the sub folders including C:\xampp\php. I can start/stop Web Server using GUI for XAMPP Control Panel v3.2.1. The "php.ini" file exists in C:\xampp\php folder. The version of PHP is 5.6.8.Hi,I am new to PHP and also never installed Web Server in my PC. My PC has Windows 7 Professional 64 bit Operating System. To test PHP, I am following http://php.net/manual/en/tutorial.php and followed the instructions to install the package containing PHP, Apache Web Server.
Dave Parker
Systems AdministratorUtica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177
- References:
- Cannot run http://localhost/hello.php or http://127.0.0.1/hello.php
- From: Purandar Sarmah
- Re: Cannot run http://localhost/hello.php or http://127.0.0.1/hello.php
- From: David Parker
- Re: Cannot run http://localhost/hello.php or http://127.0.0.1/hello.php
- From: Purandar Sarmah
- Cannot run http://localhost/hello.php or http://127.0.0.1/hello.php
- Prev by Date: Re: Cannot run http://localhost/hello.php or http://127.0.0.1/hello.php
- Next by Date: Re: Cannot run http://localhost/hello.php or http://127.0.0.1/hello.php
- Previous by thread: Re: Cannot run http://localhost/hello.php or http://127.0.0.1/hello.php
- Next by thread: Re: Cannot run http://localhost/hello.php or http://127.0.0.1/hello.php
- Index(es):