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 rusty813 » 18. September 2011 19:36

the index.php isnt working in xampp it shows the following statement "Something is wrong with the XAMPP installation" when I test to see if it works. Phpmyadmin works fine but if i create a php file it doesnt display the content.

1. My apache and mysql is running.
2. I tried almost everything suggested on forum from uninstalling and re-installing xampp.
3. Editing the on and off variable in the php.ini

I am using windows 7

I dont know what else to try.
rusty813
 
Posts: 9
Joined: 23. July 2011 02:16

Re: Something is wrong with the XAMPP installation

Postby JonB » 18. September 2011 19:56

2 questions -

What version of XAMPP

Where did you install XAMPP??

Good Luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Something is wrong with the XAMPP installation

Postby rusty813 » 18. September 2011 21:15

i installed the last version 1.7.4 win32 and downloaded from here http://www.apachefriends.org/en/xampp-windows.html#641
rusty813
 
Posts: 9
Joined: 23. July 2011 02:16

Re: Something is wrong with the XAMPP installation

Postby rusty813 » 18. September 2011 22:01

anyone?
rusty813
 
Posts: 9
Joined: 23. July 2011 02:16

Re: Something is wrong with the XAMPP installation

Postby glitzi85 » 18. September 2011 22:39

Did you use the installer or the zip (or 7zip) version?

What Version of Windows 7?

If Zip, did you either extract it to C:\ or run the setup_xampp.bat afterwards?

Did you do all of this as Administrator?

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: Something is wrong with the XAMPP installation

Postby rusty813 » 18. September 2011 22:50

Did you use the installer or the zip (or 7zip) version? I used the installer

What Version of Windows 7? Windows 7 Home Premium

If Zip, did you either extract it to C:\ or run the setup_xampp.bat afterwards?

Did you do all of this as Administrator? Yes
rusty813
 
Posts: 9
Joined: 23. July 2011 02:16

Re: Something is wrong with the XAMPP installation

Postby glitzi85 » 18. September 2011 22:56

What happens if you open http://localhost/xampp/ ?
What Browser are you using? Any Plugins that block forwarding?
Could you please post the content of the PHP file you created? Where did you place this file and how did you open it?

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: Something is wrong with the XAMPP installation

Postby rusty813 » 18. September 2011 23:21

What happens if you open http://localhost/xampp/ ? works fine
What Browser are you using? Internet explorer 9
Any Plugins that block forwarding? None
Could you please post the content of the PHP file you created? am using the give index.php file to test it out
Where did you place this file and how did you open it? htdocs

glitzi
rusty813
 
Posts: 9
Joined: 23. July 2011 02:16

Re: Something is wrong with the XAMPP installation

Postby glitzi85 » 18. September 2011 23:24

You've changed the index.php in the htdocs folder? Then what behaviour do you expect from this file? Please post the content of this file!

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: Something is wrong with the XAMPP installation

Postby rusty813 » 18. September 2011 23:57

I never changed the index.php folder at all...thats where it is located
rusty813
 
Posts: 9
Joined: 23. July 2011 02:16

Re: Something is wrong with the XAMPP installation

Postby Sharley » 19. September 2011 00:29

glitzi85 wrote:What happens if you open http://localhost/xampp/
What exactly do you see in your browser when you type that command in the address bar of IE9?

What page do you see when you simply type in the address bar of IE9?:
http://localhost/index.php

glitzi85 wrote:Please post the content of this file!
Please do try to answer the questions or follow the instructions posted by the forum support volunteers as all they are trying to do is help you troubleshoot your issue.

So please paste in here between forum code tags the content of the index.php file located in the htdocs folder - BTW index.php is not a folder but a file.

Also paste in here please the last 10 or so lines of your C:\xampp\apache\logs\error.log file and again try and use the forum code tags found in the menu bar of the reply window.

Thank you for your assistance in troubleshooting your issue. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Something is wrong with the XAMPP installation

Postby rusty813 » 19. September 2011 01:05

What exactly do you see in your browser when you type that command in the address bar of IE9?

Image

What page do you see when you simply type in the address bar of IE9?: http://localhost/index.php

When I type that address into the bar of ie9 it takes me to the following page http://localhost/xampp/

So please paste in here between forum code tags the content of the index.php file located in the htdocs folder - BTW index.php is not a folder but a file.

Can you please tell where i said index.php is a folder cause I did not say that all...I said that index.php came with the installation of xampp 1.7.4 win32 located in the htdocs and the following pass to this file is C:\xampp\htdocs\index.php and if i where to type http:\\localhost\xampp\htdocs\index.php it will display object not found

Code: Select all
<?php
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   }
   $uri .= $_SERVER['HTTP_HOST'];
   header('Location: '.$uri.'/xampp/');
   exit;
?>
Something is wrong with the XAMPP installation :-(


Also paste in here please the last 10 or so lines of your C:\xampp\apache\logs\error.log file and again try and use the forum code tags found in the menu bar of the reply window.

[Sun Sep 18 12:49:10 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 18 12:49:10 2011] [notice] Digest: done
[Sun Sep 18 12:49:11 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Sep 18 12:49:11 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Sep 18 12:49:11 2011] [notice] Parent: Created child process 4340
[Sun Sep 18 12:49:12 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 18 12:49:12 2011] [notice] Digest: done
[Sun Sep 18 12:49:13 2011] [notice] Child 4340: Child process is running
[Sun Sep 18 12:49:13 2011] [notice] Child 4340: Acquired the start mutex.
[Sun Sep 18 12:49:13 2011] [notice] Child 4340: Starting 150 worker threads.
[Sun Sep 18 12:49:13 2011] [notice] Child 4340: Starting thread to listen on port 443.
[Sun Sep 18 12:49:13 2011] [notice] Child 4340: Starting thread to listen on port 80.
[Sun Sep 18 12:50:31 2011] [error] [client 127.0.0.1] PHP Warning: file_get_contents(lang.tmp) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in C:\\xampp\\htdocs\\xampp\\index.php on line 2
[Sun Sep 18 13:05:17 2011] [warn] pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Sep 18 13:05:17 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 18 13:05:17 2011] [notice] Digest: done
[Sun Sep 18 13:05:18 2011] [notice] Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Sep 18 13:05:18 2011] [notice] Server built: Oct 18 2010 01:58:12
[Sun Sep 18 13:05:18 2011] [notice] Parent: Created child process 5240
[Sun Sep 18 13:05:18 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 18 13:05:18 2011] [notice] Digest: done
[Sun Sep 18 13:05:19 2011] [notice] Child 5240: Child process is running
[Sun Sep 18 13:05:19 2011] [notice] Child 5240: Acquired the start mutex.
[Sun Sep 18 13:05:19 2011] [notice] Child 5240: Starting 150 worker threads.
[Sun Sep 18 13:05:19 2011] [notice] Child 5240: Starting thread to listen on port 443.
[Sun Sep 18 13:05:19 2011] [notice] Child 5240: Starting thread to listen on port 80.
[Sun Sep 18 13:14:07 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/xampp/htdocs
[Sun Sep 18 13:57:20 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/xampp/htdocs
[Sun Sep 18 13:58:29 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/htdocs
rusty813
 
Posts: 9
Joined: 23. July 2011 02:16

Re: Something is wrong with the XAMPP installation

Postby Sharley » 19. September 2011 01:21

rusty813 wrote:Can you please tell where i said index.php is a folder cause I did not say that all...
rusty813 wrote:I never changed the index.php folder at all...thats where it is located
The folder name where the index.php file, as you know now, is htdocs and to save confusion in future the proper names of files and folders helps.

Thank you for your reply and it now seems by your response to the 2 URLs you typed in the browser that your XAMPP installation is working as it should.

Code: Select all
[Sun Sep 18 13:14:07 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/xampp/htdocs
[Sun Sep 18 13:57:20 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/xampp/htdocs
[Sun Sep 18 13:58:29 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/htdocs
These lines indicate that an incorrect URL in the browser is being typed as there is no such folder as indicated in the error.log file.
rusty813 wrote:C:\xampp\htdocs\index.php and if i where to type http:\\localhost\xampp\htdocs\index.php it will display object not found
Incorrect URL as defined in the readme_en.txt file and the error message says it all.

Usually if you type http://localhost//xampp/htdocs/xampp/ or similar it will give this error.
The correct url to access your files is http://localhost/yourfiles.php or if they are in their own folder in the htdocs (DocumentRoot) folder is http://localhost/yourfolder/yourfiles.php etc.

Please feel free to post any more issues you may have with XAMPP but remember to post as much detail as possible so we can make a proper assessment of your problem.

I hope now you can move forward and enjoy your XAMPP experience and to help with that I suggest you bookmark and read the following helpful pages that answer many new user questions:
C:\xampp\readme_en.txt file
http://www.apachefriends.org/en/xampp-windows.html
http://www.apachefriends.org/en/faq-xampp-windows.html

Good luck :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Something is wrong with the XAMPP installation

Postby rusty813 » 19. September 2011 01:43

no its not working cause i clicked on the files by navigating to foldoer...i didnt not type those in the address bar and i can even install any php software such as drupal because it just displays the php codes when the file is open up
rusty813
 
Posts: 9
Joined: 23. July 2011 02:16

Re: Something is wrong with the XAMPP installation

Postby Sharley » 19. September 2011 01:54

rusty813 wrote:no its not working cause i clicked on the files by navigating to foldoer...i didnt not type those in the address bar and i can even install any php software such as drupal because it just displays the php codes when the file is open up
You don't access php files by clicking on them using Windows Explorer unless you want to read or edit the php code and you have made a file association for php files with your text editor like notepad or your favorite php code editor.

They must be accessed by typing the correct url in your browser as I outlined quite clearly in my last reply to see what the code will look like in a browser.

The Apache server has to parse the code in the php file and translate it so it can be sent to and read in your browser.

HTML is different as your browser parses and decodes the html code correctly so you can see it in your browser but if you want to edit html code, if you don't have a dedicated html editor, then simply right click on a html file and select to open in your notepad text editor or any text editor of your choosing.

So now try those files again by adding http://localhost/drupal/file.php and see if you can see it but make sure you have installed Drupal by following the Drupal installation instructions and that you have created the drupal database using http://localhost/phpmyadmin.

Again your XAMPP installation is working correctly and I can't help in these forums with Drupal issue but the Drupal forum is the place to go for help with the installation if you are having issues.

Good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 71 guests