Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ php for Linux the MySQL extension module installation and configuration     - OS X CAOpenGLLayer how to enable OpenGL 3.2 core profile (Programming)

- Preps - Print within the specified range of IP addresses (Linux)

- Glibc support encryption by modifying the DNS (Programming)

- Read and write files efficiently from Apache Kafka (Server)

- Storm basic framework for analysis (Programming)

- Oracle 11g tracking and monitoring system-level triggers to drop misuse (Database)

- Based Docker build stand-alone high-availability cluster Hadoop2.7.1 Spark1.7 (Server)

- To control based on IP address routing policy under Linux (Linux)

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

- Simple RPM package production (Linux)

- Android Scroller call mechanism and the relationship of computeScroll (Programming)

- Broadcom transplanted to OpenWrt summary (Programming)

- Puppet Detailed centralized configuration management system (Server)

- High-performance JavaScript loaded and executed (Programming)

- Asynchronous JavaScript loading (Programming)

- Distributed Firewall Design on Linux platform (Linux)

- Examples of Exploration Class File (Programming)

- Shell Scripting early experience (Programming)

- Git uses Details (Linux)

- Apache Kafka: the next generation of distributed messaging system (Server)

 
         
  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:      
 
- Oracle () trunc function usage (Database)
- Linux remote connectivity tools -OpenSSH (Linux)
- Samba file sharing server set up (Server)
- A script to make your Ubuntu 14.04 Memory screen brightness (Linux)
- Quota for Vsftpd do use disk quotas (Server)
- Basic Java JNI (Programming)
- CentOS / Linux restart active NIC connection paths / network configure error Error Resolution (Linux)
- Oracle first Automated Installation Packages (Database)
- Debian installation (Linux)
- Linux file permissions and access modes (Linux)
- Linux system last command usage (Linux)
- C # assembly calls across constants, variables and functions (Programming)
- Applications in Objective-C runtime mechanism (Programming)
- RabbitMQ tutorial examples: the Hello RabbitMQ World Java realization (Linux)
- MongoDB query statistics grouping remove duplicate records (Database)
- Use scripts easily install the latest Linux kernel in Ubuntu (Linux)
- When should I use Angular 2 (Programming)
- Hadoop2.6.3 build clusters and the development of MapReduce WIN7 by Eclipse on Linux demo (Server)
- C ++ class implementation date operator overloading (Programming)
- How to cool down your Ubuntu system (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.