Page 1 of 1

Code error 2-troubles installing apache+XAMPP

PostPosted: 14. December 2012 18:03
by garlicxsauce
Hey everyone,

Im new at this, i'm trying to install an apache server on my laptop using XAMPP latest version, to install WP on it and start designing a page. At the moment i'm having trouble installing it, i can make MySQL and Filezilla works properly, but when it comes to the Apache server i have the following errors,
first, when i start the XAMPP panel control i got:

14:02:45 [main] Running with Administrator rights - good!
14:02:45 [main] XAMPP Installation Directory: "c:\xampp\"
14:02:45 [main] Checking for prerequisites
14:02:45 [main] All prerequisites found
14:02:45 [main] Initializing Modules
14:02:45 [Apache] Apache Service detected with wrong path
14:02:45 [Apache] Change XAMPP Apache settings or
14:02:45 [Apache] Uninstall/disable the other service manually first
14:02:45 [Apache] Found Path: "C:\Users\Arrigo\xampp\apache\bin\httpd.exe" -k runservice
14:02:45 [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice
14:02:45 [mysql] XAMPP MySQL Service is already running on port 3306
14:02:45 [filezilla] XAMPP FileZilla FTP Server Service is already running on port 21
14:02:45 [filezilla] XAMPP FileZilla FTP Server Service is already running on port 14147
14:02:45 [main] Starting Check-Timer
14:02:45 [main] Control Panel Ready

If i try to start apache, then i got this:
System error : CODE 2
Impossible to find the specified file
Access violation at address 005ABEFE in module 'xampp-control.exe' - Read of address 00000042

Then windows kicks me out of the control panel and it stops it.

I dont have any clue why this could be, maybe it's something really simple but i just got no experience in setting up this thing.

Endless thanks to anyone who could help me out! ( i already posted this on the german speaking forum before realizing there's an english part!)

Re: Code error 2-troubles installing apache+XAMPP

PostPosted: 14. December 2012 21:28
by JJ_Tagy
garlicxsauce wrote:14:02:45 [main] XAMPP Installation Directory: "c:\xampp\"
14:02:45 [Apache] Found Path: "C:\Users\Arrigo\xampp\apache\bin\httpd.exe" -k runservice
14:02:45 [Apache] Expected Path: "c:\xampp\apache\bin\httpd.exe" -k runservice


I would say you installed this before.

Re: Code error 2-troubles installing apache+XAMPP

PostPosted: 15. December 2012 12:49
by garlicxsauce
Yes i did, before knowing about XAMPP i've tried setting up apache+MySQL+PHP, but i've uninstalled and erased every file belonging to the first installation, i just cant understand which file is still there and does not allow XAMPP to find the proper apache directory and work

Re: Code error 2-troubles installing apache+XAMPP

PostPosted: 20. December 2012 02:19
by hackattack142
You installed it as a windows service. Running the XAMPP uninstaller will not remove that. You can do that via the command prompt (Start > Run > cmd) with admin privileges.

If you have XAMPP 1.8.0 or 1.8.1:
Code: Select all
sc delete Apache2.4

otherwise:
Code: Select all
sc delete Apache2.2

Re: Code error 2-troubles installing apache+XAMPP

PostPosted: 01. January 2013 16:35
by garlicxsauce
Thanks a lot, it worked. Right now i've got an error with the database, when i try to start MySQL the control panel tells me

[mysql] Service was NOT (un)installed!

I've uninstalled MySQL as i did for Apache from cmd but so far seems not to work, anyway, thanks for the help!

Re: Code error 2-troubles installing apache+XAMPP

PostPosted: 01. January 2013 16:42
by hackattack142
You can manually delete mysql by doing
Code: Select all
sc delete mysql