Skip to main content

Part 3 : How to Install Latest ICU system package for Presta 1.7.6.3 on CWP7?

In this part , We will update ICU system package but the latest package is not available in repo. So we will build it manually then we will compile php again.
# cd /home/datahead/public_html/
# php bin/symfony_requirements
# icuinfo | grep version 
# yum list available | grep libicu

How to Install Latest ICU system package for Presta 1.7.6.3 on CWP7?
# cd /usr/local/src
# wget http://download.icu-project.org/files/icu4c/64.1/icu4c-64_1-src.tgz
# tar -xvf icu4c-*.tgz
# cd icu/source/
# sed -i '/#define __UCONFIG_H__/a #define UCONFIG_ENABLE_PLUGINS 1' common/unicode/uconfig.h
# ./configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib64 --datadir=/usr/share --enable-plugins
# make -j4 && make install

# reboot

# icuinfo | grep version
Now We need to compile PHP-FPM 7.2 selected subversion: 7.2.X again.

Select everything except recode, & sqlsrv and save custom configuration. Don't use IMAP & Recode at a time Because imap (libc-client) and recode (librecode) use the same function hash_lookup().  Here memcached server also will install. It was recommended by Presta . Now click on Start Compile.
Check the log and when finished , Please reboot again
# tail -f /var/log/php-selector-rebuild.log
# reboot
Now Open the php.ini file, Change to your size, in this case we are using 4096MB, please note that post_max_size and memory_limit need to be greater than upload_max_filesize
# vi /opt/alt/php-fpm72/usr/php/php.ini 

upload_max_filesize = 4096M
post_max_size = 4146M
memory_limit = 5120M
max_input_time = 300
max_execution_time = 300

register_globals = Off
magic_quotes_gpc = Off
safe_mode = Off
safe_mode_gid = Off

short_open_tag  = Off 
allow_url_fopen = On
allow_url_include = Off
date.timezone = America/Chicago

# systemctl reload php-fpm72.service
If you have a root access, do the followings. You also can  change user.ini & php.ini file from customer panel:
# vi /home/datahead/public_html/.user.ini

upload_max_filesize = 4096M
post_max_size = 4146M
memory_limit = 5120M
max_input_time = 300
max_execution_time = 300

register_globals=Off
magic_quotes_gpc=Off
safe_mode = Off
safe_mode_gid = Off

short_open_tag  = Off 
allow_url_fopen = On
allow_url_include = Off
date.timezone = America/Chicago

magic_quotes_runtime=Off
magic_quotes_sybase=Off

display_errors=Off
expose_php=Off

session.save_path=/tmp
error_reporting=E_ALL & ~E_NOTICE & ~E_DEPRECATED
Also change the settings
# vi /home/datahead/public_html/php.ini
upload_max_filesize = 4096M
post_max_size = 4146M
memory_limit = 5120M
max_input_time = 300
max_execution_time = 300

register_globals=Off
magic_quotes_gpc=Off
safe_mode = Off
safe_mode_gid = Off

short_open_tag  = Off 
allow_url_fopen = On
allow_url_include = Off
date.timezone = America/Chicago

magic_quotes_runtime=Off
magic_quotes_sybase=Off

display_errors=Off
expose_php=Off

session.save_path="/tmp"
error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT
N.B: Here Some PHP directive has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 7.2.X. 

Now Restart webserver and reload again , PrestaShop found all the requirements .
Proceed to next step, What you see ? Yes , it is 504 Gateway Time-out


Comments