Code error 2-troubles installing apache+XAMPP

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

Code error 2-troubles installing apache+XAMPP

Postby garlicxsauce » 14. December 2012 18:03

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!)
garlicxsauce
 
Posts: 4
Joined: 14. December 2012 00:38
Operating System: windows 7 home premium

Re: Code error 2-troubles installing apache+XAMPP

Postby JJ_Tagy » 14. December 2012 21:28

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.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Code error 2-troubles installing apache+XAMPP

Postby garlicxsauce » 15. December 2012 12:49

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
garlicxsauce
 
Posts: 4
Joined: 14. December 2012 00:38
Operating System: windows 7 home premium

Re: Code error 2-troubles installing apache+XAMPP

Postby hackattack142 » 20. December 2012 02:19

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
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: Code error 2-troubles installing apache+XAMPP

Postby garlicxsauce » 01. January 2013 16:35

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!
garlicxsauce
 
Posts: 4
Joined: 14. December 2012 00:38
Operating System: windows 7 home premium

Re: Code error 2-troubles installing apache+XAMPP

Postby hackattack142 » 01. January 2013 16:42

You can manually delete mysql by doing
Code: Select all
sc delete mysql
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 115 guests