when building websites i use a fantastic application called xampp. basically its an application that installs and configures the following:
Apache 2.2.9
MySQL 5.0.51b
PHP 4.4.8
PHP 5.2.6
Perl 5.10.0
ProFTPD 1.3.0a
phpMyAdmin 2.11.7
OpenSSL 0.9.8h
GD 2.0.35
Freetype 2.3.5
libjpeg 6b
libpng 1.2.18
libungif-4.1.4
zlib 1.2.3
expat 2.0.1
Ming 0.3
Webalizer 2.01-10
pdf class 009e
mod_perl 2.0.3
SQLite 3.4.0
phpSQLiteAdmin 0.2
libiconv-1.11
gdbm-1.8.3
libxml-2.6.29
libxslt-1.1.21
openldap-2.3.36
imap-2004g
gettext-0.16.1
libmcrypt-2.5.8
mhash-0.9.9
curl-7.16.4
zziplib-0.10.82
bzip2-1.0.3
freetds-0.64
well, the problem is in the mac os x version there is no easy way to start the application and all the services automatically when you boot up. the windows version has an option to install as a service. but us mac guys/gals are left in the dark. and have to manually start all the services. which sucks because i use a site in xampp as my homepage.
so i found a rather easy way to get xampp to auto start at boot up.
1. open script editor
2. type the following line in script editor:
do shell script "sudo /Applications/xampp/xamppfiles/mampp start" password "YOUR ADMIN PASWORD" with administrator privileges
[obviously replace your admin password with – your actual password.]
3. select File from the menu
4. select save as
5. name it whatever you want i called mine “xampp-autostart”
6. select “application” from the file format drop down
7. click save
8. i put the file in the /applications directory
now we are half way there… next we have to set it as a login item…
1. open system preferences
2. click “accounts”
3. select your user [you might have to authenticate]
4. click “login items”
5. click the plus sign
6. find the application you saved in /applications
7. click add
now every time you boot your mac up. xampp will autostart.
you can confirm by accessing: http://localhost in your browser
Matt is a Systems Development Director for a multinational franchise. Matt has lived and worked in Hawaii, Chicago, South Florida and currently resides outside of Atlanta. He enjoys his hobbies including Technology, Gadgets/EDC, Fountain Pens, Wetshaving, Clocks, Antiques & Coffee. He even roasts his own coffee weekly.
I’m new to mac so this helped me out, thanks!
Thanks a lot.
Thank you very much! I hated it to start xampp on every reboot, now it works perfectly!
Had to change xampp to XAMPP and mampp to xampp
Must have made some changes in newer version. Other than that it works great!
I had to use:
xampp instead of mampp
do shell script “sudo /Applications/xampp/xamppfiles/xampp start” password “YOUR ADMIN PASWORD” with administrator privileges
But works great!
Yup, this info rocked! I need to start just the mysql and so it worked well
do shell script “sudo /Applications/XAMPP/xamppfiles/xampp startmysql” password “admin_password” with administrator privileges
Thank you!
Paddy
Excellent rescource. I myself am a recent Mac convert and have always used XAMPP on Windows. With this little snippet it works like a charm. Thank very much!
you just make it too complicated while its very simple:
Edit your /etc/rc.local ( or create new one as root ), and insert the following line:
/Applications/xampp/xamppfiles/xampp start
save and exit.
That’s it.
Thanks for that =)
mannn, i’m just greatful for u because this approach is the thing what i will not think that obviously, so thanks .)
Thx man! its works for me.
Gratz
Great to hear!