PHP-FPM vs ITK vs FCGI

  • Hello,


    My server is using the last version of i-Mscp and I'd like to add PhpSwitcher.
    I've read the doc and ITK is not supported.


    This is of course the one I'm using. I read we can easily change to other implementation.


    My issue... I have no idea which one is better than another. When I google it, all seems the best....


    So as I want to install PhpSwitcher to permit usage of PHP 7. What are the (dis)advantage of the two supported implementation ?


    Thanks for your support
    Cedric

  • @VirtualCed


    Hello,


    Well, I'll try to be clear here: The Apache2 ITK MPM doesn't allows to run many PHP versions at the same time because PHP is run as Apache module. To resume here, the PhpSwitcher plugin will never support the Apache2 ITK httpd server implementation because this is impossible.


    If you want use the PhpSwitcher plugin, you must switch to another another httpd server implementation, I would recommend PHP-FPM which is more better than the Fcgid httpd server implementation

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin : just tried to switch from ITK to PHP-FPM using the command line proposed in the documentation....
    And all my sites in Error 500 :(


    It seems the migration didn't create needed files


    Shell-Script: error.log
    1. [Wed Feb 17 22:25:32.283785 2016] [fastcgi:error] [pid 2911:tid 139646276011776] (2)No such file or directory: [client 83.170.113.210:41028] FastCGI: failed to connect to server "/var/lib/apache2/fastcgi/php5-fcgi-cqfd.net": connect() failed
    2. [Wed Feb 17 22:25:32.283821 2016] [fastcgi:error] [pid 2911:tid 139646276011776] [client 83.170.113.210:41028] FastCGI: incomplete headers (0 bytes) received from server "/var/lib/apache2/fastcgi/php5-fcgi-cqfd.net"

    Surprised to see errors related to fastcgi....


    Cedric

  • @VirtualCed

    • Distro, Codename?
    • i-MSCP version?
    • Which documentation? Which command do you have run?


    Note: If you use Ubuntu Precise/Trusty, FastCGI is expected.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @VirtualCed


    Can I access the server?

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @VirtualCed


    Ok. Give me some minutes to check your server. Please dont do anything on your server as long as I'm working on it.


    Thanks.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Re:


    The problem was due to your ioncube loader module which was not loaded with the correct priority. Thus FPM start failed.
    This is now fixed on your server.


    For any other problem, please open another thread.


    Thanks.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206