New Testing Server 2016

I started this post back in August 2016 when I set my old Mac mini up as a media server and webserver for testing purposes. I never finished it or got back to it, which is a bit of a bummer since it is all just so much gobbledygook to me now. Still, it documents the process I used this time to set up Apache, php and ftp. And, since one of the first purposes of this site was to store and have available various computer processes I had engaged in I guess I will post it for posterity despite its incompleteness.


Set up Server

The Perfect Web Development Environment for Your New Mac

Enable Root user
Directory Utility
Edit–>Enable Root User



sudo apachectl start
sudo apachectl restart



117 LoadModule php5_module libexec/apache2/

221 AllowOverride none
222 Require all denied

160 LoadModule vhost_alias_module libexec/apache2/
477 Include /private/etc/apache2/extra/httpd-vhosts.conf

httpd-vhosts.conf file in the /private/etc/apache2/extra/
DocumentRoot “/www/home/”
ErrorLog “/private/var/log/apache2/”
CustomLog “/private/var/log/apache2/” common

IP to LocalHost
sudo nano /etc/hosts

Add the Domain and ‘www‘ alias to resolve to the localhost address

sudo apachectl restart

Text Wrangler
Command Line tools

Set up A record for subdomain

FTP Server

sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

Open up router to forward port 80 to localhost


Install wordpress


Modify wp-config

/** sets up ‘direct method for wordpress auto-update without install in ftp **/


$ cd /<wherever>/Sites/<thesite>
$ sudo chown -R _www wordpress

Here’s a simple option that gives you full (read+write) access, lets the webserver read the files, and locks everyone else out of the web folder

$ sudo chown -R “username”:_www /www/home/wp-content

$ chmod -R u=rwX,g=rX,o= /www/home/wp-content