Page 1 of 2

New To XAMPP and can't get started [Solved]

PostPosted: 07. May 2012 22:41
by jessica_lamb
I'm looking on help to get the webserver started. This is my first time ever trying to do anything even remotely like this and I'm stuck. I have downloaded Xampp and have unzipped the folder but I don't know how to get Apache and the PHP scripts up and running. Could someone please help???

Re: New To XAMPP and can't get started

PostPosted: 08. May 2012 00:24
by JonB
There's a Control Panel in your XAMPP folder.

xampp-control-3-beta.exe

Just Double click, and it 'should' start a Control Panel you can use to start Apache, MySQL and FileZilla (if needed)

Good Luck
8)

Re: New To XAMPP and can't get started

PostPosted: 08. May 2012 00:37
by jessica_lamb
Thanks Jon B. I started the control panel (YEAH ME!!) lol but now I get this error when I try to start Apache and even the Mysql.

5:34:19 PM [main] XAMPP Installation Directory: "c:\users\jessica lamb\downloads\xampp\"
5:34:19 PM [main] ERROR: Your install directory contains spaces. This will break programs
5:34:19 PM [main] Initializing Modules
5:34:19 PM [apache] Possible problem detected!
5:34:19 PM [apache] Port 80 in use by "apache.exe"!
5:34:19 PM [main] Starting Check-Timer
5:34:19 PM [main] Control Panel Ready
5:34:30 PM [apache] Starting apache app...
5:34:30 PM [apache] Status change detected: running
5:34:32 PM [apache] Status change detected: stopped
5:35:15 PM [mysql] Starting mysql app...
5:35:16 PM [mysql] Status change detected: running
5:35:16 PM [mysql] Status change detected: stopped

What can I do now to fix this? And I downloaded this to be able to run a PHP program but how can I start that?

Thanks and sorry I am asking newbie questions. :(

Re: New To XAMPP and can't get started

PostPosted: 08. May 2012 03:25
by JonB
OK, its all new I know... LOL it was for everyone else at some point.

Here's the problem -

XAMPP won't run when installed in folders that contain spaces or special characters. This is due to its Unix/Linux heritage. (like it says in the error message)

did you use the msi downlaod or one of the zip downloads?

You should delete the current XAMPP folder. If you used the msi installer, you should use the Control Panel to get rid of that too. If you used a zip version you can just delete the folder.

I recommend you use one of the zip downloads.
This time just make your XAMPP installation folder C:\xampp
This can be done by telling it to extract to c:\ -- the extraction process will create the XAMPP folders for you.

IF you have installed either standalone Apache or another suite like WAMP in the past - you may need to disable or un-install it to get XAMPP to work - I say this because of this message -
5:34:19 PM [apache] Possible problem detected!
5:34:19 PM [apache] Port 80 in use by "apache.exe"!


Good Luck
8)

Re: New To XAMPP and can't get started

PostPosted: 08. May 2012 05:18
by jessica_lamb
:D Yeah!!! I think it's working. It states Apache Started Port 80. Now my next question is this the webserver??? And how does the PHP programming work??

Re: New To XAMPP and can't get started

PostPosted: 08. May 2012 15:23
by JonB
Well - yes it's certainly a webserver. :mrgreen:

Start XAMPP and then go to http://localhost in your browser to see what's inside. XAMMP has lots of pre-installed features.

Your documents/projects go in \xampp\htdocs

There is a redirect in xampp\htdocs\index.php to forward requests to the XAMPP page. If you want to place files in the root of your webserver, you will probably want to disable it.

You'll have lots to learn to do PHP programming, but XAMPP has most of the parts needed -- Apache, PHP and MySQL. I recommend you get a book, do tutorials or take a class (real world or online) to learn PHP.

You can also use XAMPP as a way to learns about popular applications like WordPress, Joomla, Drupal, phpBB, YaBB and others. It will run all of them.

I have a site about DIY stuff - its in my siganture beloe

Good Luck
8)

Re: New To XAMPP and can't get started [Solved]

PostPosted: 08. May 2012 16:54
by jessica_lamb
Thanks Jon B. Now I'm having new problems :? I've got the XAMPP running but when I went to the http://localhost in my browser it states that it cannot connect to local host. I've tried in Google Chrome and in Internet Explorer. I've got the firewall turned off so now what should I do?

Re: New To XAMPP and can't get started [Solved]

PostPosted: 08. May 2012 18:46
by JonB
Here's a topic that covers the most likely cause of the problem -

viewtopic.php?f=16&t=50231&hilit=localhost+hosts

You will probably need to edit your hosts file and add an entry for localhost, like so:

Code: Select all
127.0.0.1       localhost


how to find/edit the hosts file on Windows 7 (its different between 32 bit Windows 7 and the 64 bit version) Its a 'system file' so you will need to use 'run as administrator' as in these instructions

http://www.windowsreference.com/windows ... ows-vista/

Good Luck
8)

Re: New To XAMPP and can't get started [Solved]

PostPosted: 08. May 2012 19:40
by jessica_lamb
I've did the things that are on the forum and on the windows website. My hosts looks like this:


# Copyright (c) 1993-2009 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

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost


However, I still cannot access localhost through my browser.

Sorry to be such a bother.

Re: New To XAMPP and can't get started [Solved]

PostPosted: 08. May 2012 21:17
by JonB
Heh - no problems

# 127.0.0.1 localhost

well that would be because there's that hash/'#' in the front - that turns the line off

it needs to be

Code: Select all
127.0.0.1   localhost


It doesn't matter how many spaces - just so you don't worry about it.

8)

Re: New To XAMPP and can't get started [Solved]

PostPosted: 09. May 2012 00:01
by jessica_lamb
I still can't open any local hosts. Made the necessary changes and I still can't open. I cleared the Browser Cache and nothing happens. Could I have did something wrong??? I went into the control panel on Xampp and started Apache but when I go to the log files in Apache there is nothing there.

Re: New To XAMPP and can't get started [Solved]

PostPosted: 09. May 2012 05:10
by Altrea
Hi jessica,

please try this:
  • open your Windows command line (cmd.exe)
  • type in the following command
    Code: Select all
    ping localhost
  • post the result here

best wishes,
Altrea

Re: New To XAMPP and can't get started [Solved]

PostPosted: 09. May 2012 20:59
by jessica_lamb
Microsoft Windows [Version 6.1.7601]
Copyright <c> 2009 Microsoft Corporation. All rights reserved.

C:\Users\Jessica Lamb>ping localhost

Pingling JessicaLamb-PC [127.0.0.1] with 32 bytes of data:
Reply from 127.0.01: bytes=32 time<1ms TTL=128
Reply from 127.0.01: bytes=32 time<1ms TTL=128
Reply from 127.0.01: bytes=32 time<1ms TTL=128
Reply from 127.0.01: bytes=32 time<1ms TTL=128

Ping Statistics for 127.0.0.1:
Packets: Sent=4 Received= 4 Lost=0 <0% loss>,
Approximate round trip times in milli-seconds:
Minimum= 0ms, Maximum= 0ms, Average= 0ms

Re: New To XAMPP and can't get started [Solved]

PostPosted: 09. May 2012 21:13
by Altrea
jessica_lamb wrote:Reply from 127.0.01: bytes=32 time<1ms TTL=128

127.0.01 is not the same as 127.0.0.1
Please recheck your HOSTS file.
Or is that just a copy&paste error?

Re: New To XAMPP and can't get started [Solved]

PostPosted: 09. May 2012 23:40
by jessica_lamb
So sorry it was a copy and paste error. the host line does read 127.0.0.1