xampp starts and runs, but there is an install problem.

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

xampp starts and runs, but there is an install problem.

Postby triehard » 20. May 2009 10:09

Hi, windows vista, xampp 1.7.1 installer. Everything has installed, and started and is running. There was a port conflict with 80, so I changed the apache httpd.conf to listen 127.0.0.1:8080 and ServerName localhost:8080.

xampp_port_check shows Apache Https port 443 and MySQL 3306 taken by the SYSTEM - is that a problem?
I have skype, but I have set the skype connection to a disused port.

The security page displays ok, and I have secured xampp etc. I can get phpmyadmin, and also the xampp start page and demos. But the htdocs index.php page says 'Something is wrong with the XAMPP installation :-( ', even though apache is running. I have started and stopped it, and done reboot, but I can't get a php page to display.

The file pathway is 'file:///C:/xampp/htdocs/index.php' is that supposed to be like that - 'file:///...' ??

Thanks for any help or advice :)

triehard
triehard
 
Posts: 10
Joined: 19. May 2009 02:59
Location: Auckland, New Zealand
Operating System: Windows 7 pro - 64bit - SP1

Re: xampp starts and runs, but there is an install problem.

Postby Wiedmann » 20. May 2009 11:08

is that supposed to be like that - 'file:///...' ??

No, You can't execute a PHP file with a double click in explorer (read the readme_en.txt)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: xampp starts and runs, but there is an install problem.

Postby triehard » 20. May 2009 22:48

Thanks Wiedmann for your response.
However, I don't follow your meaning, and I couldn't see anything relevant to double clicking in the readme. I use FFox, and navigated to the index.php page to 'file open' it. I did not double click on the file. If I cut off 'file:///' before the 'C', I get an alert - 'C is not a registered protocol'. I have played around with things for ages, but can get now better than the current result !

Any practical advise/suggestion please !

Thanks.

Triehard
triehard
 
Posts: 10
Joined: 19. May 2009 02:59
Location: Auckland, New Zealand
Operating System: Windows 7 pro - 64bit - SP1

Re: xampp starts and runs, but there is an install problem.

Postby Sharley » 20. May 2009 23:02

You can't open a .php file either by double clicking on it or by using file open in your browser as the code has to be parsed (decoded) by the web server - php is a server side language as opposed to HTML or JavaScript which is a client (browser) side language.

Use a URI like this to access files that are php coded
http://localhost/index.php
The above will have you see the php coded XAMPP Welcome Page.
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: xampp starts and runs, but there is an install problem.

Postby triehard » 21. May 2009 00:18

Hi again.

If I use http://localhost/xampp/htdocs/index.php or http://127.0.0.1:8080/xampp/htdocs/index.php - I get "Object not found!.....
The requested URL was not found on this server.... Error 404"

Something doesn't seem to be right, but I can't figure it out !

Thanks.
triehard
 
Posts: 10
Joined: 19. May 2009 02:59
Location: Auckland, New Zealand
Operating System: Windows 7 pro - 64bit - SP1

Re: xampp starts and runs, but there is an install problem.

Postby Sharley » 21. May 2009 00:46

triehard wrote:If I use http://localhost/xampp/htdocs/index.php or http://127.0.0.1:8080/xampp/htdocs/index.php - I get "Object not found!.....
The requested URL was not found on this server.... Error 404"
That error message is correct.

http://localhost/index.php = C:\xampp\htdocs\index.php

http://localhost/xampp/htdocs/index.php = C:\xampp\htdocs\xampp\htdocs\index.php

If you change the Listen directive in your httpd.conf file from Listen 80 to Listen 8080 then you have to add the :8080 after the localhost - http://localhost:8080/index.php

If you made no changes to your httpd.conf file then there is no need to add the :8080

I hope the above helps you to move forward now.
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: xampp starts and runs, but there is an install problem.

Postby triehard » 21. May 2009 01:08

Hi. Thanks for that but...

If I use
http://localhost:8080/xampp/htdocs/index.php
http://127.0.0.1:8080/xampp/htdocs/index.php
- I get "Object not found!.....
The requested URL was not found on this server.... Error 404"

If I use the standard http.conf file, i.e. port 80, with
http://localhost/xampp/htdocs/index.php
http://127.0.0.1/xampp/htdocs/index.php
I get "Connection Interrupted The document contains no data.
The network link was interrupted while negotiating a connection. Please try again."

These are all with apache running. I have tried many variations, re-installs etc. As far as I can see, there is a problem with the xampp/apache installation, even though it says it is running !! ???

Thanks.

Triehard
triehard
 
Posts: 10
Joined: 19. May 2009 02:59
Location: Auckland, New Zealand
Operating System: Windows 7 pro - 64bit - SP1

Re: xampp starts and runs, but there is an install problem.

Postby Sharley » 21. May 2009 02:45

I do not believe that there is anything wrong with your installation but you are typing in the wrong address in your browser as I pointed out in my last post.

Use http://localhost/index.php only.

http://localhost/xampp/htdocs/index.php is the wrong address.
This address means that the index.php file you are requesting is in C:\xampp\htdocs\xampp\htdocs folder which it clearly is not located there as there are no such folder(s).
The index.php file is located in the C:\xampp\htdocs\ folder.
C:\xampp\htdocs\ is http://localhost/

Any clearer for you to get a handle on it?
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: xampp starts and runs, but there is an install problem.

Postby triehard » 21. May 2009 06:06

Hi Sharley.

I am using port 8080 as port 80 does not work. Perhaps I haven't explained fully enough.

If I use 'http://localhost/index.php' or 'http://127.0.0.1/index.php', the FFox browser hangs for a while, and the address bar changes to
http://www.localhost.com/index.php, with page load error:
"Connection Interrupted
The document contains no data.
The network link was interrupted while negotiating a connection. Please try again." (because I have changed ports.)

Even if I use http://localhost:8080/index.php the same thing happens, changing to
http://www.localhost.com:8080/index.php, with the same page load error.

However, if I use http://127.0.0.1:8080/index.php I get the xampp welcome page. Clicking the LHS navigation link for security page gives http://127.0.0.1:8080/security/index.php - it displays no problem.

There is an index.php file sitting in the htdocs folder which shows whether xampp/apache in stall is good or not. This is what I was/am trying to open. As http://127.0.0.1:8080/index.php gives the xampp welcome page, I thought the pathway could be http://127.0.0.1:8080/htdocs/index.php - but that doesn't work just get 'object not found'. So I have been trying all sorts of variations on the addresses, all fail !

Mucking about, if I make a firewall exception for apache, it just means I drop the :8080, using the original httd.conf page, but all else is the same results !!
Thanks. - I could have written war and peace the amount of time I have spent on this !! :-)
Triehard
triehard
 
Posts: 10
Joined: 19. May 2009 02:59
Location: Auckland, New Zealand
Operating System: Windows 7 pro - 64bit - SP1

Re: xampp starts and runs, but there is an install problem.

Postby Sharley » 21. May 2009 06:43

Triehard, if you can access using http://127.0.0.1 but can't access using http://localhost then try this:

Open in your text editor the Windows Hosts file located here in C:\Windows\systen32\drivers\etc\Hosts
(Notepad in Vista should be opened by right clicking the link and selecting run as administrator to prevent file saving issues)

Find this line:
::1 localhost

Add a hash at the start of the line so it looks like this:
# ::1 localhost

Make sure that 127.0.0.1 localhost is the first line available after all the commented lines.

It should now look like this:
127.0.0.1 localhost
# ::1 localhost


Save the file and try and access http://localhost again.

Remember to empty your browser's cache (delete Temporary Internet Files in IE) often when working at localhost level to prevent having a cached page served instead of a fresh page from the server.

Let me know if the above works for you and if it does then port 80 should also work and will be better than having to use :8080 all the time.
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: xampp starts and runs, but there is an install problem.

Postby triehard » 21. May 2009 08:30

Hi Sharley, thanks for persevering.

I regularly empty cache, and I have UAC disabled (cos it is a pain) AND open things as admin, anyway, thanks :-))

OK, that edit worked.
'http://localhost/' works, but still changes itself (in the browser address bar) to 'http://localhost/xampp/' and shows the xampp welcome page. The xampp folder IS C:\xampp by the way :-)

'http://localhost/index.php' still just goes to the xampp welcome page, but still changes itself to 'http://localhost/xampp/'.

Any further thoughts on what is (not) happening ?
Thanks.

Triehard
triehard
 
Posts: 10
Joined: 19. May 2009 02:59
Location: Auckland, New Zealand
Operating System: Windows 7 pro - 64bit - SP1

Re: xampp starts and runs, but there is an install problem.

Postby Sharley » 21. May 2009 08:45

The index.php in the C:\xampp\htdocs folder redirects your browser to the C:\xampp\htdocs\xampp folder where all the XAMPP Welcome Page files are stored and opened from - check it out and if you can read and understand the code then open the index.php file in your text editor and you will see the redirecting code for yourself.

Great, now all is working just fine and how it should and you can now move forward and enjoy your XAMPP experience as your installation is working.

You can test the installation even further by running all the demo links in the menu of the Welcome Page.

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: xampp starts and runs, but there is an install problem.

Postby triehard » 21. May 2009 08:54

Hi again. Actually, I have just noticed that with MySql and apache running, I can now not get the CD demo page !

' Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\xampp\htdocs\xampp\cds.php on line 77
Could not connect to database!
Is MySQL running or did you change the password? '

I am using a password, but that hasn't changed, and I can get http://127.0.0.1/phpmyadmin/index.php. So, has xampp lost the pathway ?

Thanks.

Triehard.
triehard
 
Posts: 10
Joined: 19. May 2009 02:59
Location: Auckland, New Zealand
Operating System: Windows 7 pro - 64bit - SP1

Re: xampp starts and runs, but there is an install problem.

Postby Sharley » 21. May 2009 09:23

If you have changed the root user password in the security page then the CD demos don't work:
viewtopic.php?p=141079#p141079
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: xampp starts and runs, but there is an install problem.

Postby triehard » 21. May 2009 11:51

OK, Sharley, thanks for that. :D

I appreciate the time and effort.
A test php page I made in a separate folder has worked fine, and I will give it a whirl tomorrow, with a database.

cheers

Triehard.
triehard
 
Posts: 10
Joined: 19. May 2009 02:59
Location: Auckland, New Zealand
Operating System: Windows 7 pro - 64bit - SP1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 57 guests