Something is wrong with the XAMPP installation :-(

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Something is wrong with the XAMPP installation :-(

Postby Klo » 03. August 2016 14:44

Hello! I'm new in php. And i cant open php files in browser :(

I download portatible XAMPP 3.2.2 file 'xampp-portable-win32-7.0.8-0-VC14.zip'.
Extract it in 'D:\xampp\'.
Run 'setup_xampp.bat'. It installed well.
Next i run 'xampp-control.exe' and start Apach and MySQL modules.
Now i can enter in http://localhost and see 'Welcome to XAMPP for Windows 7.0.8' page.
phpMyAdmin works.

Problems are:
1. page http://localhost/test.php returns error 'Object not found!The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404'
2. page D:\xampp\htdocs\index.php returns error 'Something is wrong with the XAMPP installation :-( '
3. any php files can not be opened in the browser

I have Windows 7 x64, Firefox 48.0.

Please, say me what can i do?
Thanks all!
User avatar
Klo
 
Posts: 2
Joined: 03. August 2016 11:53
XAMPP version: 3.2.2
Operating System: Windows 7

Re: Something is wrong with the XAMPP installation :-(

Postby Altrea » 03. August 2016 18:25

Hi,

Klo wrote:1. page http://localhost/test.php returns error 'Object not found!The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404'

Why should it say something different? is there a file D:\xampp\htdocs\test.php? Please double check the file extension too. If you created the file with Windows notepad and have hidden known extensions it might be test.php.txt


Klo wrote:2. page D:\xampp\htdocs\index.php returns error 'Something is wrong with the XAMPP installation :-( '

3. any php files can not be opened in the browser

You cannot simply "open" a php file in the browser. The browser does not have any clue what to do with that file so it just tries to renders the HTML code in that file.
You need to request the file by URL => http://localhost/index.php

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Something is wrong with the XAMPP installation :-(

Postby Klo » 04. August 2016 07:52

Hello, Altrea! Thanks for your answer.

Reference 'http://localhost/test.php' i found in 'readme_en.txt'. Now i understand that the file 'D:\xampp\htdocs\test.php' does not exist.
Really thank you for the explanation of php-files opening mechanism.
User avatar
Klo
 
Posts: 2
Joined: 03. August 2016 11:53
XAMPP version: 3.2.2
Operating System: Windows 7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 87 guests