https://bugs.contribs.org/show_bug.cgi?id=10825

            Bug ID: 10825
           Summary: phpsysinfo fails if php71 or newer selected
    Classification: Contribs
           Product: SME Contribs
           Version: 9.2
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-phpsysinfo
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

you get an empty page if php71 is  selected and following errors

Nov 19 20:52:31 sacrum httpd: PHP Fatal error:  Uncaught Error: Call to
undefined method Error::singleton() in
/opt/phpsysinfo/includes/output/class.Output.inc.php:40 Stack trace: #0
/opt/phpsysinfo/includes/output/class.Webpage.inc.php(61):
Output->__construct() #1 /opt/phpsysinfo/index.php(56): Webpage->__construct()
#2 {main}   thrown in /opt/phpsysinfo/includes/output/class.Output.inc.php on
line 40
Nov 19 20:52:36 sacrum httpd: PHP Fatal error:  Uncaught Error: Call to
undefined method Error::singleton() in
/opt/phpsysinfo/includes/output/class.Output.inc.php:40 Stack trace: #0
/opt/phpsysinfo/includes/output/class.Webpage.inc.php(61):
Output->__construct() #1 /opt/phpsysinfo/index.php(56): Webpage->__construct()
#2 {main}   thrown in /opt/phpsysinfo/includes/output/class.Output.inc.php on
line 40
Nov 19 20:52:43 sacrum sshd: refused connect from roxie.barrycarlyon.co.uk
(147.135.253.139)
Nov 19 20:52:43 sacrum httpd: PHP Fatal error:  Uncaught Error: Call to
undefined method Error::singleton() in
/opt/phpsysinfo/includes/output/class.Output.inc.php:40 Stack trace: #0
/opt/phpsysinfo/includes/output/class.Webpage.inc.php(61):
Output->__construct() #1 /opt/phpsysinfo/index.php(56): Webpage->__construct()
#2 {main}   thrown in /opt/phpsysinfo/includes/output/class.Output.inc.php on
line 40




to get it working you can change # phpsysinfo
Alias /phpsysinfo /opt/phpsysinfo
<Directory /opt/phpsysinfo>
    SSLRequireSSL
    Options -Indexes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    AuthName "phpSysInfo"
    AuthBasicProvider external
    AuthType Basic
    AuthExternal pwauth
    require user admin
    Satisfy all
    AddHandler phpscl-cgi .php
    Action phpscl-cgi /phpscl-cgi/php56_REMI
#    AddType application/x-httpd-php .php .php3
#    php_flag  magic_quotes_gpc  on
#    php_flag  track_vars        on
</Directory>


and restart httpd-e-smith


fix would be to either upgrade it, or /and update the template with this
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpsysinfoAlias
change

    AddType application/x-httpd-php .php .php3
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on

to

                if  ( $php_version eq 'php70' || $php_version eq 'php71' ||
$php_version eq 'php72' || $php_version eq 'php73')
                {

                        # write the configuration
                        $OUT .= "    # use PHP56 SCL from Remi repository 
instead of the default selected PHP 7\n";
                        $OUT .= "    AddHandler phpscl-cgi .php\n";
                        $OUT .= "    Action phpscl-cgi
/phpscl-cgi/php56_REMI\n";
                }
                else
                {
                        $OUT .= "    AddType application/x-httpd-php .php
.php3\n";
                        $OUT .= "    php_flag  magic_quotes_gpc  on\n";
                        $OUT .= "    php_flag  track_vars        on\n";
                }


make use of php-fpm would be an alternative too

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to