Remove old version of PHP:yum remove php httpd php-cli php-xml php-common httpd-tools
Update everything:yum update
Install PHP 5.5 and packages:yum install php55 php55-opcache php55-pecl-apcu php55-bcmath php55-gd php55-mcrypt php55-mbstring php55-mysqlnd php55-pecl-memcache php55-process php55-tidy php55-soap php55-pecl-ssh2
See a list of available packages:https://webtatic.com/packages/php55/
/etc/httpd/conf/httpd.confAdd:Include /etc/httpd/conf/default.confInclude /etc/httpd/vhosts.d/*.confAt the very end of the file.
/etc/php-5.5.d/apcu.iniapc.shm_size=256Mapc.entries_hint=10000
/etc/php-5.5.d/opcache.iniopcache.memory_consumption=256Mopcache.max_accelerated_files=10000opcache.validate_timestamps=0
<?php if($_SERVER['REMOTE_ADDR']!=='127.0.0.1'){ echo 'Invalid remote host: '.$_SERVER['REMOTE_ADDR']."\n"; exit;}if(function_exists('apc_clear_cache')){ apc_clear_cache(); apc_clear_cache('user');}if(function_exists('opcache_reset')) opcache_reset();echo "ok\n";?>
yum install mod24_ssl
/etc/httpd/conf.d/ssl.conf.rpmsaverename to ssl.conf
Change ssl.conf:SSLProtocol all -SSLv2 -SSLv3
RemoveSSLMutexSSLCertificateChainFile
Add content of a file pointed by SSLCertificateChainFile at the end of file pointed by SSLCertificateFile
Restart apache
Check if certificate is installed correctly
Last modification: 30.04.15 08:47