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:

  1. the package  ajenti-v-php-fpm  is now ajenti-v-php7.0-fpm
  2. install php7-mysql
  3. 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

    Take note of the output and reinstall back those that you need, such as
  4. 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.
    Ajenti-v php7.0 FastCGI
  5. 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.

Leave a Reply