Windows Server 2003 R2 + XAMPP

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

Windows Server 2003 R2 + XAMPP

Postby SpiderXarc » 23. March 2006 05:24

I didn't find this information here (easily at least), so I thought I would post what I did to make XAMPP run fully on w2k3r2, namely mysql as a service.

When you look at the mysql service created by the xampp control software, the path to the my.cnf file is relative (or at least not complete), and that is where the service registration fails. You have to specify the full, absolute path to that file for it to properly see it on service start up. You can do this manaully by typing the following (make sure the mysql service box is unchecked in the xampp control software).

from "Run..." type the following:

<full path to xampp root dir>\mysql\bin\mysqld-nt --install mysql --defaults-file="<full path to xampp root dir>\mysql\bin\my.cnf"

As an example -- my xampp folder is placed in d:\ so the root dir is d:\xampp and I typed the following:

d:\xampp\mysql\bin\mysqld-nt --install mysql --defaults-file="d:\xampp\mysql\bin\my.cnf"

Once you have done this mysql will autostart as a service, and it will appear checked in the xampp control panel. IMPORTANT -- Do not uncheck and recheck the service box in the xampp control software or you will re-apply the flawed service statement from the default installation. If you do, just repeat the steps in this post.

Best of luck to all you fellow XAMPPers. :wink:

-SpiderXarc
SpiderXarc
 
Posts: 1
Joined: 23. March 2006 04:49

Postby WorldDrknss » 23. March 2006 10:14

thanks for the info, Ill add it to http://xampptutorials.com
User avatar
WorldDrknss
 
Posts: 292
Joined: 17. September 2005 13:40


Return to XAMPP for Windows

Who is online

Users browsing this forum: dogmatic and 41 guests