Difference between revisions of "XAMMP - Apache/MySQL/PHP5/Perl"
m (Minor - All XAMMP -> XAMPP)
|Line 48:||Line 48:|
Revision as of 17:08, 9 May 2007
Installing XAMPP on the Apple TV
XAMPP for Mac OS X is the simplest, most practical and most complete webserver solution for Mac OS X. The distribution includes an Apache 2 web server, integrated with the latest builds of MySQL, PHP (both 4 and 5) and Perl. It comes as a Mac OS X Installer package which contains all the necessary files and requires no dependencies.
If you are an experienced web developer or a Mac enthusiast who needs to run a webserver, create dynamic webpages or use databases, this is your lucky day!
To Install the XAMPP package on the Apple TV follow this steps :
1. download the latest XAMPP from their website (XAMPP for OS X) .
2. copy the .tar.gz file to your Apple TV (the way you prefer, AFP, SCP, etc...)
3. Open a SSH connection to your Apple TV and extract the downloaded file:
sudo tar xfvpz xampp-macosx-0.6.1.tar.gz -C /
4. Start your XAMPP:
sudo /Applications/xampp/xamppfiles/mampp start you should see that :
Starting XAMPP for MacOS X 0.6.1... XAMPP: Starting Apache with SSL (and PHP5)... XAMPP: Starting MySQL... XAMPP: Starting ProFTPD... XAMPP for MacOS X started.
5. Try your installation http://Apple_TV_IP and choose a language.
Tips - If you get PHP errors, it's because you didn't extract it with the 'p' parameters, you should re-extract it with the exact same command as in step 3.
6. Assuming it's working, it's time to Secure your XAMPP installation.
sudo /Applications/xampp/xamppfiles/mampp security
That's it, now, you can put your files where the http.conf is configured to.
To enable at boot time
Assuming you have enabled AFP (AppleShare) to start at boot, you can add the line:
To the file:
After the If statement in the StartService function, and then XAMPP will startup at boot time.
(adding this to the AppleShare startup item is not recommended. instead follow these instructions to create an appropriate startup item) [http://developer.apple.com/documentation/MacOSX/Conceptual/BPSystemStartup/Articles/StartupItems.html#//apple_ref/doc/uid/20002132-CJBBHDII