MAMP Web Server
When I am designing a theme for WordPress I always install a copy of WordPress onto my local server. I have my server set up in a virtual machine. It’s aggravating because I have to wait on that virtual machine to start up before I can do anything. I have been thinking about installing Apache, MySQL, PHP and phpMyAdmin onto my Mac so I can just leave it running and have a copy of WordPress running locally for whenever I need to test something. I just haven’t had the time to do this yet.
On my Linux virtual machine I have a copy of XAMPP running. I got to looking around and there is a version of XAMPP for the Mac but it only runs on Intel Macs. The iBook that I have has a PowerPC G3 processor, so that won’t work. Fortunately there is an alternative called MAMP. It’s got the basics of XAMPP and works pretty well. I downloaded it this morning, extracted and installed it.
I guess I should say what XAMPP and MAMP are. They include Apache, MySQL, PHP, phpMyAdmin and a few other things all in one package. They’re usually meant for developers on a network to test out projects and usually not meant for deploying websites publicly. You usually just install a package and you have a web server.
In under 20 minutes I was able to have WordPress up and running. It would have been quicker had I not run into a database connection issue. Also, the download was quite large, over 100 megabytes so I had to wait on that. The database problems that I ran into was that you can’t simply use ‘localhost’ as the MySQL server address, you have to use a port. I tried to use ‘localhost:8889′ but that did not work either. I then used the IP address of the machine ‘192.168.1.44:8889′ and that worked.
This is a great option for testing websites. I haven’t looked into it yet but if MAMP can be secured then I think it would be a good option for someone wanting to play with hosting their own websites or blogs. If you use XAMPP on Linux then you’ll know that you can easily secure XAMPP by running a simple command from the command line and answering a few questions. However, if MAMP can’t be secured then I think it’s still a good option for testing websites locally.
Other than making sure XAMPP is secure you’ll want to install an FTP server. There is an FTPd daemon already included in OS X. You can use PureFTPd Manager for Mac OS X to manage it.
If you’re not on a Mac I would recommend Uniserver or XAMPP.
Tags: apache, ftp, local testing, mac os x, mac server, mac web server, MAMP, mysql, php, phpMyAdmin, pureftpd manager, web development, wordpress




March 20th, 2007 at 6:01 pm
What you’re talking about here is a bit over my head, Andy. But I do know there are some basic Apache web services built into OS X. And when I’m working with a new WordPress install or design, I just do it live on my site. I know. It’s not very classy. But, that’s me…
March 21st, 2007 at 2:11 pm
You’re such a G33K!
I know whatcha mean about hooking up to your local MySQL server — I went through the same thing while I was trying to set things up locally on my Mac to play with Ruby on Rails — now I do like Shawno, and just d it all online. I wanna be a Ruby on Rails h4xor, but I got a LONG way to go…
March 21st, 2007 at 3:02 pm
I do sometimes just use my GoDaddy hosting account to work on websites. The only thing I’ve got against doing that is I don’t want Google to index them or people on Technorati to see them. I know I can disable all that, but, I just prefer to keep everything locally.
Steve Harris has been telling me I need to do some Ruby On Rails but I need to work more on PHP & MySQL. I bought a book not too long ago and I need to start doing some of the chapters in it.
March 22nd, 2007 at 9:41 am
I need to work more on PHP/MySQL, too, but I love the whole concept of Ruby on Rails. Maybe Steve Harris would consider flying us over to the Wales and teaching us Rails — hey, that rhymes!
I kill me sometimes….