cBrandon Community

General Category => Linux Fixes => Topic started by: branx86 on December 31, 2018, 03:34:49 PM

Title: Xibo install
Post by: branx86 on December 31, 2018, 03:34:49 PM
st finished the install. Hope can save someone's time. Please fell free to modify, amend and comment.

Avoid using Chrome on install, it has strange problem.

Install CentOS minimum. I use CentOS-7.2.1511-x86_64 then update.

Install net-tools and editor if not using vi.
Disable /etc/sysconfig/selinux

sudo yum -y install httpd
sudo systemctl enable httpd
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload

yum install -y epel-release
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 102

PHP 5.6
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 77

The following work for me.
yum install -y php56w php56w-opcache php56w-common
yum install -y php56w-pear php56w-devlop.x86_64
yum install -y php56w-devel php56w-intl php56w-soap php56w-mcrypt json
yum install -y php56w-pdo php56w-gd
yum install -y php56w-mysql
yum install -y php56w-mbstring

Install MariaDB
yum -y install mariadb-server
systemctl enable mariadb
systemctl start mariadb
mysql_secure_installation

Prepare compile zeromq
yum -y group install "Development Tools"

Download zeromq.
tar zxvf zeromq-4.2.0.tar.gz
./configure
make
make install
pecl install zmq-beta
edit /etc/php.ini and add extension=zmq.so 110

Extract cms to /var/www/xibo18.
Edit /etc/httpd/conf/httpd.conf change
DocumentRoot "/var/www/xibo18/web"
<Directory "/var/www/xibo18/web">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted

chown -R apache:apache /var/www/xibo18

XMR
/var/www/xibo18/vendor/bin/config.json
{
"listenOn": "tcp://IP_ADDR:50001",
"pubOn": ["tcp://IP_ADDR:9505"],
"debug": false
}

XTR
EDITOR=joe crontab -e
'* * * * * /usr/bin/php /var/www/xibo18/bin/xtr.php'

Edit /etc/php.ini
max_execution_time = 120
memory_limit = 256M
post_max_size = 256M
upload_max_filesize = 256M
extension=zmq.so 110
date.timezone = TIME_ZONE

systemctl restart httpd

http://IP_ADDR

Enjoy.