Tregeze wrote:If i enter localhost:8080/xampp/htdocs/index.php i her web page that say:
1. This is a wrong URL, "/xampp/htdocs" is the DocumentRoot in Apache (please read the documentation) and is already part of "localhost". So if you simply enter "http://localhost:8080/index.php" into your browser, Apache executes the file c:/xampp/htdocs/index.php.
If you enter
http://localhost:8080/xampp/htdocs/index.php, Apache looks for c:/xampp/htdocs/xampp/htdocs/index.php - which if course does not exist.
2) Did you replace the index.php file in htdocs? Because if you simply enter
http://localhost:8080, this already yields to
http://localhost:8080/index.php (due to "Directoryindex" setting, again please read Apache documentation) and that is the default behaviour for a fresh Xampp install. In index.php there is a redirect to the xampp Panel (which is located in the xampp subfolder). So why do you try to run
http://localhost:8080/index.php? What result do you expect? Give your test file another name (for example test.php) or create a subfolder in htdocs, lets call it "myfolder" and create your own index.php in that folder. You can trigger this file via
http://localhost:8080/myfolder/index.phpFinally, i strongly do not recommend to change the default Port 80 to Port 8080. Instead you should find out, which software (mostly either Skype oder Microsoft IIS) already blocks your Port 80 and either stop that program, or configure Skype in the options menu, not to use Port 80. Restart Skype (or whatever it is) and Apache after und reset the Apache Port to 80. Port 80 is the standard Port for HTTP protocoll.