Usually cpanel(WHM) compiles mod_rewrite by default. You can check with this:


root@server [~]# httpd -l|grep rewrite

So you must just activate it in your ‘.htaccess’ using:


RewriteEngine On

To check if mod_rewrite module is enabaled, create a new php file in your root folder of your WAMP server. Enter the following

phpinfo();

Access your created file from your browser.

Ctrl+F to open a search. Search for ‘mod_rewrite’. If it is enabled you see it as ‘Loaded Modules’

If not, open httpd.conf (Apache Config file) and look for the following line.


#LoadModule rewrite_module modules/mod_rewrite.so

remove the pound (‘#’) sign at the start and save the this file.

Restart your apache server.

Access the same php file in your browser.

search for ‘mod_rewrite’ again. You should be able to find it now.

For Plesk Servers

Log into your server via ssh as root.

Mod Rewrite is enabled by default on plesk servers. You can verify this with the following command:

 
# apachectl -M | grep rewrite

modify the vhost.conf file at /var/www/vhosts/example.com/conf/vhost.conf

 
# replace "AllowOverride None" with "AllowOverride all".

restart apache with the following command:


service httpd restart
 

Create a .htaccess containing the following and upload it to the root of your site:

 
RewriteEngine On
RewriteRule ^google.html$ http://www.google.com/ [R=301]

Going to http://www.yoursite.com/google.html should redirect you to Google.com if you have mod rewrite enabled and your syntax is correct.

For more information on Mod rewrite see the following links.

http://httpd.apache.org/docs/current/mod/mod_rewrite.html
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Try this

]# php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib

If you do not see the module – then you need to install it.

Viewing the orders in opencart admin – the following errors appear:


[Wed Apr 01 14:51:21 2015] [warn] [client 67.81.xxx.xx] mod_fcgid: read data timeout in 45 seconds, referer: https://www.domainname.com/admin/index.php?route=sale/order&token=96d6680034320729c7df84d678589324

Try to increase the timeout in the /etc/httpd/conf.d/fcgid.conf file to 90 seconds.

Disable Atomic


[root@dedicated yum.repos.d]# nano atomic.repo

# Name: Atomic Rocket Turtle RPM Repository for CentOS / Red Hat Enterprise Linux 6 -
# URL: http://www.atomicrocketturtle.com/
# Note: This isn't covered by ASL support. -Scott
[atomic]
name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com
mirrorlist = http://updates.atomicorp.com/channels/mirrorlist/atomic/centos-$releasever-$basearch
enabled = 0
priority = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
        file:///etc/pki/rpm-gpg/RPM-GPG-KEY.atomicorp.txt
gpgcheck = 1

# Almost Stable, release candidates for [atomic]
[atomic-testing]
name = CentOS / Red Hat Enterprise Linux $releasever - atomicrocketturtle.com - (Testing)
mirrorlist = http://updates.atomicorp.com/channels/mirrorlist/atomic-testing/centos-$releasever-$basearch
enabled = 0
priority = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
        file:///etc/pki/rpm-gpg/RPM-GPG-KEY.atomicorp.txt
gpgcheck = 1
gpgcheck = 1



[root@dedicated yum.repos.d]# yum downgrade php, php-*


Loaded plugins: downloadonly, fastestmirror, priorities
Setting up Downgrade Process
Loading mirror speeds from cached hostfile
 * base: centos-distro.cavecreek.net
 * extras: centos.mirror.ndchost.com
 * rpmforge: mirror.webnx.com
 * updates: mirror.us.oneandone.net
base                                                                                                                                          | 3.7 kB     00:00
extras                                                                                                                                        | 3.4 kB     00:00
rpmforge                                                                                                                                      | 1.9 kB     00:00
updates                                                                                                                                       | 3.4 kB     00:00
No package php, available.
No Match for available package: php-acid-0.9.6b22-1.2.el6.rf.noarch
No Match for available package: php-adodb-4.81-1.el6.rf.noarch
No Match for available package: php-bcmath-5.3.3-38.el6.x86_64
No Match for available package: php-dba-5.3.3-38.el6.x86_64
No Match for available package: php-embedded-5.3.3-38.el6.x86_64
No Match for available package: php-enchant-5.3.3-38.el6.x86_64
No Match for available package: php-fpm-5.3.3-38.el6.x86_64
No Match for available package: php-intl-5.3.3-38.el6.x86_64
No Match for available package: php-jpgraph-1.19-1.2.el6.rf.noarch
No Match for available package: php-jpgraph-docs-1.19-1.2.el6.rf.noarch
No Match for available package: php-ldap-5.3.3-38.el6.x86_64
No Match for available package: php-odbc-5.3.3-38.el6.x86_64
Only Upgrade available on package: 1:php-pear-1.9.4-4.el6.noarch
No Match for available package: php-pear-db-1.7.13-2.el6.rf.noarch
No Match for available package: php-pecl-apc-devel-3.1.9-2.el6.i686
No Match for available package: php-pecl-apc-devel-3.1.9-2.el6.x86_64
No Match for available package: php-pecl-fileinfo-1.0.4-2.el6.rf.x86_64
No Match for available package: php-pecl-http-1.6.5-2.el6.rf.x86_64
No Match for available package: php-pecl-mailparse-2.1.5-2.el6.rf.x86_64
No Match for available package: php-pecl-session_mysql-1.9-2.el6.rf.x86_64
No Match for available package: php-pgsql-5.3.3-38.el6.x86_64
No Match for available package: php-process-5.3.3-38.el6.x86_64
No Match for available package: php-pspell-5.3.3-38.el6.x86_64
No Match for available package: php-recode-5.3.3-1.el6.rf.x86_64
No Match for available package: php-snmp-5.3.3-38.el6.x86_64
No Match for available package: php-tidy-5.3.3-1.el6.rf.x86_64
No Match for available package: php-xcache-1.3.2-1.el6.rf.x86_64
No Match for available package: php-xmlrpc-5.3.3-38.el6.x86_64
No Match for available package: php-zts-5.3.3-38.el6.x86_64
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-cli.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-cli.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-common.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-common.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-devel.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-devel.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-gd.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-gd.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-imap.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-imap.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-mbstring.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-mbstring.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-mcrypt.x86_64 0:5.3.3-1.el6.rf will be a downgrade
---> Package php-mcrypt.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-mysql.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-mysql.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-pdo.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-pdo.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-pecl-apc.x86_64 0:3.1.9-2.el6 will be a downgrade
---> Package php-pecl-apc.x86_64 0:3.1.15-0.6.svn329913.el6.art will be erased
---> Package php-pecl-memcache.x86_64 0:3.0.5-4.el6 will be a downgrade
---> Package php-pecl-memcache.x86_64 0:3.0.8-3.el6.art will be erased
---> Package php-soap.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-soap.x86_64 0:5.4.36-42.el6.art will be erased
---> Package php-xml.x86_64 0:5.3.3-40.el6_6 will be a downgrade
---> Package php-xml.x86_64 0:5.4.36-42.el6.art will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================
 Package                                      Arch                              Version                                    Repository                           Size
=====================================================================================================================================================================
Downgrading:
 php                                          x86_64                            5.3.3-40.el6_6                             updates                             1.1 M
 php-cli                                      x86_64                            5.3.3-40.el6_6                             updates                             2.2 M
 php-common                                   x86_64                            5.3.3-40.el6_6                             updates                             527 k
 php-devel                                    x86_64                            5.3.3-40.el6_6                             updates                             511 k
 php-gd                                       x86_64                            5.3.3-40.el6_6                             updates                             109 k
 php-imap                                     x86_64                            5.3.3-40.el6_6                             updates                              53 k
 php-mbstring                                 x86_64                            5.3.3-40.el6_6                             updates                             458 k
 php-mcrypt                                   x86_64                            5.3.3-1.el6.rf                             rpmforge                             42 k
 php-mysql                                    x86_64                            5.3.3-40.el6_6                             updates                              84 k
 php-pdo                                      x86_64                            5.3.3-40.el6_6                             updates                              78 k
 php-pecl-apc                                 x86_64                            3.1.9-2.el6                                base                                 96 k
 php-pecl-memcache                            x86_64                            3.0.5-4.el6                                base                                 60 k
 php-soap                                     x86_64                            5.3.3-40.el6_6                             updates                             143 k
 php-xml                                      x86_64                            5.3.3-40.el6_6                             updates                             106 k

Transaction Summary
=====================================================================================================================================================================
Downgrade    14 Package(s)

Total download size: 5.5 M
Is this ok [y/N]: y
Downloading Packages:
(1/14): php-5.3.3-40.el6_6.x86_64.rpm                                                                                                         | 1.1 MB     00:01
(2/14): php-cli-5.3.3-40.el6_6.x86_64.rpm                                                                                                     | 2.2 MB     00:02
(3/14): php-common-5.3.3-40.el6_6.x86_64.rpm                                                                                                  | 527 kB     00:00
(4/14): php-devel-5.3.3-40.el6_6.x86_64.rpm                                                                                                   | 511 kB     00:00
(5/14): php-gd-5.3.3-40.el6_6.x86_64.rpm                                                                                                      | 109 kB     00:00
(6/14): php-imap-5.3.3-40.el6_6.x86_64.rpm                                                                                                    |  53 kB     00:00
(7/14): php-mbstring-5.3.3-40.el6_6.x86_64.rpm                                                                                                | 458 kB     00:00
(8/14): php-mcrypt-5.3.3-1.el6.rf.x86_64.rpm                                                                                                  |  42 kB     00:00
(9/14): php-mysql-5.3.3-40.el6_6.x86_64.rpm                                                                                                   |  84 kB     00:00
(10/14): php-pdo-5.3.3-40.el6_6.x86_64.rpm                                                                                                    |  78 kB     00:00
(11/14): php-pecl-apc-3.1.9-2.el6.x86_64.rpm                                                                                                  |  96 kB     00:00
(12/14): php-pecl-memcache-3.0.5-4.el6.x86_64.rpm                                                                                             |  60 kB     00:00
(13/14): php-soap-5.3.3-40.el6_6.x86_64.rpm                                                                                                   | 143 kB     00:00
(14/14): php-xml-5.3.3-40.el6_6.x86_64.rpm                                                                                                    | 106 kB     00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                501 kB/s | 5.5 MB     00:11
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-common-5.3.3-40.el6_6.x86_64                                                                                                                 1/28
warning: /etc/php.ini created as /etc/php.ini.rpmnew
  Installing : php-cli-5.3.3-40.el6_6.x86_64                                                                                                                                                    2/28
  Installing : php-5.3.3-40.el6_6.x86_64                                                                                                                                                        3/28
Moving Zend extensions from php.ini to conf.d/zend_extensions_psa.ini and disabling custom ionCube if any... Removing php.ini backup files... done
Trying to register the ionCube loader... done
  Installing : php-pdo-5.3.3-40.el6_6.x86_64                                                                                                                                                    4/28
  Installing : php-mysql-5.3.3-40.el6_6.x86_64                                                                                                                                                  5/28
  Installing : php-devel-5.3.3-40.el6_6.x86_64                                                                                                                                                  6/28
  Installing : php-imap-5.3.3-40.el6_6.x86_64                                                                                                                                                   7/28
  Installing : php-xml-5.3.3-40.el6_6.x86_64                                                                                                                                                    8/28
  Installing : php-mbstring-5.3.3-40.el6_6.x86_64                                                                                                                                               9/28
  Installing : php-pecl-apc-3.1.9-2.el6.x86_64                                                                                                                                                 10/28
  Installing : php-gd-5.3.3-40.el6_6.x86_64                                                                                                                                                    11/28
  Installing : php-mcrypt-5.3.3-1.el6.rf.x86_64                                                                                                                                                12/28
  Installing : php-soap-5.3.3-40.el6_6.x86_64                                                                                                                                                  13/28
  Installing : php-pecl-memcache-3.0.5-4.el6.x86_64                                                                                                                                            14/28
warning: /etc/php.d/memcache.ini created as /etc/php.d/memcache.ini.rpmnew
  Cleanup    : php-5.4.36-42.el6.art.x86_64                                                                                                                                                    15/28
  Cleanup    : php-devel-5.4.36-42.el6.art.x86_64                                                                                                                                              16/28
  Cleanup    : php-cli-5.4.36-42.el6.art.x86_64                                                                                                                                                17/28
  Cleanup    : php-gd-5.4.36-42.el6.art.x86_64                                                                                                                                                 18/28
  Cleanup    : php-mbstring-5.4.36-42.el6.art.x86_64                                                                                                                                           19/28
  Cleanup    : php-soap-5.4.36-42.el6.art.x86_64                                                                                                                                               20/28
  Cleanup    : php-xml-5.4.36-42.el6.art.x86_64                                                                                                                                                21/28
  Cleanup    : php-mysql-5.4.36-42.el6.art.x86_64                                                                                                                                              22/28
  Cleanup    : php-pdo-5.4.36-42.el6.art.x86_64                                                                                                                                                23/28
  Cleanup    : php-mcrypt-5.4.36-42.el6.art.x86_64                                                                                                                                             24/28
  Cleanup    : php-imap-5.4.36-42.el6.art.x86_64                                                                                                                                               25/28
  Cleanup    : php-common-5.4.36-42.el6.art.x86_64                                                                                                                                             26/28
  Cleanup    : php-pecl-memcache-3.0.8-3.el6.art.x86_64                                                                                                                                        27/28
  Cleanup    : php-pecl-apc-3.1.15-0.6.svn329913.el6.art.x86_64                                                                                                                                28/28
  Verifying  : php-imap-5.3.3-40.el6_6.x86_64                                                                                                                                                   1/28
  Verifying  : php-cli-5.3.3-40.el6_6.x86_64                                                                                                                                                    2/28
  Verifying  : php-5.3.3-40.el6_6.x86_64                                                                                                                                                        3/28
  Verifying  : php-common-5.3.3-40.el6_6.x86_64                                                                                                                                                 4/28
  Verifying  : php-pdo-5.3.3-40.el6_6.x86_64                                                                                                                                                    5/28
  Verifying  : php-xml-5.3.3-40.el6_6.x86_64                                                                                                                                                    6/28
  Verifying  : php-mbstring-5.3.3-40.el6_6.x86_64                                                                                                                                               7/28
  Verifying  : php-mysql-5.3.3-40.el6_6.x86_64                                                                                                                                                  8/28
  Verifying  : php-pecl-apc-3.1.9-2.el6.x86_64                                                                                                                                                  9/28
  Verifying  : php-gd-5.3.3-40.el6_6.x86_64                                                                                                                                                    10/28
  Verifying  : php-devel-5.3.3-40.el6_6.x86_64                                                                                                                                                 11/28
  Verifying  : php-mcrypt-5.3.3-1.el6.rf.x86_64                                                                                                                                                12/28
  Verifying  : php-soap-5.3.3-40.el6_6.x86_64                                                                                                                                                  13/28
  Verifying  : php-pecl-memcache-3.0.5-4.el6.x86_64                                                                                                                                            14/28
  Verifying  : php-imap-5.4.36-42.el6.art.x86_64                                                                                                                                               15/28
  Verifying  : php-mcrypt-5.4.36-42.el6.art.x86_64                                                                                                                                             16/28
  Verifying  : php-pecl-apc-3.1.15-0.6.svn329913.el6.art.x86_64                                                                                                                                17/28
  Verifying  : php-mysql-5.4.36-42.el6.art.x86_64                                                                                                                                              18/28
  Verifying  : php-xml-5.4.36-42.el6.art.x86_64                                                                                                                                                19/28
  Verifying  : php-soap-5.4.36-42.el6.art.x86_64                                                                                                                                               20/28
  Verifying  : php-pecl-memcache-3.0.8-3.el6.art.x86_64                                                                                                                                        21/28
  Verifying  : php-5.4.36-42.el6.art.x86_64                                                                                                                                                    22/28
  Verifying  : php-gd-5.4.36-42.el6.art.x86_64                                                                                                                                                 23/28
  Verifying  : php-cli-5.4.36-42.el6.art.x86_64                                                                                                                                                24/28
  Verifying  : php-pdo-5.4.36-42.el6.art.x86_64                                                                                                                                                25/28
  Verifying  : php-common-5.4.36-42.el6.art.x86_64                                                                                                                                             26/28
  Verifying  : php-mbstring-5.4.36-42.el6.art.x86_64                                                                                                                                           27/28
  Verifying  : php-devel-5.4.36-42.el6.art.x86_64                                                                                                                                              28/28

Removed:
  php.x86_64 0:5.4.36-42.el6.art              php-cli.x86_64 0:5.4.36-42.el6.art         php-common.x86_64 0:5.4.36-42.el6.art                     php-devel.x86_64 0:5.4.36-42.el6.art
  php-gd.x86_64 0:5.4.36-42.el6.art           php-imap.x86_64 0:5.4.36-42.el6.art        php-mbstring.x86_64 0:5.4.36-42.el6.art                   php-mcrypt.x86_64 0:5.4.36-42.el6.art
  php-mysql.x86_64 0:5.4.36-42.el6.art        php-pdo.x86_64 0:5.4.36-42.el6.art         php-pecl-apc.x86_64 0:3.1.15-0.6.svn329913.el6.art        php-pecl-memcache.x86_64 0:3.0.8-3.el6.art
  php-soap.x86_64 0:5.4.36-42.el6.art         php-xml.x86_64 0:5.4.36-42.el6.art

Installed:
  php.x86_64 0:5.3.3-40.el6_6           php-cli.x86_64 0:5.3.3-40.el6_6            php-common.x86_64 0:5.3.3-40.el6_6     php-devel.x86_64 0:5.3.3-40.el6_6     php-gd.x86_64 0:5.3.3-40.el6_6
  php-imap.x86_64 0:5.3.3-40.el6_6      php-mbstring.x86_64 0:5.3.3-40.el6_6       php-mcrypt.x86_64 0:5.3.3-1.el6.rf     php-mysql.x86_64 0:5.3.3-40.el6_6     php-pdo.x86_64 0:5.3.3-40.el6_6
  php-pecl-apc.x86_64 0:3.1.9-2.el6     php-pecl-memcache.x86_64 0:3.0.5-4.el6     php-soap.x86_64 0:5.3.3-40.el6_6       php-xml.x86_64 0:5.3.3-40.el6_6

Complete!

Chech the version of php

[root@dedicated ~]# php -v
PHP 5.3.3 (cli) (built: Oct 30 2014 20:12:53)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.6.0, Copyright (c) 2002-2014, by ionCube Ltd.

Install access to the Atomic repo with this command:

[root@dedicated yum.repos.d]# wget -q -O - http://www.atomicorp.com/installers/atomic | sh

Atomic Free Unsupported Archive installer, version 2.0.13

BY INSTALLING THIS SOFTWARE AND BY USING ANY AND ALL SOFTWARE
PROVIDED BY ATOMICORP LIMITED YOU ACKNOWLEDGE AND AGREE:

THIS SOFTWARE AND ALL SOFTWARE PROVIDED IN THIS REPOSITORY IS
PROVIDED BY ATOMICORP LIMITED AS IS, IS UNSUPPORTED AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ATOMICORP LIMITED, THE
COPYRIGHT OWNER OR ANY CONTRIBUTOR TO ANY AND ALL SOFTWARE PROVIDED
BY OR PUBLISHED IN THIS REPOSITORY BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.

====================================================================
THIS SOFTWARE IS UNSUPPORTED.  IF YOU REQUIRE SUPPORTED SOFWARE
PLEASE SEE THE URL BELOW TO PURCHASE A NUCLEUS LICENSE AND DO NOT
PROCEED WITH INSTALLING THIS PACKAGE.
====================================================================

For supported software packages please purchase a Nucleus license:
https://www.atomicorp.com/products/nucleus.html
All atomic repository rpms are UNSUPPORTED.
Do you agree to these terms? (yes/no) [Default: yes] yes

Configuring the [atomic] yum archive for this system

Installing the Atomic GPG key: OK
Downloading atomic-release-1.0-19.el6.art.noarch.rpm: OK



The Atomic Rocket Turtle archive has now been installed and configured for your system
The following channels are available:
  atomic          - [ACTIVATED] - contains the stable tree of ART packages
  atomic-testing  - [DISABLED]  - contains the testing tree of ART packages
  atomic-bleeding - [DISABLED]  - contains the development tree of ART packages

[root@dedicated yum.repos.d]# yum update php
Loaded plugins: downloadonly, fastestmirror, priorities
Setting up Update Process
Loading mirror speeds from cached hostfile
 * atomic: www8.atomicorp.com
 * base: mirror.keystealth.org
 * extras: centos-distro.cavecreek.net
 * rpmforge: mirror.webnx.com
 * updates: mirrors.easynews.com
340 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.3.3-40.el6_6 will be updated
--> Processing Dependency: php(x86-64) = 5.3.3-40.el6_6 for package: php-devel-5.3.3-40.el6_6.x86_64
---> Package php.x86_64 0:5.4.36-42.el6.art will be an update
--> Processing Dependency: php-common(x86-64) = 5.4.36-42.el6.art for package: php-5.4.36-42.el6.art.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.4.36-42.el6.art for package: php-5.4.36-42.el6.art.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-cli.x86_64 0:5.4.36-42.el6.art will be an update
---> Package php-common.x86_64 0:5.3.3-40.el6_6 will be updated
--> Processing Dependency: php(api) = 20090626 for package: php-pecl-memcache-3.0.5-4.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-pecl-memcache-3.0.5-4.el6.x86_64
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-3.el6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-mysql-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-soap-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-gd-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-xml-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-imap-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-mbstring-5.3.3-40.el6_6.x86_64
--> Processing Dependency: php-common(x86-64) = 5.3.3-40.el6_6 for package: php-pdo-5.3.3-40.el6_6.x86_64
---> Package php-common.x86_64 0:5.4.36-42.el6.art will be an update
---> Package php-devel.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-devel.x86_64 0:5.4.36-42.el6.art will be an update
--> Running transaction check
---> Package php-gd.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-gd.x86_64 0:5.4.36-42.el6.art will be an update
---> Package php-imap.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-imap.x86_64 0:5.4.36-42.el6.art will be an update
---> Package php-mbstring.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-mbstring.x86_64 0:5.4.36-42.el6.art will be an update
---> Package php-mcrypt.x86_64 0:5.3.3-3.el6 will be updated
---> Package php-mcrypt.x86_64 0:5.4.36-42.el6.art will be an update
---> Package php-mysql.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-mysql.x86_64 0:5.4.36-42.el6.art will be an update
---> Package php-pdo.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-pdo.x86_64 0:5.4.36-42.el6.art will be an update
---> Package php-pecl-memcache.x86_64 0:3.0.5-4.el6 will be updated
---> Package php-pecl-memcache.x86_64 0:3.0.8-3.el6.art will be an update
---> Package php-soap.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-soap.x86_64 0:5.4.36-42.el6.art will be an update
---> Package php-xml.x86_64 0:5.3.3-40.el6_6 will be updated
---> Package php-xml.x86_64 0:5.4.36-42.el6.art will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================
 Package                            Arch                    Version                            Repository               Size
=============================================================================================================================
Updating:
 php                                x86_64                  5.4.36-42.el6.art                  atomic                  2.7 M
Updating for dependencies:
 php-cli                            x86_64                  5.4.36-42.el6.art                  atomic                  2.6 M
 php-common                         x86_64                  5.4.36-42.el6.art                  atomic                  934 k
 php-devel                          x86_64                  5.4.36-42.el6.art                  atomic                  2.5 M
 php-gd                             x86_64                  5.4.36-42.el6.art                  atomic                  144 k
 php-imap                           x86_64                  5.4.36-42.el6.art                  atomic                   80 k
 php-mbstring                       x86_64                  5.4.36-42.el6.art                  atomic                  945 k
 php-mcrypt                         x86_64                  5.4.36-42.el6.art                  atomic                   51 k
 php-mysql                          x86_64                  5.4.36-42.el6.art                  atomic                  136 k
 php-pdo                            x86_64                  5.4.36-42.el6.art                  atomic                  121 k
 php-pecl-memcache                  x86_64                  3.0.8-3.el6.art                    atomic                   83 k
 php-soap                           x86_64                  5.4.36-42.el6.art                  atomic                  222 k
 php-xml                            x86_64                  5.4.36-42.el6.art                  atomic                  171 k

Transaction Summary
=============================================================================================================================
Upgrade      13 Package(s)

Total size: 11 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID 4520afa9: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY.atomicorp.txt
Importing GPG key 0x4520AFA9:
 Userid : Atomicorp (Atomicorp Official Signing Key) <support@atomicorp.com>
 Package: atomic-release-1.0-19.el6.art.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY.atomicorp.txt
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Updating   : php-common-5.4.36-42.el6.art.x86_64                                                                      1/26
warning: /etc/php.ini created as /etc/php.ini.rpmnew
  Updating   : php-cli-5.4.36-42.el6.art.x86_64                                                                         2/26
  Updating   : php-pdo-5.4.36-42.el6.art.x86_64                                                                         3/26
  Updating   : php-mysql-5.4.36-42.el6.art.x86_64                                                                       4/26
  Updating   : php-5.4.36-42.el6.art.x86_64                                                                             5/26
Moving Zend extensions from php.ini to conf.d/zend_extensions_psa.ini and disabling custom ionCube if any... Removing php.ini                                                                         backup files... done
Trying to register the ionCube loader... done
  Updating   : php-devel-5.4.36-42.el6.art.x86_64                                                                       6/26
  Updating   : php-imap-5.4.36-42.el6.art.x86_64                                                                        7/26
  Updating   : php-mcrypt-5.4.36-42.el6.art.x86_64                                                                      8/26
  Updating   : php-xml-5.4.36-42.el6.art.x86_64                                                                         9/26
  Updating   : php-soap-5.4.36-42.el6.art.x86_64                                                                       10/26
  Updating   : php-gd-5.4.36-42.el6.art.x86_64                                                                         11/26
  Updating   : php-mbstring-5.4.36-42.el6.art.x86_64                                                                   12/26
  Updating   : php-pecl-memcache-3.0.8-3.el6.art.x86_64                                                                13/26
warning: /etc/php.d/memcache.ini created as /etc/php.d/memcache.ini.rpmnew
  Cleanup    : php-mysql-5.3.3-40.el6_6.x86_64                                                                         14/26
  Cleanup    : php-devel-5.3.3-40.el6_6.x86_64                                                                         15/26
  Cleanup    : php-5.3.3-40.el6_6.x86_64                                                                               16/26
  Cleanup    : php-cli-5.3.3-40.el6_6.x86_64                                                                           17/26
  Cleanup    : php-pdo-5.3.3-40.el6_6.x86_64                                                                           18/26
  Cleanup    : php-mbstring-5.3.3-40.el6_6.x86_64                                                                      19/26
  Cleanup    : php-gd-5.3.3-40.el6_6.x86_64                                                                            20/26
  Cleanup    : php-pecl-memcache-3.0.5-4.el6.x86_64                                                                    21/26
  Cleanup    : php-soap-5.3.3-40.el6_6.x86_64                                                                          22/26
  Cleanup    : php-xml-5.3.3-40.el6_6.x86_64                                                                           23/26
  Cleanup    : php-mcrypt-5.3.3-3.el6.x86_64                                                                           24/26
  Cleanup    : php-imap-5.3.3-40.el6_6.x86_64                                                                          25/26
  Cleanup    : php-common-5.3.3-40.el6_6.x86_64                                                                        26/26
  Verifying  : php-imap-5.4.36-42.el6.art.x86_64                                                                        1/26
  Verifying  : php-pdo-5.4.36-42.el6.art.x86_64                                                                         2/26
  Verifying  : php-mcrypt-5.4.36-42.el6.art.x86_64                                                                      3/26
  Verifying  : php-mysql-5.4.36-42.el6.art.x86_64                                                                       4/26
  Verifying  : php-xml-5.4.36-42.el6.art.x86_64                                                                         5/26
  Verifying  : php-soap-5.4.36-42.el6.art.x86_64                                                                        6/26
  Verifying  : php-pecl-memcache-3.0.8-3.el6.art.x86_64                                                                 7/26
  Verifying  : php-5.4.36-42.el6.art.x86_64                                                                             8/26
  Verifying  : php-gd-5.4.36-42.el6.art.x86_64                                                                          9/26
  Verifying  : php-cli-5.4.36-42.el6.art.x86_64                                                                        10/26
  Verifying  : php-mbstring-5.4.36-42.el6.art.x86_64                                                                   11/26
  Verifying  : php-common-5.4.36-42.el6.art.x86_64                                                                     12/26
  Verifying  : php-devel-5.4.36-42.el6.art.x86_64                                                                      13/26
  Verifying  : php-imap-5.3.3-40.el6_6.x86_64                                                                          14/26
  Verifying  : php-cli-5.3.3-40.el6_6.x86_64                                                                           15/26
  Verifying  : php-5.3.3-40.el6_6.x86_64                                                                               16/26
  Verifying  : php-common-5.3.3-40.el6_6.x86_64                                                                        17/26
  Verifying  : php-mbstring-5.3.3-40.el6_6.x86_64                                                                      18/26
  Verifying  : php-xml-5.3.3-40.el6_6.x86_64                                                                           19/26
  Verifying  : php-pdo-5.3.3-40.el6_6.x86_64                                                                           20/26
  Verifying  : php-mysql-5.3.3-40.el6_6.x86_64                                                                         21/26
  Verifying  : php-gd-5.3.3-40.el6_6.x86_64                                                                            22/26
  Verifying  : php-devel-5.3.3-40.el6_6.x86_64                                                                         23/26
  Verifying  : php-soap-5.3.3-40.el6_6.x86_64                                                                          24/26
  Verifying  : php-mcrypt-5.3.3-3.el6.x86_64                                                                           25/26
  Verifying  : php-pecl-memcache-3.0.5-4.el6.x86_64                                                                    26/26

Updated:
  php.x86_64 0:5.4.36-42.el6.art

Dependency Updated:
  php-cli.x86_64 0:5.4.36-42.el6.art          php-common.x86_64 0:5.4.36-42.el6.art  php-devel.x86_64 0:5.4.36-42.el6.art
  php-gd.x86_64 0:5.4.36-42.el6.art           php-imap.x86_64 0:5.4.36-42.el6.art    php-mbstring.x86_64 0:5.4.36-42.el6.art
  php-mcrypt.x86_64 0:5.4.36-42.el6.art       php-mysql.x86_64 0:5.4.36-42.el6.art   php-pdo.x86_64 0:5.4.36-42.el6.art
  php-pecl-memcache.x86_64 0:3.0.8-3.el6.art  php-soap.x86_64 0:5.4.36-42.el6.art    php-xml.x86_64 0:5.4.36-42.el6.art

Complete!
[root@dedicated yum.repos.d]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: pcre_exec in Unknown on line 0
PHP 5.4.36 (cli) (built: Dec 22 2014 16:06:29)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.6.0, Copyright (c) 2002-2014, by ionCube Ltd.

[root@dedicated yum.repos.d]# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' - /usr/lib64/php/modules/apc.so: undefined symbol: pcre_exec in Unknown on line 0
PHP 5.4.36 (cli) (built: Dec 22 2014 16:06:29)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.6.0, Copyright (c) 2002-2014, by ionCube Ltd.

PEAR – PHP Extension and Application Repository, PEAR is a framework and distribution system for reusable PHP components.
The mail() function is using for sending emails from a php script. This is the most simplest way to send emails from a server and also its not secure process.

The mail sending scripts will shows some errors/warning while sending emails due to the absence of mail function[mail()].

Solution:
Step 1: Check PhPear is already installed or not

# rpm -qa|grep php-pear
#

If it is not installed on the server, please install it by executing the foillowing command from the command line;

# yum install php-pear
# rpm -qa|grep php-pear
php-pear-1.4.9-8.el5

Step 2: Install Php-mail extension by executing the following command;

# pear install Mail

Step 3: Restart webserver

# service httpd restart

Check

# yum install libmemcached libmemcached-devel
# pecl install memcached
libmemcached directory [no]:

checking whether libmemcached supports sasl… no
configure: error: no, libmemcached sasl support is not enabled. Run configure with –disable-memcached-sasl to disable this check
ERROR: `/tmp/pear/temp/memcached/configure –with-libmemcached-dir=no’ failed

yum install cyrus-sasl-devel

# cd /usr/local/src
# wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
# tar -zxvf libmemcached-1.0.18.tar.gz
# cd libmemcached-1.0.18
# ./configure
# make
# make install

# pecl install memcached

Memcached (Memcache Daemon) is a caching daemon designed especially for dynamic web applications to decrease database load by storing objects in memory. It is commonly used to speed up dynamic database-driven websites by caching data and objects in server memory to reduce the number of times the data source must be read. Memcached is free and open-source software, licensed under the Revised BSD license. Also, there are PHP extensions which allow you to work with memcached. There are two PHP memcache extensions available from the PHP Extension Community Library, PHP memcached and PHP memcache.

PHP Memcache vs PHP Memcached

These two PHP extensions are not identical. PHP Memcache is older, very stable but has a few limitations. The PHP memcache module utilizes the daemon directly while the PHP memcached module uses the libMemcached client library and also contains some added features.

Installing Memcache Daemon + PHP memcache or PHP memcached

Before selecting a PHP extension be sure to install the memcache daemon.

How-To: Install Memcache on CentOS (WHM/cPanel)

    1. Login into your WHM panel and using easyapache to enable Memcache

Go to Software – Module Installers – PHP Pecl. Search for memcache and then install both memcache and memcached
Restart apache:

# service httpd restart

Check your memcached server is running successfully: ps -eaf | grep memcached

Installing Memcache Daemon + PHP memcache or PHP memcached on CentOS or Ubuntu

Before selecting a PHP extension be sure to install the memcache daemon:

Centos / Red Hat:


# yum install memcached

Ubuntu/ Debian:


# apt-get update
# apt-get install memcached

After installing Memcached, open the configuration file for Memcached and make any changes:

Centos / Red Hat:


# nano /etc/sysconfig/memcached

Ubuntu / Debian:


# nano /etc/memcached.conf

Exit and save the configuration file, and then restart Memcached


# service memcached restart

Remember to set the memcache daemon to start on server boot.
Centos / Red Hat:


# chkconfig memcached on

Ubuntu / Debian:


# update-rc.d memcached enable

Install a PHP memcache extension

PHP memcache

You can browse the version here – https://pecl.php.net/package/memcache The current version as of this writing is 3.0.8


wget https://pecl.php.net/get/memcache-3.0.8.tgz
tar xvf memcache-3.0.8.tgz
cd memcache-3.0.8
phpize
./configure
make 
make install
make test
Then add memcache.so to your php.ini file:

# nano /etc/php.ini
extension="memcache.so"

PHP memcached:

Remember to install libmemcached dependancy (Ubuntu/Debian):


yum install cyrus-sasl-devel zlib-devel gcc-c++
wget https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz
tar -xvf libmemcached-1.0.16.tar.gz
cd libmemcached-1.0.16
./configure --disable-memcached-sasl
make
make install

Then install PHP Memcached:

wget https://pecl.php.net/get/memcached-3.0.8.tgz
tar xf memcached-3.0.8.tgz
cd memcached-3.0.8
phpize
./configure
make 
make install
make test

Then add memcached.so to your php.ini file:


extension="memcached.so"

You will need to connect your PHP application to memcached. For example, using W3 Total Cache with WordPress, memcached module with Drupal, Magento config, etc.

Finally restart memcached, httpd (or apache, apache2 for Ubuntu/Debian)

If you would like to view stats of hit rate etc you can download memcachephp stats at GitHub – HERE. Which will look something like this:

Installation
OpCache is compiled by default on PHP5.5+. However it is disabled by default. In order to start using OpCache in PHP5.5+ you will first have to enable it. To do this you would have to do the following.

Add the following line to your php.ini:


# zend_extension=/full/path/to/opcache.so (nix)
# zend_extension=C:\path\to\php_opcache.dll (win)

Note that when the path contains spaces you should wrap it in quotes:


# zend_extension="C:\Program Files\PHP5.5\ext\php_opcache.dll"

Also note that you will have to use the zend_extension directive instead of the “normal” extension directive because it affects the actual Zend engine (i.e. the thing that runs PHP).

Usage
Currently there are four functions which you can use:

opcache_get_configuration():

Returns an array containing the currently used configuration OpCache uses. This includes all ini settings as well as version information and blacklisted files.

var_dump(opcache_get_configuration());
opcache_get_status():

This will return an array with information about the current status of the cache. This information will include things like: the state the cache is in (enabled, restarting, full etc), the memory usage, hits, misses and some more useful information. It will also contain the cached scripts.

var_dump(opcache_get_status());
opcache_reset():

Resets the entire cache. Meaning all possible cached scripts will be parsed again on the next visit.

opcache_reset();
opcache_invalidate():

Invalidates a specific cached script. Meaning the script will be parsed again on the next visit.

opcache_invalidate(‘/path/to/script/to/invalidate.php’, true);