Installing php-mysql on the SQL node in the cluster prompts a conflict.

Source: Internet
Author: User
Tags apc apc module

In mysql-cluster, if you want to upgrade an SQL node to a Web server, you need to install php and php extension modules for mysql on the node, but there will be conflicts.

The command to install php is: # php53 will install the dependency package by default: php53-cli, php53-common


The command to install the mysql extension is: # php53-mysql at this time there will be a conflict, if the form of forced installation will affect the use and no test;

View the installation directory on a machine that has configured the extension module (not an SQL node in the cluster:


# Rpm-ql php53-mysql-5.3.3-13.el5_8.


Prompt result:

/Etc/php. d/mysql. ini
/Etc/php. d/mysqli. ini
/Etc/php. d/pdo_mysql.ini
/Usr/lib64/php/modules/mysql. so
/Usr/lib64/php/modules/mysqli. so
/Usr/lib64/php/modules/pdo_mysql.so

Only a few related files. If you copy these files to the corresponding directory of the SQL node in the cluster, this function can be used.

# Rpm-ql php53-5.3.3-13.el5_8.
/Etc/httpd/conf. d/php. conf
/Usr/lib64/httpd/modules/libphp5.so
/Var/lib/php/session
/Var/www/icons/php.gif


If you want to use mysql extension on an SQL node in a Linux cluster environment, try the following methods:

# Cd/etc/# mkdir php. d # cd php. d # vi apc. ini. rpmsave


Enter the following content in the apc. ini. rpmsave file:

; Enable apc extension module
Extension = apc. so
; Options for the apc module
Apc. enabled = 1
Apc. shm_segments = 1
Apc. optimization = 0
Apc. shm_size = 512
Apc. ttl = 7200
Apc. user_ttl = 7200
Apc. num_files_hint = 1024
Apc. mmap_file_mask =/tmp/apc. XXXXXX
Apc. enable_cli = 1
Apc. cache_by_default = 1;


Copy mysql. ini, mysqli. ini, pdo. ini, pdo_mysql.ini, mysql. so, mysqli. so, pdo. so, pdo_mysql.so, and apc. so to the corresponding directory.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.