Squeezebox Setup

Adding a webserver

Installing the webserver is very easy – CentOS has apache in its main repos, so we can just do this:

[root@tranquilpc ~]# yum install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.dedipower.com
* updates: mirrors.dedipower.com
* addons: mirrors.dedipower.com
* extras: mirrors.dedipower.com
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-22.el5.centos.1 set to be updated
--> Processing Dependency: libaprutil-1.so.0 for package: httpd
--> Processing Dependency: libapr-1.so.0 for package: httpd
--> Running transaction check
---> Package apr-util.i386 0:1.2.7-7.el5 set to be updated
---> Package apr.i386 0:1.2.7-11 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================
Package Arch Version Repository

Size
=============================================================================================
Installing:

httpd i386 2.2.3-22.el5.centos.1 updates 1.2 M
Installing for dependencies:

apr i386 1.2.7-11 base 122 k
apr-util i386 1.2.7-7.el5 base 76 k

Transaction Summary
=======================================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 1.4 M

Next we need to create an area for apache on the main RAID disk. Again the easiest way to do this is under /home

Create root directory on the RAID disks:

[root@tranquilpc conf]# cd /home
[root@tranquilpc home]# mkdir apache
[root@tranquilpc home]# chown -R apache:apache apache

Then we need to edit the config file to reflect this home area. So edit /etc/httpd/conf/httpd.conf and change:

DocumentRoot "/var/www/html"

to

DocumentRoot "/home/apache"

and

<Directory "/var/www/html">

to

<Directory "/home/apache">

Then enable the httpd service and turn it on:

[root@tranquilpc ~]# chkconfig httpd on
[root@tranquilpc ~]# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for tranquilpc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]

You should now be able to navigate to your NAS in a browser (http://192.168.1.107 for me) and see the default web page.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: