Categories
Technology

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.
  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 $100 credit here.

One reply on “Ajenti-v with php7.0-fpm on Ubuntu 16.04.1”

Hello friend, could you help me, I’m new with Ajenti.
mysite.com> ok
mysite.com/system/> no

Log:
[error] 1177 # 1177: * 1 FastCGI sent in stderr: “PHP message: PHP Uninitialized string offset: -1 in /srv/mysite/vendor/idev/router/src/router.php on line 81” while reading upstream: client: xxx.xxx.xx.x, server: mysite.com, request: “GET / system HTTP / 1.1”, upstream: “fastcgi: // unix: / var / run / ajenti-v- php7.0-fcgi-mysite-php7.0-fcgi-0.sock: “, host:” xxx.xxx.xx.x “

Leave a ReplyCancel reply

Exit mobile version