The commands below are a guide to installing and configuring Xibo on a Centos 6 platform, specifically a Centos 6 Minimal installation. A typical use case is where your server only has a CD-ROM drive - rather than a DVD-ROM and cannot boot from USB or other media. Centos 6 Mininal install is available for CD-ROM installation.
These instructions assume that your hardware is functioning correctly, any RAID etc is externally managed (maybe in a RAID card) and that a vanilla Centos 6 Mininal Installation has completed suceesfully without errors.
Centos 6 is available for x86 and x64 archtitecture here: http://wiki.centos.org/Download
Some of the steps below require additional inputs from you the administrator such as the apache configuration and the PHP configuration, please also refer to the Security Page for further security advice and considerations.
The version number of this guide is v1.0, March 11th, 2015.
Built-in ethernet is not setup on a fresh install, lets change this to static or DHCP;
Further info on the structure of this file is here: https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-networkscripts-interfaces.html
Note that to save and exit in vi you use the command:
Set the machines hostname
Open port 80 on the built-in firewall
iptables -A INPUT -p tcp -m tcp --sport 80 -j ACCEPT iptables -A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT
Restart network services to acquire / use an IP address, as many of the steps from here on require internet access
service network restart
update any base components
yum update -y
install some basic tools for a happy system admin
yum install nano wget bash-completion ntp ntpdate -y
set the date and time, then start nptd to keep it in sync
ntpdate service ntpd start chkconfig ntpd on
We need additional repositories for Mcrypt, lets add them in
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh epel-release-6*.rpm remi-release-6*.rpm
install apache (httpd) PHP and MySql server
You may want to copy and paste this as there are 26 components
yum install httpd php-devel mysql mysql-server json json-c php php-cli php-common php-devel php-pdo php-soap php-mysql php-mcrypt* php-common php-cli php-devel php-fpm php-gd php-imap php-intl php-mysql php-process php-xml php-xmlrpc php-zts
Configure apache, start it and the set it to start on boot
nano /etc/httpd/conf/httpd.conf service httpd start chkconfig httpd on
Start mysql, configure and set to autostart on boot
service mysqld start mysql_secure_installation chkconfig mysqld on
It needs to be like this:
# Json Extension extension=json.so
edit config php to suit
At this point
- your server is on your network
- the hostname, date & time are set
- you have a basic webserver installed with PHP and mySQL
- the Xibo required PHP modules are all installed
- you know a MySQL username and password
- PHP has been set to allow larger than normal uploads (necessary for large video files)
Now download and install xibo into the standard webroot.
Note that the example below shows a version (1.7.1), which you’ll want to review and change as new versions of Xibo are released.
cd /var/www/html wget https://github.com/xibosignage/xibo-cms/archive/1.7.1.tar.gz sudo tar zxvf 1.7.1.tar.gz sudo mv xibo-cms-1.7.1 xibo chmod 777 -R xibo cd ../.. mkdir xibo-library chmod -R 700 xibo-library chown -R apache:apache xibolibrary
now check your servers IP address with:
ifconfig | grep inet
it will show you, maybe the last line.
and begin the setup.
Once it’s running, I generally change the webroot directory in httpd.conf to /var/www/html/xibo so the access address is simply
http://<youripaddress> and also remove the downloaded installation archive. Or move it out of the webroot!
cd /var/www/html rm 1.7.1.tar.gz