Skip to main content

PHP

This FAQ page collects operational notes for PHP.

I have upgraded PHP to version 5.x/7.x but now my Admin/Settings is no more working

The Admin/Settings page and few others include the Ivona library and you need to upgrade the requirements, based on your php version. Please move in that directory and then update using composer:

cd /var/www/html/pbx/libs/IvonaSpeechCloudSdkPhp
php composer.phar update

When executing some function, I get a 504 Gateway Timeout

Please set or increase the

ProxyTimeout 300

in /etc/httpd/conf.d/php.conf

and reload the apache with

service httpd reload

How can I enable APCu caching to speed up translations in the web pages?

It depends by your php version. You can check the php version you are running using:

php -v

and then install the correct version:

php54-php-pecl-apcu.x86_64
php55-php-pecl-apcu.x86_64
php56-php-pecl-apcu.x86_64
php70-php-pecl-apcu.x86_64
php71-php-pecl-apcu.x86_64
php72-php-pecl-apcu.x86_64
php73-php-pecl-apcu.x86_64
php74-php-pecl-apcu.x86_64
php80-php-pecl-apcu.x86_64
php81-php-pecl-apcu.x86_64
php82-php-pecl-apcu.x86_64
php83-php-pecl-apcu.x86_64
php84-php-pecl-apcu.x86_64 
php85-php-pecl-apcu.x86_64