Friday, November 17, 2006

Installing php5

It has been a while since my last post. In this post I want to talk about installing php5. I start with
sudo apt-get install php5
Next to make it work with apache2
sudo apt-get install libapache2-mod-php5
And now restart the apache2 webserver with
sudo /etc/init.d/apache2 restart
Now test if it all works. the DocumentRoot is standard set to the directory "/var/www" So all php files you produce must be placed into this directory. To change the DocumentRoot location type
sudo vi /etc/apache2/sites-available/default
and change the DocumentRoot on line 5 in something else.I decided to keep the DocumentRoot to /var/www. Now go to this directory and make a test.php file with
sudo touch test.php

edit the file with
sudo vi test.php
now insert the following line into the new file
<?php phpinfo(); ?>
now with your browser go to
yourserver/test.php
if everything is installed correct you`ll see the php info page. Make sure so remove this file if you open your server to the public as it may pose a security risk. For more information visit ubuntu dapper wiki.

Next post about mysql and phpmyadmin

Wednesday, October 11, 2006

Apache webserver

Installing the apache2 webserver was very easy
sudo apt-get install apache2
Now it should work. To test if the server is installed correct just type the ip address of your server into the address-bar of your browser and you should be seeing something like this
"It Worked! The Apache Web Server is Installed on this Web
Site!

"If you can see this page, then the people who own this
domain have just installed the Apache Web server software
successfully. They now have to add content to this directory
and replace this placeholder page, or else point the server
at their real content.
---
"If you are seeing this page instead of the site you expected,
please contact the administrator of the site involved. (Try
sending mail to .) Although this site is
running the Apache software it almost certainly has no other
connection to the Apache Group, so please do not send mail
about this site or its contents to the Apache authors. If you
do, your message will be ignored.
---"


For more information on installing the apache2 webserver go to apache.org
Please note that I did not pay any attention to security of the server. This is because my server is still behind a firewall. So if you intend to host anything on the webserver please do some more research than I did.

Wednesday, September 20, 2006

Creating playlists

It has been a while since my last post. In this post I will show how I created playlists on my I-tunes daap server. Actually this one is very easy. just type:
sudo vi /etc/mt-daapd.playlist
Now you can add playlists for instance
"new this month" { Date after 4 weeks ago }
Now restart the daap-server and you will see the playlist listed in I-tunes.
The mt-daapd.playlist file is very well commented with a lot of examples. here are some more examples of smart playlists you can add to your server.
Next posts will be about setting up a (apache)webserver with php and mysql.

Thursday, August 24, 2006

I-Tunes server part 2

Now I am ready to install the mt-daapd software. The guide provided in the mt-daapd wiki will run you through the steps of installing the mt-daapd software on Ubuntu. I decided to do it a bit different. Since Ubuntu is a debian-based distro I tried installing it with the debian package found here I downloaded the ".deb" file to my (windows)desktop PC.

Now I have to copy the file to the server to install. Luckily I installed a samba server before. So I copied the package to the shared folder on the server. Next I logged on to the server went to the location of the file and typed:
sudo dpkg --install mt-daapd_0.2.4-1_i386.deb
Next step: open the configuration file:
sudo vi /etc/mt-daapd.conf
I did not change a lot in this file. I changed the path to my music, and changed the server-name. Now I was ready to start the service
sudo mt-daapd start
Now start I-tunes and your server should be there listed as shared music. Now you should also be able to access the daap-server through a web-interface. Startup your browser and type your servername or IP Address of the server followed by a colon (:) and then 3689 (port 3689). You can find out the IP-address of your server with the command
ifconfig

So for my server it would be
172.19.3.13:3689
Now login with username: admin and password: mt-daapd (you can change this in the mt-daapd.conf file). Now you`ll see a website where you can monitor your server and change some things...

next post I will explain how I added and changed playlists.

I-Tunes server part 1

In this post I will write about setting up a daap-server . With this server you`ll be able to stream your music collection to I-tunes and some other music-programs. There are different projects working with the DAAP (digital audio access protocol). Check here for an overview of the projects.

On my ubuntu-server I am going to work with the mt-daapd software. You can find the homepage of this project here.

basically I just started with following the steps out of the quick-start Ubuntu guide. The first step in the guide is: install non-standard packages. the following packages need to be installed
libsqlite0
libsqlite0-dev
gawk
gcc
libid3tag0-dev
libgdbm-dev
So type
sudo apt-get install libsqlite0
And do this for every package. Now you should be ready to install the server.
I will explain how I did this in the next post...