Error on PHPswitcher

  • Hello, i found a error when use PHPswitcher, i think must be a bug in the new version. Today when i try to install a new fresh wordpress install using the version 7.0.22 i found this error on logs:


    The web fail with a 503


    [Tue Aug 22 14:02:01.480175 2017] [proxy:error] [pid 19510:tid 140280736999168] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/phpswitcher/psw7.0-fpm-pruebaphp7.demo.mydomain.com.sock (pruebaphp7.demo.mydomain.com) failed
    [Tue Aug 22 14:02:01.480222 2017] [proxy:error] [pid 19510:tid 140280736999168] AH00959: ap_proxy_connect_backend disabling worker for (pruebaphp7.demo.desarrolloc2.com) for 0s
    [Tue Aug 22 14:02:01.480231 2017] [proxy_fcgi:error] [pid 19510:tid 140280736999168] [client 192.168.0.130:1988] AH01079: failed to make connection to backend: httpd-UDS, referer: http://pruebaphp7.demo.desarrolloc2.com/wp-login.php


    I have got this error only when use this version. I test all other versions and run perfect.


    Is this a Bug ?? need this version.


    My data:
    i-MSCP 1.4.3
    Build: 20170417
    Codename: Zimmer
    debian 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2 (2017-04-30) x86_64 GNU/Linux
    Last phpswitcher version. 4.0.0



    Any suggestio or help ?? thank you in advanced.

  • i-MSCP 1.4.3

    First, you should try upgrading your i-MSCP version.


    You should also make use bbcode: [code]bla bla bla[/code] when you are posting in our forums.


    For your problem, you can try the following:


    Go to the PhpSwitcher interface (admin level) and make sure that the status for all your PHP versions is 'OK' and that the paths are correct. Then try: perl /var/www/imscp/engine/setup/imscp-reconfigure -danv

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

  • Hello, I follow your recomendations:


    1 Update debian and the panel to the last version.
    2 Now when i try to change to other version i can change, but i neverchange to ohter version, is always on progress, you can see the attach.


    i can change the php version one time, but never more.


    At this moment i dont see errors on the logs form domain.


    Any solution or suggestion ?? Need logs ??


    I have got this on a virtual machine, i can do snapshoth and fast test if you need.


    Thank you in advanced.




    You can see the image here:


    http://imgur.com/ogbP99v


    Sorry more info, if i use your command (perl /var/www/imscp/engine/setup/imscp-reconfigure -danv) the panel crash and i have got this error



    [ERROR] main::setupDbTasks: iMSCP::Stepper::_callback: Can't use an undefined value as a HASH reference at /var/www/imscp/engine/setup/../PerlLib/iMSCP/EventManager.pm line 208.
    ...propagated at /var/www/imscp/engine/setup/../PerlLib/iMSCP/DbTasksProcessor.pm line 487.


    And the pannel is inaccessible. (Down)

  • @c2intelligent


    You must apply that patch https://github.com/i-MSCP/imsc…07e05349b2a1db504242b7197
    on your /var/www/imscp/engine/PerlLib/iMSCP/EventManager.pm file. Once done, retry.

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

  • Sorry for my newbe question :(, how i can apply this patch only ??


    I know how update the entery distribution or use the dev version but not this, sorry.


    Thank you in advanced.


    Best regards.


    Note: i reffer with commands fomr git or similar, i can do a manual patch on the file.

  • @c2intelligent


    Edit the /var/www/imscp/engine/PerlLib/iMSCP/EventManager.pm file and replace the line 208 by

    Perl
    1. delete $self->{'nonces'}->{$eventName} if $self->{'nonces'}->{$eventName} && !%{$self->{'nonces'}->{$eventName}};

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

  • Sorry for the last question, i think i can do this with commands or similar. (wrong)


    When change this line i can use your command and all is running perfect,i can change the version without problems.


    Thank you for the plugging and a great support.


    Best regards.

  • @c2intelligent


    You're welcome.


    Thread closed.

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