Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Alex6

Pages: [1]
1
PHP Selector / Re: php selector error 500
« on: January 15, 2024, 05:36:55 PM »
Fixed my problem. My '/usr/local/etc/suphp.conf' file was missing the line for the php74 handler. Just had to add it & restart apache:

Code: [Select]
application/x-httpd-php74="php:/opt/alt/php74/usr/bin/php-cgi"
I think /scripts/cpanel_addhandlers is supposed to add this, but the code appears to be missing for php74 on my server
Code: [Select]
        if [[ -z `grep x-httpd-php73 /usr/local/etc/suphp.conf` ]];then
                echo "application/x-httpd-php73=\"php:/opt/alt/php73/usr/bin/php-cgi\"" >> /usr/local/etc/suphp.conf
        fi

        if [[ -z `grep x-httpd-php80 /usr/local/etc/suphp.conf` ]];then
                echo "application/x-httpd-php80=\"php:/opt/alt/php80/usr/bin/php-cgi\"" >> /usr/local/etc/suphp.conf
        fi

Thank you, it solved my problem !
Execute /scripts/cpanel_addhandlers changed nothing, but add these lines in usr/local/etc/suphp.conf works (PHP 7.3 => PHP 7.4)

Pages: [1]