Installation guide of XIBO 1.8 on CentOS 7

I just finished the install. Hope can save someone’s time. Please fell free to modify, amend and comment.

  1. Avoid using Chrome on install, it has strange problem.

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

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

  4. 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

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

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

  7. 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

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

  9. Prepare compile zeromq
    yum -y group install “Development Tools”

  10. 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

  11. 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

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

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

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

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

  16. systemctl restart httpd

  17. http://IP_ADDR

Enjoy.

Regards,

Almond Wong

8 Likes

Hi,

First, I would like to thanks Almond Wong for sharing this Installation procedure, I believed there is a problem with the installation script:

Using firefox I visited: http://localhost which redirected me to http://localhost/install … so far so good…
I understand that this first page is to check if my server meets Xibo’s requirements. All checked fine.
After I click on the “next” button is when I encountered an error.

The server shows the following.

Not Found

The requested URL /install/2 was not found on this server.

I check the directory ’ /var/www/xibo18/install ’ and I noticed that the directory ’ 2 ’ is missing. Any idea how to proceed with the installation?

Thanks.

Alfredo.

I installed the docker in centos and the xibo server was delivered in 5 minutes =)

thanks for your reply. But I am trying to use Xibo in a Non-docker on CentOS 7 environment .

Dear, great job.
It is possible that you indicate where I can download XIBO 1.8 for CentOS7, I have searched everywhere and I can not find the zip file to install it on the server.
thanks for your help.

Release downloads can be found here:

Hi ,
this guide is really well done but, where should I look for some help in order to get xibo running on nginx rather than apache ?
I’ve been googling around in the last weeks but I could not find a definitive answer.

The best result is that when I try to go on the installation I get “index.php/2” failed (2: No such file or directory)!!!" that is frustrating :slightly_frowning_face:

Thank you for any help You may provide :slight_smile:

nginx requires custom configuration in the nginx configuration for the CMS URL rewriting.

See the manual section on this:
https://xibo.org.uk/manual-tempel/en/install_environment.html#url_rewriting

Hi Alex,
thankyou for you answer but I am looking for a whole sample nginx.con that works, assuming it is dedicated just to Xibo.
I did try those rewrites but I land to looping install/install/…
Thank you again

The snippet there is literally all you require.

You need a default server block, with no locations inside it except your handler for php files, with its webroot set as the web folder of your install, and the redirect rules from the manual.

Hello im stuck here:

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’

Can some body tell me what means XTR and XMR?

XMR = Xibo Message Relay. It’s Xibo’s push messaging relay server.

XTR = Xibo Task Runner. It’s the background process that runs tasks for the server.

XTR is required for a Xibo CMS to function correctly. XMR is recommended but not absolutely required. You will loose some functionality though if you don’t have it.

I’m confused on these steps as well. I suspect that steps 12 and 13 make sense for someone who is already familar with the install. But for me, I’m not sure what I am supposed to be doing.

Am I supposed to create the JSON file for XMR and add the provided contents? Do I change IP_ADDR to my IP address, or will the system translate IP_ADDR to it’s IP address?

As for the XTR step, am I just adding the job to the crontable?

Or am I using the provided data with an XMR and XTR command I am not familar with?

Hi

mabe this is a bit late, but

https://xibo.org.uk/manual/en/install_xmr.html

Hi all,

I install Xibo 1.8 on centos 7 following this guide. but after enter http://ip. I see nothing on web browser as attached file and I can’t continue. Please help me solve this error. Thanks!!

Hello Nghianvtb!

I think I’m stuck with the same problem as you.

Did you solve the problem?

Solve the problem with this post:

Is there any instructions to install zeroMQ on php 7.2 with php bindings, centos 7