Part I: Installing MySQL
Official Download mysql5.6.19 64-bit RPM format file
0, rpm four x mysql5.6.19
Uninstall the default MySQL
Yum-y Remove mysql-libs-*
Yum-y Remove mysql-libs-5.1.52*
1. su command
2./etc/init.d/mysql start to start MySQL
3, Mysql-uroot-p
Error 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:yes)
------------------------------------
Solution:
Find the password in this directory/root/.mysql_secret
Cd/root
Ls-la
Cat. Mysql_secret Copy Password
4. View MySQL boot status/etc/rc.d/init.d/mysql
Log in, reset your password.
Set Password=password (' admin ');
Part II: Installing Apache
1.
# tar ZXVF httpd-2.2.11.tar.gz
#./configure--prefix=/usr/local/apache2--enable-dav--enable-modules=so
./configure--prefix=/usr/local/apache--enable-so "This is okay."
Make
Make install
The general appearance of this-bash:make:command not found hint, is because the installation system is used to minimize the mini installation, the system does not install make, vim and other common commands, direct yum installation can.
-------------------------------------------------------
Solution:
Yum-y install gcc automake autoconf libtool make direct ssh to run, installation make.
To start the Apache service:
#/usr/local/apache2/bin/apachectl Start
Error occurred:
Httpd:apr_sockaddr_info_get () failed for Vm_74_204_centos
Httpd:could not reliably determine the server ' s fully qualified domain name, using 127.0.0.1 for ServerName
-------------------------------
Solution:
The conf file in the Apache installation directory is modified as follows
(1) ServerName localhost:80
or fill in the/etc/hosts with your host name Bogon, as follows:
(2) 127.0.0.1 Bogon
---------------------------------------------
/usr/local/apache2/modules/libphp5.so:cannot open Shared object file:no such file or directory
-------------------------------------------------
Solution: Apache installs directory http. Conf file Add this line
LoadModule php5_module/usr/local/apache2/modules/libphp5.so
or/usr/local/apache2/modules/libphp5.so:cannot open Shared object file:no such file or directory error, then load PHP first
Part III: Installing PHP
Installing LIBXML2
1 tar zxvf libxml2-2.6.32.tar.gz
2 CD libxml2-2.6.32
3./configure--PREFIX=/USR/LOCAL/LIBXML2
4 Make
5 Make Install
Install PHP
1. Tar zvxf php-5.3.8.tar.gz
2. CD php-5.3.8
3./configure--prefix=/usr/local/php--with-mysqli=/usr/bin/mysql_config--with-apxs2=/usr/local/apache2/bin/ APXS--WITH-LIBXML-DIR=/USR/LOCAL/LIBXML2
Error occurred
Configure:error:xml2-config not found. Please check your LIBXML2 installation.
------------------------------------
Solution: http://www.cnblogs.com/happyhotty/articles/2539864.html
"Check if the LIBXM package is installed
[Email protected] php-5.3.8]# Rpm-qa |grep libxml2
libxml2-2.6.26-2.1.12
libxml2-python-2.6.26-2.1.12
Reinstall the LIBXML2 and Libxml2-devel packages
Yum Install LIBXML2
Yum Install Libxml2-devel-y
Find out if the Xml2-config file exists after installation
[[email protected] php-5.3.8]# Find/-name "Xml2-config"
/usr/bin/xml2-config
】
And then re-config
+--------------------------------------------------------------------+
| License: |
| This software was subject to the PHP License, available in this |
| Distribution in the file LICENSE. By continuing this installation |
| Process, you is bound by the terms of this License agreement. |
| If you don't agree with the terms of this license, you must abort |
| The installation process at this point. |
+--------------------------------------------------------------------+
Thank for using PHP.
This occurs, the successful installation of PHP
and then
Make make Install
Appear this
[PEAR] console_getopt-installed:1.3.1
Warning:pear/pear requires package "Pear/structures_graph" (recommended version 1.0.4)
Warning:pear/pear requires package "Pear/xml_util" (recommended version 1.2.1)
[PEAR] pear-installed:1.9.4
Wrote PEAR system config file at:/usr/local/php/etc/pear.conf
Want to add:/usr/local/php/lib/php to your php.ini include_path
[PEAR] structures_graph-installed:1.0.4
[PEAR] xml_util-installed:1.2.1
/usr/local/php-5.3.28/build/shtool install-c Ext/phar/phar.phar/usr/local/php/bin
Ln-s-f/usr/local/php/bin/phar.phar/usr/local/php/bin/phar
Installing PDO headers:/usr/local/php/include/php/ext/pdo/
The installation was successful.
---------------------------------------------------
The last PHP link PHP is still unsuccessful. Cause solution:
CP one php.ini to/usr/local/php/lib "Cp/usr/local/php-5.3.28/php.ini-production/usr/local/php/lib/php.ini Or simply copy the previous file "
Extension=mysql.so
Php. INI to remove the semicolon, plus the surface of this link. Restart Apache
./configure--with-php-config=/usr/local/bin/php-config
(
Ln-s/USR/LIB64/MYSQL/LIBMYSQLCLIENT.A/USR/LIB/LIBMYSQLCLIENT.A
Ln-s/USR/LIB64/MYSQL/LIBMYSQLCLIENT_R.A/USR/LIB/LIBMYSQLCLIENT_R.A
) Reference website: http://www.cnblogs.com/wangtao_20/archive/2011/03/07/1973621.html--------------------------------------- -----------------specifically, the following: is to solve the problem of PHP connection with MySQL, the steps are roughly: A, into the PHP directory under the ext MySQL
B,/usr/local/php/bin/phpize
C,./configure--with-php-config=/usr/local/bin/php-config
Tip: If configure is unsuccessful, the following actions are performed:
(
Ln-s/USR/LIB64/MYSQL/LIBMYSQLCLIENT.A/USR/LIB/LIBMYSQLCLIENT.A
Ln-s/USR/LIB64/MYSQL/LIBMYSQLCLIENT_R.A/USR/LIB/LIBMYSQLCLIENT_R.A
)
D, make
E, make install
F, Configuration mysql.so