Page 1 of 2

Can't delete apache so I can start all over

PostPosted: 06. October 2008 18:58
by nunukis
Hi everybody,

I have really messed myself up completely.

1.I installed XAMPP, then when I got to page 38 my message was not sent. I read (TOO LATE) that it could be because I did not use a capital T and a full stop at the end.
Also, the FileZilla on the control panel was running,so I clicked on the Stop button (See pg. 35).
Now I can't see the Control Panel anymore -
"ERROR: xampp is already running"


2. Then I tried to remove XAMPP and reinstall it, but I can't remove Apache.
"Cannot delete Apache: Access is denied".

3. Tried to reinstall XAMPP, but now there is a hitch with Apache.

I am now completely confused! Can somebody help me to get out of this mess?

I would be eternally grateful!

PostPosted: 06. October 2008 19:28
by glitzi85
OK, lets make a complete reinstall:

Code: Select all
Start -> Run -> regedit


Now navigate to

Code: Select all
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\


there delete the subfolders

Code: Select all
Apache2.2
mysql


Then restart your Computer (Important!). After that, you should be able to delete the XAMPP-Directory. Now reinstall XAMPP again.

glitzi

PostPosted: 06. October 2008 20:12
by nunukis
I am in Current Control, but there is NO apache or mysql

PostPosted: 06. October 2008 20:46
by glitzi85
nunukis wrote:I am in Current Control, but there is NO apache or mysql

You should go to CurrentControlSet, not to Current Control!

If there is also no one of those folders, just skip this step and proceed with Restarting your Computer. In this case you did not install Apache or MySQL as an service.

glitzi

PostPosted: 06. October 2008 20:53
by nunukis
ok, thanks..am in current control set, but am going to reboot now

PostPosted: 07. October 2008 09:25
by nunukis
I have now rebooted, and removed XAMPP completely, re-installed XAMPP, but got the message that MySQL was already installed.
On the XAMPP Control Panel everything is running, except MySQL.

"ERROR: MySql service not started (-1)"

What can I do now?

PostPosted: 07. October 2008 09:38
by Sharley
Try this:

Stop all XAMPP components.

Click on start left hand side of Task Bar.

Click on Run....

Type in sc delete mysql.

Click OK.

Now try and start XAMPP again.

sc.exe is the Windows service controller and if you just type sc.exe and click OK it will give a list of other service controller commands.

PostPosted: 07. October 2008 09:43
by nunukis
Another try..managed to delete previous MySql and reinstall it, but now I can't open the Control Panel......says

ERRROR: XAMPP is already running

so I can't see if MySql is really running

PostPosted: 07. October 2008 09:52
by Sharley
In the xampp folder double click on the apache_stop.bat file and try again.

This post might help especially as you seem to have uninstalled and reinstalled several times - this behaviour usually leaves residues that need to be removed before you get a successful error free installation.
http://community.apachefriends.org/f/viewtopi ... 772#113772

PostPosted: 07. October 2008 10:01
by nunukis
Did that, but still can't open Control Panel

PostPosted: 07. October 2008 10:10
by Sharley
Right click on the Task Bar and from the context menu select Task Manager.

Click on the Processes tab and look for an entry xampp-control.exe

Highlight the entry and click on End Process.

Click on Yes.

Close the Task Manger and try to open the CP again.



Using the above method to make sure the CP is stopped and using the following bat files will help to do a clean uninstall of XAMPP - you can also use the sc command line option to make sure that any sticking services in the registry are remove.

To install and uninstall Apache services you can run the bat files in:
.\xampp\apache\

To install and uninstall MySQL services you can run the bat files in:
.\xampp\mysql\

This method is often required if uninstalling XAMPP to make sure all services are stopped before attempting to do an error free reinstall.

PostPosted: 07. October 2008 13:07
by nunukis
Thanks so far.

I have now reinstalled Xampp, and rebooted, and the Control Panel has all 4 applications running.
I have changed the file.......etc/hosts and added the bottom lines.

But when I type www.example .com into my browser (Mozilla) I still get the page with typewriting on, not the Xampp page.

Please help again?

PostPosted: 07. October 2008 13:17
by glitzi85
nunukis wrote:I have changed the file.......etc/hosts and added the bottom lines.

Which bottom lines? What added you exactly to this file?

glitzi

PostPosted: 07. October 2008 14:00
by nunukis
I am on pg 37, where the book says one should edit the file

c:\WINDOWS\system32\drivers\etc\hosts

and "add the following lines to the end of the file" -

127.0.0.1 www.example.com # For browser access
127.0.0.1 mail.example.com # For email access
127.0.0.1 example.com # For mercury mail server

and then one can use "www.example.com" to access the web server

PostPosted: 07. October 2008 14:50
by Wiedmann
127.0.0.1 example.com # For mercury mail server

and then one can use "www.example.com" to access the web server

"example.com" is not the same as "www.example.com" (11 vs. 15 chars).

You can use "example.com" in your browser or add "www.example.com" to your HOSTS file.