Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ php for Linux the MySQL extension module installation and configuration     - C # dynamic class notes --- (Dynamic) Applications (Programming)

- Ubuntu 14.10 / 14.04 / 12.04 installation GNOME Pie 0.5.6 (Linux)

- rsync + inotify to achieve real-time synchronization (Server)

- Linux, Chrome browser font settings beautification (Linux)

- MySQL event table to achieve timing build a small note (Database)

- How Datadog monitor Nginx (Server)

- Use HttpClient remote interface testing (Programming)

- How to merge two pictures in Cacti (Linux)

- AngularJS asynchronous service testing and Mocking (Programming)

- Why do you need close contact Rust 1.0 (Programming)

- Git uses a small mind (Linux)

- Linux performance optimization features Tuned and ktune (Linux)

- Let VMware ESXi virtual switch support VLAN (Linux)

- Some problems and countermeasures Linux system calls exist (Linux)

- DataGuard a hardware issue warnings found (Database)

- Openfire achieve load balancing cluster by Nginx (Server)

- MySQL Slave synchronization problem solving (Database)

- VirtualBox virtual machine can not start to solve under Ubuntu (Linux)

- Acting on JavaScript events (Programming)

- To install the latest version of Shotwell 0.18 under Ubuntu (Linux)

 
         
  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
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;
     
         
         
         
  More:      
 
- Kubernetes (k8s) environment to build combat (Server)
- Linux startup and logon security settings (Linux)
- To add the Oracle JDBC driver in Maven repository (Linux)
- Install Apache streaming media services on CentOS 6.4 (Server)
- Spacewalk remove packages install the update (Linux)
- Android development, may cause a memory leak problem (Programming)
- MySQL monitoring tool -Innotop (Database)
- Advanced Linux security settings (Linux)
- OpenGL shadow map (Programming)
- CentOS6.x and Windows XP and Windows Server 2003 Open IPv6 related matters (Linux)
- Bug tracking library after FastJson omitted the decimal point 0 (Programming)
- How to choose the correct HTTP status code (Server)
- Gentoo: startx appeared Failed to load module Problem Solving (Linux)
- iostat command Detailed (Linux)
- The most common and most effective security settings under linux (Linux)
- Find details block device with Linux blkid command (Linux)
- Haproxy multi-domain certificate HTTPS (Server)
- Ubuntu 14.04 running ASP.NET Configuration Mono + Jexus (Server)
- Nonstandard IMP-00010 error processing one case (Database)
- Java input and output common class Scanner (Programming)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.