Skip to content


Installing a Mac OS X home-server – day 2

Since day one I have been moving more files around. Next to our old server we also have a 400 GB LinkStation, which is a network disk – a very slow one. My plan is to switch disks and use the 400 GB disk of the LinkStation as external disk of the new server, while using the 200 GB disk (a quiet disk from Seagate) of the old server (which has 3 disks) as new LinkStation disk. The only problem is – how do you move these masses of files around when you hardly have any free space? Actually the transfer speed on the network from the LinkStation to the old server has been the actual problem. Moving 160 GB took more than 13 hours.

Intranet
Today I wanted so setup the intranet server. On our intranet we use a couple of web-applications, which require a MySQL database, Apache and PHP. Sometimes I also use it too develop and test new sites and applications, so it should also support Java-applications and Ruby On Rails, but that can wait.

Previously I have been using the MAMP package to setup a MySQL, Apache, PHP environment on my Mac, so that’s what I used as well for the new server and after I had transferred the SQL data to the new database, everything was working, basically again within minutes. But then I had to realize, that MAMP is not really suited as solution for a server, because you have to start it as user who is logged in. So I had to start all over again but it is not that difficult to install and configure the components by hand either.

Server software
Apache is already installed and configured. You can start it with the sharing control panel. MySQL can be downloaded for Mac OS X from the official site and includes a control panel, where you can specify, that the database server should start automatically. For PHP I chose the PHP 5 installer provided by Marc Liyanage. I adjusted the default Apache settings (as usual in /etc/httpd/httpd.conf) by hand, which is not a problem since I have been working with Apache for many years. Getting one of the web-applications to work was a bit difficult, since it was written for PHP 4 and expected certain settings in php.ini, which were not set in the default installation. Once Apache and PHP were configured I was able to use phpMyAdmin to create the databases again and everything was working again.
For our LinkTheater network media player I installed the official LinkTheater server software as well as the AVeL Link Server, which works as well with the LinkTheater. Both of these were working but disappointing, since the Windows versions have a user interface with settings and some extra functions. But both applications become interesting, when you examine the software package, because they are pure Java applications. Maybe they can be customized and extended.

The only service left on the old server now, is the mail server with postfix, procmail, imap and fetchmail. I have also been looking at Webmin, which I usually used on the Linux server to administer and configure it. Webmin should run on Mac OS X but the installation seems complicated and I haven’t had time to try it yet.

Posted in apache, mysql, php, server.

Tagged with , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.