Uninstall old versions:pecl uninstall ssh2pecl uninstall raryum remove php php-cli php-xml php-common
Check OS version:cat /etc/release
Install repository infomration (for version 6.5):rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpmFor other versions see:https://webtatic.com/packages/php55/
Install packages:yum install php55w php55w-devel php55w-pecl-apcu php55w-bcmath php55w-gd php55w-mcrypt php55w-mbstring php55w-mysql php55w-pecl-memcache php55w-process php55w-tidy php55w-soap php55w-domxml
See a list of available packages:https://webtatic.com/packages/php55/
Install ssh2 repository:pecl install ssh2 channel://pecl.php.net/ssh2-0.12pecl install rar
<?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";?>
/etc/httpd/conf/httpd.conf
Fix:ServerName s1.office.1024.info
Uncomment:NameVirtualHost *:80
Add:Include /etc/httpd/conf/default.confInclude /etc/httpd/vhosts.d/*.confAt the very end of the file.
Restart apache:/etc/init.d/httpd restart
Last modification: 13.04.15 14:54