WANrestapi on CentOS 6
- Remove the old version of PHP. This will also remove the WANconsole package because it`s a PHP dependency. No data or configurations will be lost. The WANconsole package will be later installed.
yum remove php*
- Install the EPEL repository configuration package
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
- Install the Remi repository configuration package
yum install http://rpms.remirepo.net/enterprise/remi-release-6.rpm
- Install the yum-utils package
yum install yum-utils
- Enable the Remi repository
yum-config-manager --enable remi-php72
- Update
yum update
- Install PHP 7.x
yum install php php-pecl-mysql php-cli php-common php-gd php-ldap php-mbstring php-mysql php-pdo php-pear php-pecl-radius php-process php-snmp php-xml
- Install the Wanguard Console
yum install WANconsole
- Update the php configuration file
nano /etc/php.ini
add: zend_extension=/opt/andrisoft/webroot/ixed/ixed.7.2.lin - Restart PHP
systemctl restart httpd
- Check PHP version
php -v
If you upgraded to PHP 7.2 the output should be: PHP 7.2.18 (cli) (built: Apr 30 2019 15:44:37) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with SourceGuardian v11.2, Copyright (c) 2000-2018, by SourceGuardian Ltd. You might receive the message below after executing php -v. Failed loading /opt/andrisoft/webroot/ixed/ixed.5.3.lin: /opt/andrisoft/webroot/ixed/ixed.5.3.lin: undefined symbol: _zend_hash_index_update_or_next_insert The message can be ignored. If you replace /opt/andrisoft/webroot/ixed/ixed.5.3.lin with /opt/andrisoft/webroot/ixed/ixed.[new version of PHP].lin. in /etc/php.d/andrisoft.ini the message will no longer be displayed. Please note that the contents of andrisoft.ini gets reseted to /opt/andrisoft/webroot/ixed/ixed.5.3.lin at every Wanguard upgrade. - Install the WANrestapi package
yum install WANrestapi
Author
Andrisoft Team
Andrisoft Team
Date Created
2019-04-26 05:52:46
2019-04-26 05:52:46
Date Updated
2019-05-09 08:48:49
2019-05-09 08:48:49
Views
6516
6516