Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:documentation:07_technical_annexes:14_php_7 [2021/05/19 13:15]
127.0.0.1 editor externo
en:documentation:07_technical_annexes:14_php_7 [2021/08/09 16:12]
jimmy.olano [php.ini]
Line 63: Line 63:
  
 === Windows === === Windows ===
-In the first place, go to the //https://windows.php.net/download/// website to download the PHP 7.2 version you need. In this case, download version **VC15 x64 Thread Safe**.+In the first place, go to the https://windows.php.net/download/ website to download the PHP 7.2 version you need. In this case, download version **VC15 x64 Thread Safe**.
  
 {{ wiki:DescargaPhp7.jpg }} {{ wiki:DescargaPhp7.jpg }}
Line 77: Line 77:
 ==== PHP 7 Update ==== ==== PHP 7 Update ====
 === CentOS === === CentOS ===
 +
 Download the epel and remi last version repositories to install: Download the epel and remi last version repositories to install:
  
Line 82: Line 83:
  # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm  # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  # yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm  # yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
 +
 </code> </code>
  
Line 87: Line 89:
  
 <code> <code>
- # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm + # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
  # yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm  # yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
-</code> 
  
-{{ wiki:Epel.png }} +</code>
-{{ wiki:Remi.png }}+
  
-Next, install **yum-utils** in case it has not been installed previously in your machine to be able to use the **yum-config-manager** command+{{  :wiki:epel.png  }}{{  :wiki:remi.png  }}
  
 +Next, install **yum-utils** in case it has not been installed previously in your machine to be able to use the **yum-config-manager** command:
 <code> <code>
  yum install yum-utils  yum install yum-utils
  yum-config-manager --enable remi-php72  yum-config-manager --enable remi-php72
 +
 </code> </code>
  
-{{ wiki:Yum_manager.png }}+{{  :wiki:yum_manager.png  }}
  
-Finally, install the php7.2 version on your system: +Finally, install the php7.2 version on your system:
  
-  yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo php-snmp php-mbstring php-pecl-zip php-xmlrpc libxslt php-xml+<code> 
 +yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo php-snmp php-mbstring php-pecl-zip php-xmlrpc libxslt php-xml 
 + 
 +</code>
  
-{{ wiki:Yum_Install_php.png }}+{{  :wiki:yum_install_php.png  }}
  
 And check the installed version And check the installed version
  
-{{ wiki:Version_7_php.png }}+{{  :wiki:version_7_php.png  }}
  
- +If some version of Pandora FMS is installed in the machine, reinstall the Pandora FMS console for its correct operation, due to the changes of the PHP version, as seen in the following [[:en:documentation:02_installation:01_installing#console_installation_2|link]].
-If some version of Pandora FMS is installed in the machine, reinstall the Pandora FMS console for its correct operation, due to the changes of the PHP version, as seen in the following [[en:documentation:02_installation:01_installing#Console_Installation_2|link]].+
  
 If you see any incompatibility notice with the Pandora FMS Console package installed, copy the rpm of version 729 into this directory or execute the following command: If you see any incompatibility notice with the Pandora FMS Console package installed, copy the rpm of version 729 into this directory or execute the following command:
 +<code>
  
-  rpm -U --force *.rpm --nodeps+rpm -U --force *.rpm --nodeps
  
 +</code>
 +
 +== php.ini ==
  
 There is also the possibility that during the upgrade process to php7, the php.ini file is affected. Here is an example of some of the data that php.ini must include: There is also the possibility that during the upgrade process to php7, the php.ini file is affected. Here is an example of some of the data that php.ini must include:
Line 132: Line 140:
 max_execution_time = 0 max_execution_time = 0
 max_input_time = -1 max_input_time = -1
-memory_limit = 500M+memory_limit = 800M
 error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_USER_WARNING error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_USER_WARNING
 log_errors = On log_errors = On
Line 155: Line 163:
 sendmail_path = /usr/sbin/sendmail -t -i sendmail_path = /usr/sbin/sendmail -t -i
 mail.add_x_header = On mail.add_x_header = On
 +
 </code> </code>
  
  
 === Windows === === Windows ===
-First, go to the website: //https://windows.php.net/download///  to download the PHP 7.2 version needed. In this case, download version **VC15 x64 Thread Safe**.+First, go to the website: https://windows.php.net/download/  to download the PHP 7.2 version needed. In this case, download version **VC15 x64 Thread Safe**.
  
 {{ wiki:DescargaPhp7.jpg }} {{ wiki:DescargaPhp7.jpg }}
Line 175: Line 184:
 After finishing this step, copy the //libsals.dll// file and replace it with the same file in the Apache folder //C:\PandoraFMS\Apache\bin//. After finishing this step, copy the //libsals.dll// file and replace it with the same file in the Apache folder //C:\PandoraFMS\Apache\bin//.
  
-The installation of **Microsoft Visual C++ 2015**: //https://www.microsoft.com/en-us/download/details.aspx?id =48145// will also be required for Pandora FMS to work properly.+The installation of **Microsoft Visual C++ 2015**: https://www.microsoft.com/en-us/download/details.aspx?id=48145 will also be required for Pandora FMS to work properly.
  
 To finish off, change the //httpd-php.conf// file,  and change the //LoadFile and LoadModule// to: To finish off, change the //httpd-php.conf// file,  and change the //LoadFile and LoadModule// to:
ºº