PHPSwitcher Plugin - PHP 7.0.3 - Short Open Tag

  • Hi Nuxwin,


    I have just updated to the latest version of PHPSwitcher plugin, i.e. I have downloaded the latest version and uploaded it through the backend. It told me that it updated it successfully. After that, I rebuilt the PHP7.0 module using


    perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl 7.0


    Next, I have regenerated the PHPinfo in the backend and it showed me 7.0.3. After that, I have reselected the PHP7.0 version for each of my domains.


    So, everything looks fine but after loading my startpage https://ziin.de it just renders blank (no source code given). When I switch back to PHP5.6.17 (which comes with my system), the sites loads fine again.


    Did I miss something?


    I have checked the apache2 logs and this is the result:


    • [Sun Feb 28 17:59:31 2016] [alert] i-MSCP Vlogger: unable to connect to MySQL server: Can't connect to MySQL server on '127.0.0.1' (111)
    • [Sun Feb 28 17:59:31 2016] [alert] i-MSCP Vlogger: Tracker feature turned off
    • [Sun Feb 28 16:59:31 2016] [notice] i-MSCP Vlogger: started CustomLog Handler -- resuming normal operations

    Do you know what the error means? I can connect manually on the console as root to mysql.


    Can you help me? If needed, your public key is still available on my server menkisyscloudsrv29.menkisys.de/.


    Thanks,
    Sven

  • @TheRiddler1982


    I'll have a look now. Please, don't do anything on your server as long as I'm working on it.

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

  • @TheRiddler1982


    PHP 7.0.3 is running correctly. See the screen. You must check your wp installation.


    About the MySQL error, I cannot confirm it:


    Code
    1. root@menkisyscloudsrv29:~# tail -fn0 /var/log/apache2/error.log
    2. [Sun Feb 28 18:41:26.106590 2016] [mpm_worker:notice] [pid 2699:tid 139991670679424] AH00295: caught SIGTERM, shutting down
    3. [Sun Feb 28 17:41:26 2016] [notice] i-MSCP Vlogger: caught TERM, shutting down
    4. [Sun Feb 28 18:41:26.264782 2016] [suexec:notice] [pid 2933:tid 139907313788800] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    5. [Sun Feb 28 18:41:26 2016] [notice] i-MSCP Vlogger: caught TERM, shutting down
    6. panic: fold_constants JMPENV_PUSH returned 2 at /usr/lib/x86_64-linux-gnu/perl5/5.20/DBI.pm line 783.
    7. [Sun Feb 28 18:41:26.318585 2016] [mpm_worker:notice] [pid 2935:tid 139907313788800] AH00292: Apache/2.4.18 (Debian) OpenSSL/1.0.2f configured -- resuming normal operations
    8. [Sun Feb 28 18:41:26.318661 2016] [core:notice] [pid 2935:tid 139907313788800] AH00094: Command line: '/usr/sbin/apache2'
    9. [Sun Feb 28 17:41:26 2016] [notice] i-MSCP Vlogger: started CustomLog Handler -- resuming normal operations

    Generally the error occurs when MySQL service is down. Thus, vlogger simply disable the tracking feature.



    menki.png

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

  • About your PHP error, Can I fix it?


    Code
    1. [Sun Feb 28 18:42:59.918134 2016] [proxy_fcgi:error] [pid 2940:tid 139906798049024] [client 167.114.237.176:51256] AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected '}', expecting end of file in /var/www/virtual/ziin.de/htdocs/wp-content/themes/ziin/functions.php on line 84\n'

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

  • @TheRiddler1982


    Fixed. https://ziin.de/


    short_open_tag was Off in /opt/phpswitcher/php7.0/etc/php/php.ini so I've changed it to On and restarted psw-7.0.fpm service.


    I'll enable short_open_tag by default in version 2.1.1 (this only affect FPM SAPI). ;)

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

  • Hi,


    sorry, you've been faster with doing than I with replying :-). Thanks for fixing! Thanks for turning the flag on, didn't know about that as it didn't make any trouble with last versions!


    Thanks again for your quick help! I was about to rename the thread but you already did :-)


    Sven

  • You're welcome ;)

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