Salient Digital Techno Blog
Ramblings on technology with a dash of social commentary
-
Apache, PHP and MySQL in 10 Minutes
Posted on June 11th, 2011 No commentsWhether you want to start developing web applications for the first time, you’re wanting to make better use of your local computer or a virtual machine to streamline development, create a development or staging server, or just checking back as a reference for a new platform, welcome to…
Apache, PHP and MySQL in 10 Minutes
In this guide you will find the resources needed to build a web development environment on the platform of your choice
- Choose Your Platform – Mac, Windows or Linux.
- Mac OS X Instructions
- Easy - Using MAMP
- Intermediate - Using built-in Apple Apache
- Windows Instructions
- Install WampServer
- Install XAMPP
- Linux Instructions
- CPanel
- CPanel comes with Apache & PHP already installed, so here’s how to customize your install
- Note – make sure your config comes with WHM (Web Host Manager)
- Many ISPs call this a Reseller account
- How to use the EasyApache script
- Plesk
- Plesk comes with Apache & PHP already installed, so here’s how to customize your configuration
- Parallels Plesk Apache Configuration Guide
- Mac OS X Instructions
- Install any PHP Extensions you might need
- The one PHP extension that Kohana requires you that doesn’t come by default (See Kohana 3.1 in 5 minutes) is mcrypt:
- How to create a VirtualHost
- Find your Apache Config file
- Find your Apache VirtualHost config file
- Sample VirtualHost container
<VirtualHost *:80>
ServerName website.dev
DocumentRoot "/Users/username/Sites/website.com"
</VirtualHost>- More from the Apache VirtualHost documentation
- How to edit your hosts file
- Start Apache
- Start Apache
- Mac OS X:
- Terminal
sudo apachectl start
- or start Web Sharing in System Preferences
- Terminal
- Windows
- WampServer – start all services using the taskbar tray icon
- Linux
- Debian/Ubuntu
sudo /etc/init.d/apache2 [start | stop | restart ]
- Fedora
service httpd [start | stop | restart]
- ArchLinux
/etc/rc.d/httpd restart
- OpenSUSE
apachectl [start | stop | restart]
- Debian/Ubuntu
- Mac OS X:
- Start Apache
- Test your install
- Go to http://localhost in your browser
- Are you seeing the Apache start page?
- If so, you are done. Congratulations! You just installed a web server.
- Install MySQL
- Mac OS X
- Windows
- Linux
Now that you have a development environment, why not install a fantastic web development framework, such as Kohana.
Ready for round two? Kohana 3.1 in 10 Minutes
Leave a reply
- Choose Your Platform – Mac, Windows or Linux.



