Hi, in this article I’ll show you how to run your PHP websites using XAMPP from CD.
If you are not familiar using XAMPP then you can read the documentation and installation guide from here.
First of all you need to download Ampstart, a small software to help you run your XAMPP server from CD.
Here is the complete steps :
1. Download and copy AMPstart in your XAMPP folder.
you can simply download the AMPstart from this url : http://ampstart.ampstart.com/
2. Create AMPstart.ini file in the root of your XAMPP installation folder, edit and fill it with the following information.
[MYSQL]
folder=c:\mysql\data
overwrite=1
[WEBSITE]
website=htdocs\[your website]
This code set your mysql/data folder to your c drive in your local hard drive.
3. Create autorun.bat file in the same directory as above.
@echo off
echo initializing….
echo please wait while the application is initializing….
mkdir c:\mysql\data
xcopy \mysql\data c:\mysql\data /E
echo running the application…
start AMPstart.exe
By creating autorun.bat file, you will automatically copy your mysql/data folder to c:\mysql\data. Change this location if you already have mysql folder in your drive c in your local computer!.
4. Now create the autorun.inf
[autorun]
open=autorun.bat
icon=any_icon_file_for_your_drive
Label=server
5. Copy all files in your XAMPP installation directory to CD. So your file structure will looks like :
[Your CD Drive]
- AMPstart.exe
- autorun.inf
- autorun.bat
- AMPstart.ini
- [Other files on your XAMPP installation folder]
Hope this useful, Thank you ![]()
Hi, I'm de panca and this is my blog. This is about my notes for what I already and still doing in my software development time. So if i forget something, I just go back here, find the related topic and use it. This can reduce my holly dolly messy footnote and off this also can be usefull to anyone.
Btw, I’m using Java, Spring, Hibernate, C#, Adobe Flex & AIR, Cairngorm, Mysql, Oracle and others in my development environment. So let see what we can discuss about those things here.
Hope this usefull to anyone…. Thank you for reading.. ;)
Aug 5, 2008 at 16:28:49
if i put the AMPstart.ini file, ampstart throws an error saying “cannot start mysql”. If i delete teh ampstart.ini file then it happily starts.
Why did this happen? ANy thoughts?
Aug 6, 2008 at 01:22:50
Hi,
When AMPstart.ini file specified, AMPStart.exe will use C:\mysql\data as mysql directory, rather than use mysql\data directory in your xampp installation folder. So you have to copy your mysql/data folder to drive C:\, or you can use autorun.bat file above to run AMPStart.exe that will automatically copy your mysql/data folder to drive C:\.
And also if you have another mysql instance running on your computer, better turn it off first, because it will cause the mysql service failed to start.
Thank you