Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Database \ php for Linux the MySQL extension module installation and configuration     - How to install Zephyr Test Management Tools on CentOS 7.x (Server)

- Java object serialization (Programming)

- CentOS7 complete step to install Hadoop2.7 (Server)

- Mount and unloading disks under Linux (Linux)

- Install Rubinius testing Ubuntu 14.04 native threads (Linux)

- Linux systems use IP masquerading anti-hacker (Linux)

- Android 4.2 compilation notes (Programming)

- ORA-12154: TNS: could not resolve the connect identifier specified solve (Database)

- Not safe procedure under Linux (Linux)

- Protect against network attacks using Linux system firewall (Linux)

- CentOS7 Kubernetes used on container management (Server)

- Using Lua implement various operations list (Programming)

- Linux Getting Started Tutorial: Ubuntu laptop screen brightness adjustment (Linux)

- Design and implementation of environment sniffer running under Linux (Linux)

- Gentoo: startx problem appears Failed to load module (Linux)

- 15 things to do after installing Ubuntu 15.04 Desktop (Linux)

- CentOS 6/7 Series Docker Installation (Linux)

- Linux user opens a number of adjustment processes (Linux)

- To install HDRMerge 0.4.3 under ubuntu (Linux)

- Java Network Programming Internet address lookup (Programming)

  php for Linux the MySQL extension module installation and configuration
  Add Date : 2018-11-21      
  Install PHP extensions, too many people have written, and casually Baidu, Google look, you can find a variety of PHP extension installation methods, and today I want to write is not in the case of local installation msyql application, how to install the configuration php mysql extension. Let me talk about why there is such a demand for it, this can be said VPS, cloud hosting that is the hottest start of the year, many small companies and individuals are buying large cloud hosting, cloud database and so on. When our website or application, that is, when using RDS Ali cloud cloud databases, cloud hosting is that we do not need to install mysql, because we have to do a distributed system architecture, each server that is only running a special application. Well, I said so much, let's start the installation and configuration of PHP mysql extension bar.

First, download or upload php program
wget http://cn2.php.net/distributions/php-5.5.26.tar.gz
tar xzvf php-5.5.26.tar.gz
cd php-5.5.26 / ext / mysql /
In fact, we have already installed PHP before, and go directly to the appropriate path to your source code can be stored;

Second, prepare the environment
Before the formal installation, we need to install mysql header files, or the configuration (configure) when being given;
yum -y install mysql-devel

NOTE: If a 64-bit operating system, it also needs to be a soft link, or in the configuration (configure) when being given not find lib file, namely:
ln -s / usr / lib64 / mysql / usr / lib / mysql

Third, the installation
Since I previously installed php source code is on the root directory, php installed to / usr / local / php so:

cd /root/php-5.5.26/ext/mysql
/ Usr / local / php / bin / phpize
./configure --with-php-config = / usr / local / php / bin / php-config --with-mysql = / usr
make install

Fourth, the configuration
When installation is complete, the system will prompt the relevant path extension files stored in your newly installed, we simply edit your php.ini file, add the following to the next:

extension = mysql.so

The final restart to take effect php-fpm and nginx or apache to serve;
- 10 Linux in the passwd command examples (Linux)
- GitHub multiplayer co-development configuration (Linux)
- How to use Java to read OpenOffice document (Programming)
- Go build the locale under Windows (Linux)
- PHP interview questions of design patterns (Programming)
- Using Ruby to build a simple HTTP service and sass environment (Server)
- Lucene Getting Started Tutorial (Server)
- Linux platform Oracle MySQL connection (Database)
- Oracle 11G using DG Broker create DataGuard (Database)
- RPM package fabrication method (Linux)
- Java proxy mode (Programming)
- Ora-1092: OPI colleague K aborting process --- killed by OO Well killer (Database)
- MultiWriter: while the ISO image concurrent writes 20 USB Startup Disk (Linux)
- Linux System Getting Started Tutorial: permission to permanently modify the USB device in Linux (Linux)
- Do not enter password login ssh (Server)
- How Ubuntu Snappy Core 2 running on Raspberry Pi (Linux)
- MySQL5.7.10 installation documentation (Database)
- Use XtraBackup be physical standby database MySQL (Database)
- How to modify the Ubuntu terminal user name changed to red color (Linux)
- xCAT install and update software (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.