Mac OS FAQ
1. Does apple provide Mac OS Server?
You can download the latest Server app version 5.3 applications from the App Store.
2. Can I buy mac OS server hardware?
All current macs from the Mac Mini to the Mac Pro can be set up as a server.
There are third party rack mountable servers from Sonnet, based on the Mac Mini.
3. Can I set up Mac OS as a Web Server?
Yes, Mac OS comes with a web server called Apache which is can be enabled by enabling Web Sharing on the Sharing system preferences.
The apache configuration can be found in /etc/apache2/httpd.conf file.
By default, any web pages are loaded from /Library/WebServer/Documents folder.
Control of apache is possible via the 'apachectl' (apache control) command. Run 'man apachectl' to view options for this command.
apachectl stop | start | restart | graceful - Stop and start the apache service. Required for any configuration changes.
If you want PHP code within your web site, then you need to enable the PHP module for Apache:
a) Enter 'sudo vi /etc/apache2/httpd.conf' to edit the file.
b) Press '/' and enter php to search for the php module line.
e.g. #LoadModule php7_module llibexec/apache2/libphp7.so
c) At the beginning of the line press 'x' to delete the '#' character.
d) Press ESC : wq to save and exit the file.
e) Enter 'sudo apachectl restart'.
4. Can I setup mySQL database server on Mac OS?
Yes, there is a version of mySQL available from MySql.org which you can install on your Mac.
You should ideally add the mysql bin folder to your path to access mysql programs:
The main mysql programs you can use are mysql, mysqladmin and mysqldump.
For managing your mySql Databases, I would recommend installing mySQLWorkbench.
5. Can I run DNS on my Mac OS server?
Yes, Mac OS Server includes BIND which will allow you to resolve internet names to IP Addresses.
If you do not have Mac OS Server, you could try installing the official BIND on Mac OS, you will need
access to Brew, development tools (X Code), and this installation script to set it up.
6. Can I run DHCP on my Mac OS server?
Yes, Mac OS Server includes DHCP server which will allow you to allocate IP addresses to computer over a local area network.
Alternatively for a simple small network you can enable Internet Sharing from the Sharing System preferences, which will allow you
to share an internet connection from one computer to other computers.
Most modern ADSL modems, have a a built in DHCP server, you can use that rather than a dedicated DHCP server.
For larger networks, a dedicated DHCP server is required. So, you can try the built in bootpd / dhcp service on mac os.
7. Can I run VPN (Virtual Private Network) from Mac OS?
Yes, Mac OS Server includes VPN which will allow you to connect to your local network over the internet.
An alternative solution called Open VPN is also available for Mac OS.
8. Can I run virtual machines from Mac OS?
There are several products available to run virtual machines from mac OS including Parallels, Fusion, VirtualBox and QEmu.
These are ok for for development or low-resources services, but for enterprise level virtualisation you need a dedicated service
such as VMWare vSphere or Windows Hyper-V services.