What is wrong her?

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

Re: What is wrong her?

Postby glitzi85 » 08. January 2009 22:51

OK, back to topic:

b1ng0 wrote:could this be the problem: http://img216.imageshack.us/img216/7819/ssswx2.jpg

No. That's another problem. Use the xampp-portcheck.exe inside the xampp folder to check where this problem comes from. Maybe you have Skype running?

Your main problem is the fact, that your Code is written for Linux and you are using it on a windows box. It looks like the paths used for the include statements are not set correct. If you do not have an installation script or find some Variable in the script defining the base path, then you would either need to check and change the complete code or put it into another folder and change the configuration of your Apache.

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

Re: What is wrong her?

Postby b1ng0 » 08. January 2009 23:12

i don't think php is working here http://img233.imageshack.us/img233/5509/fffffnj7.jpg could that be right?
b1ng0
 
Posts: 21
Joined: 08. January 2009 14:55

Re: What is wrong her?

Postby glitzi85 » 08. January 2009 23:20

b1ng0 wrote:i don't think php is working here http://img233.imageshack.us/img233/5509/fffffnj7.jpg could that be right?

If this picture is taken from the file:///-Window, then yes, PHP is not working if you bypass the Webserver.

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

Re: What is wrong her?

Postby b1ng0 » 08. January 2009 23:25

sorry i forgot that ;D
b1ng0
 
Posts: 21
Joined: 08. January 2009 14:55

Re: What is wrong her?

Postby b1ng0 » 10. January 2009 02:03

what is wrong now? always when i type localhost and hit enter i go automatic to my speedtouch rouder main page :/
b1ng0
 
Posts: 21
Joined: 08. January 2009 14:55

Re: What is wrong her?

Postby glitzi85 » 10. January 2009 03:15

Click on the "Start" button, then "Run" and enter this:

Code: Select all
notepad C:\Windows\system32\drivers\etc\hosts


A notepad Window will pop up; copy the complete content and paste it here (inside the code tags!).

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

Re: What is wrong her?

Postby b1ng0 » 10. January 2009 14:04

Code: Select all
# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
::1             localhost
b1ng0
 
Posts: 21
Joined: 08. January 2009 14:55

Re: What is wrong her?

Postby b1ng0 » 11. January 2009 02:20

someone know what is wrong?
b1ng0
 
Posts: 21
Joined: 08. January 2009 14:55

Re: What is wrong her?

Postby Izzy » 11. January 2009 02:24

b1ng0 wrote:someone know what is wrong?
Try commenting out this line:
::1 localhost

so it looks like this:
# ::1 localhost

Save the file and try again to access http://localhost and please post back if it helps.
Thanks.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: What is wrong her?

Postby b1ng0 » 11. January 2009 02:50

Can´t save it! Get this messages:

Cannot create the C:\Windows\system32\drivers\etc\hosts file.

Make sure that the path and file name are correct.
b1ng0
 
Posts: 21
Joined: 08. January 2009 14:55

Re: What is wrong her?

Postby Izzy » 11. January 2009 02:58

b1ng0 wrote:Can´t save it! Get this messages:

Cannot create the C:\Windows\system32\drivers\etc\hosts file.

Make sure that the path and file name are correct.
After editing the file click on Save as... in the File menu.
Select All files (*) in the Save as type box.
Type the File name HOSTS then click on the Save button.
If the file has an .txt extension added when you save it then right click and select Rename and remove the .txt extension click Yes when asked if you want to change the file extension.

You can also drag this HOSTS file into your open notepad for editing then simply click on the Save button after editing and make sure you are an administrator on your Vista as this file is a system file or again follow the above procedure for saving - this drag method eliminates the use of the command console for opening notepad and the HOSTS file and can be useful for other files in XAMPP that don't have a file extension.

BTW for Vista related issues, like these with notepad, the Windows Help and Support feature can help you possibly quicker than coming here for help with them.
start>Help and Support then type your keyword in the search box.
Or click on Help in the notepad menu bar in this case.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: What is wrong her?

Postby glitzi85 » 11. January 2009 16:03

b1ng0 wrote:Can´t save it! Get this messages:

Cannot create the C:\Windows\system32\drivers\etc\hosts file.

Make sure that the path and file name are correct.

You must do this with Administrative rights, normal users are not allowed to change the hosts file.

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

Re: What is wrong her?

Postby Izzy » 12. January 2009 01:55

Izzy wrote:...and make sure you are an administrator on your Vista as this file is a system file...
This recent topic with a similar issue that was fixed by editing the HOSTS file contains a link to an MVP site that will explain how to enable the Secret 'Super' Administrator Account in Vista:
http://community.apachefriends.org/f/viewtopic.php?f=16&t=32800

hdensley wrote:Bingo!!! This works. For those of you having problems with getting localhost to work, try the above, and use the below to enable the admin account, in order to make the necessary changes:
http://www.winvistaclub.com/t12.html (link)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: What is wrong her?

Postby b1ng0 » 13. January 2009 23:47

i have already figure out that problem. Then i always got this messages:

Code: Select all
Warning: fopen(/xampp/htdocshh/sqlerror.text) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\include\global.php on line 239

Warning: fwrite(): supplied argument is not a valid stream resource in C:\xampp\htdocs\include\global.php on line 242


i have now fix that and now i only get blank page when i try to access localhost
b1ng0
 
Posts: 21
Joined: 08. January 2009 14:55

Re: What is wrong her?

Postby Izzy » 13. January 2009 23:54

Now is the time to check the Apache error.log file for clues:
xampp\apache\logs\error.log
Look at the entries just after you try and access http://localhost
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

PreviousNext

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 140 guests