Categories

Archives

Archives

Subscribe to Blog

Email Address

Ajenti-v with php7.0-fpm on Ubuntu 16.04.1

Today the site was down for a few hours after upgrading from Ubuntu 14.04.5 LTS to 16.04.1 LTS. Ajenti-v was not able to work immediately, due to PHP version upgraded from 5.6 to 7.0. Here is the solution.

There are a few items you need to take note:

the package
ajenti-v-php-fpm is now
ajenti-v-php7.0-fpm

install
php7-mysql

if you cannot access your admin portal, or it’s shown with only the navigation bar, or the “connecting” grey screen, you may *try* to reset all custom settings by running

Shell

1

apt purge ajenti*

Take note of the output and reinstall back those that you need, such as

Shell

1

ajenti-vajenti-v-mysql ajenti-v-nginx ajenti-v-php7.0-fpm

your main site, if it is in php probably won’t work now; but if you have static content site, it’s probably working. This is because the php-fpm is used to generate FastCGI, and that hasn’t been updated for each of your website configuration.
For this, you need to go to Websites > Your Website > Content, the first item is likely shown as “[^/]\.php(/|$) unknown“. Take note of all your parameters, like min/max processes, PHP .ini values, Custom configuration, etc. Copy them in your notepad. Then remove this item.
Finally, add back the new PHP 7.0 FastCGI.

Test and see if everything else runs fine.

That’s it. Hope your site is up and running againg. Also recommending the DigitalOcean SSD cloud server I’m using costing only $5 a month, sign up and receive $10 credit here.