Install Xibo 1.7.9 in Ubuntu 16.04 with PHP7.0

Installing Xibo (1.7.9) is pretty simple if it's not going with PHP 7.0 because PHP7.0 completely gets rid of mysql_* functions. But for some reasons you have no choice and gotta use PHP 7. In my situation, It's a Ubuntu 16.04 server and PHP 7.015. So what you can do is to compile the mysql_* module yourself.

1. Clone the pecl module to extension directory of php

cd /etc/php/7.0/mods-available
git clone mysql --recursive

2. Compile the source

cd /etc/php/7.0/mods-available/mysql
make install

Note: to have phpize, you may need php7.0-dev installed.

3. Symlink the module into php extension directory

ln -s /usr/lib/php/20151012/ /etc/php/7.0/mods-available/

4. Modify php.ini to enable mysql extension

nano /etc/php/7.0/fpm/php.ini


5. Restart php

sudo systemctl restart php7.0-fpm

The rest is quite simple, just download xibo to your web directory and follow the web installation and install the needed php extensions.