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.