apache can't start

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

apache can't start

Postby Princess_lulu » 10. December 2007 05:30

before this i can start it..but then now i can't...why??somebody tell me..for information i have install ym, skype and mirc...i have uninstall skype but others not yet...what should i do??? :?: :?:
Princess_lulu
 
Posts: 6
Joined: 10. December 2007 04:20

Postby Izzy » 10. December 2007 06:23

What OS are you using?

Double click on xampp\xampp-portcheck.exe and see if all the ports XAMPP requires exclusively are Free.

In Vista right click on the file and select run as Administrator to keep the console window open.

Then if you still have trouble starting Apache then double click on the xampp\apache_start.bat file and it may tell what is wrong by sending back an informative error message.

Same here right click on the file and select to run it as Administrator.

Did you run Apache as a service?

Try and stop the service if you did.
xampp\apache\apache_uninstallservice_2.2.bat
Or the other uninstall bat file if that one does not work.


You could try this even in Vista:

Close/Exit the control panel.

Open a command prompt
Click start
Click on Run...
Type: cmd.exe

Remove old or sticking Apache service.
Type:
sc delete apache2.2
Click OK

Close the command console

Start the control panel and try install your services again or use the bat files provided in the various component's directories.


BTW - sc is an acceptable abbreviation for sc.exe Windows Service Controller and will delete any stray services that won't shut down by any normal means, among other services commands.

Microsoft explains the Service Controller Commands here.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby Princess_lulu » 12. December 2007 04:08

Izzy wrote:What OS are you using?


Then if you still have trouble starting Apache then double click on the xampp\apache_start.bat file and it may tell what is wrong by sending back an informative error message.


BTW - sc is an acceptable abbreviation for sc.exe Windows Service Controller and will delete any stray services that won't shut down by any normal means, among other services commands.

Microsoft explains the Service Controller Commands here.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================



i have open xampp\apache_start.bat and it said that ServerROot mmust be a valit directory" and it was in my httpd.conf file...

what should i do

i'm using windows xp sp2
Princess_lulu
 
Posts: 6
Joined: 10. December 2007 04:20

Postby Izzy » 12. December 2007 04:56

Princess_lulu wrote:...i have open xampp\apache_start.bat and it said that ServerROot mmust be a valit directory" and it was in my httpd.conf file...

what should i do

i'm using windows xp sp2

Double click on xampp\setup_xampp.bat which might fix your problem.

After running the bat file above, check that the ServerRoot in the httpd.conf file is correct by doing this:

Open the file xampp\apache\conf\httpd.conf in your text editor (Windows notepad for example - not wordpad or Word even) you can drag it into the text editor if it won't open by double clicking on it.

Check this section at around about line number 33 on:
Code: Select all
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk.  If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "C:/xampp/apache"

The ServerRoot should look similar to this but may be different depending on your own path - running the setup_xampp.bat file should put the correct path in there for you.

If it is not the correct path then change it to the path to the apache directory in the format I have shown you above - that is a copy of my httpd.conf file in relation to the ServerRoot location, your path may be different.

Save the file if you made any changes then try and restart Apache using the bat file again and see if the error has gone away - let me know back if you are still having problems starting.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby Princess_lulu » 12. December 2007 05:06

i have uninstall te xampp and reinstall it..my apache can run but mysql cannot...why it happen??/

when i start the mysql_start.bat it say that DO YOU ALREADY HAVE ANOTHER MYSQLD SERVER RUNNING ON PORT 3306?
Princess_lulu
 
Posts: 6
Joined: 10. December 2007 04:20

Postby Izzy » 12. December 2007 05:33

I do not recall suggesting that you uninstall and re-install XAMPP - am I wasting my time here trying to show you how to fix your issues, I wonder.

You should have stopped the services including the MySQL service and all the XAMPP components before uninstalling and deleting the XAMPP directory as is clearly outlined in the xampp\readme_en.txt file, if you had bothered to read it.


Anyhow, this may fix the MySQL uninstalled service issue if you can follow my explanation below on how to do it:

Close/stop all XAMPP services and components then Exit the control panel.

Now open a command console, here's how:
Click start
Click on Run...
Now type: cmd.exe

Remove your sticking MySQL service.
Type at the command prompt >:
sc delete mysql
Click OK

Close the command console.

Open the XAMPP Control Panel and try and start Apache and MySQL again.


Of course, if the above doesn't work you can always uninstall XAMPP again properly this time, and reinstall properly, by following the very simple instructions in the read me file and even better using the pictures on the XAMPP for Windows web site.

BTW if you are going to uninstall XAMPP every time you have a problem then you will never learn anything about what XAMPP is all about.


===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby Princess_lulu » 12. December 2007 05:54

thank you... i will hear your advice..my problem have been solve
Princess_lulu
 
Posts: 6
Joined: 10. December 2007 04:20


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 91 guests