1,505,112,345 Monday centos-6.5-x86_64-minimal-httpd-2.4.12-mysql-5.6.23-php-5.6.8

Source: Internet
Author: User
Tags memcached phpinfo zts iptables


centos-6.5-x86_64-minimal-httpd-2.4.12-mysql-5.6.23-php-5.6.8

------------------------------Software Preparation

Http://mirror.bit.edu.cn/apache/apr/apr-1.5.2.tar.gz
Http://mirror.bit.edu.cn/apache/apr/apr-util-1.5.4.tar.gz
Ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz

Http://www.memcached.org/files/memcached-1.4.24.tar.gz
Http://pecl.php.net/get/memcache-3.0.8.tgz

Http://mirrors.hust.edu.cn/apache/httpd/httpd-2.4.12.tar.gz
Ftp://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/mysql-5.6.23.tar.gz
Http://cn2.php.net/get/php-5.6.8.tar.gz/from/this/mirror

[Email protected] ~]# ls/usr/local/src/
Apr-1.5.2.tar.gz
Apr-util-1.5.4.tar.gz
Pcre-8.37.tar.gz
Httpd-2.4.12.tar.gz
Mysql-5.6.23.tar.gz
Php-5.6.8.tar.gz
MEMCACHE-3.0.8.TGZ//PHP extension
Memcached-1.4.24.tar.gz

Yum install gcc gcc-c++ cmake Lynx autoconf Bison automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel *-Y

wget http://mirror.bit.edu.cn/apache/apr/apr-1.5.2.tar.gz
./configure--PREFIX=/USR/LOCAL/APR

wget http://mirror.bit.edu.cn/apache/apr/apr-util-1.5.4.tar.gz
./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz
./configure--prefix=/usr/local/pcre

------------------------------Apache Install

[Email protected] httpd-2.4.12]#/configure--prefix=/usr/local/apache--with-apr=/usr/local/apr--with-apr-util=/ Usr/local/apr-util--with-pcre=/usr/local/pcre--enable-so
[[email protected] httpd-2.4.12]# make && make install
[[email protected] ~]#/usr/local/apache/bin/apachectl start
[Email protected] ~]# CP/USR/LOCAL/APACHE/BIN/APACHECTL/ETC/RC.D/INIT.D/HTTPD

[Email protected] ~]# Vim/etc/sysconfig/iptables
-A input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT
[Email protected] ~]# Services iptables restart

------------------------------MySQL Install

[Email protected] mysql-5.6.23]# cmake-dcmake_install_prefix=/usr/local/mysql-dmysql_unix_addr=/usr/local/mysql/ Mysql.sock-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-dwith_extra_charsets:string=utf8,gbk-dwith _innobase_storage_engine=1-dwith_readline=1-denabled_local_infile=1-dmysql_datadir=/usr/local/mysql/data- dmysql_user=mysql-dmysql_tcp_port=3306

[[email protected] mysql-5.6.23]# make && make install

[[email protected] ~]# Groupadd MySQL

[[email protected] ~]# useradd-r-g MySQL MySQL

[Email protected] ~]# chown-r mysql/usr/local/mysql

[Email protected] ~]# chgrp-r mysql/usr/local/mysql

[Email protected] ~]# chmod 775/usr/local/mysql

[Email protected] ~]#/usr/local/mysql/scripts/mysql_install_db--user=mysql--basedir=/usr/local/mysql--datadir=/ Usr/local/mysql/data

[Email protected] ~]# chown-r root/usr/local/mysql

[Email protected] ~]# chown-r mysql/usr/local/mysql/data

[Email protected] ~]# CP/USR/LOCAL/MYSQL/SUPPORT-FILES/MY-DEFAULT.CNF/ETC/MY.CNF

[Email protected] ~]# Cp/usr/local/mysql/support-files/mysql.server/etc/init.d/mysqld

[[email protected] ~]#/etc/init.d/mysqld start
Starting MySQL ... success!

[Email protected] ~]# ln-s/usr/local/mysql/bin/mysql/usr/bin
[[email protected] ~]#/usr/local/mysql/bin/mysqladmin-u root password ' root '

Mysql> select Host,user,password from user;

mysql> Delete from user where password= ';

Mysql> Grant all privileges on * * to [e-mail protected] '% ' identified by "123456";

mysql> flush Privileges;

[Email protected] ~]# Vim/etc/sysconfig/iptables
-A input-m state--state new-m tcp-p TCP--dport 3306-j ACCEPT
[Email protected] ~]# Services iptables restart

------------------------------PHP Install

[Email protected] php-5.6.8]#/configure--prefix=/usr/local/php--WITH-APXS2=/USR/LOCAL/APACHE/BIN/APXS-- With-mysql=/usr/local/mysql

[[email protected] php-5.6.8]# make && make install

Modifying the Apache configuration file/usr/local/apache/conf/httpd.conf
LoadModule Php5_module modules/libphp5.so

AddType application/x-httpd-php. php or

<filesmatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

Through Phpinfo (); Find directories for php.ini and extension
/usr/local/apache/htdocs/phpinfo.php
Configuration File (php.ini) path/usr/local/php/lib
Loaded Configuration File/usr/local/php/lib/php.ini
extension_dir/usr/local/php/lib/php/extensions/no-debug-zts-20131226

[Email protected] ~]# Cp/usr/local/src/php-5.6.8/php.ini-development/usr/local/php/lib/php.ini

------------------------------Summary

[[email protected] ~]#/usr/local/apache/bin/apachectl start
[[email protected] ~]#/etc/rc.d/init.d/httpd start
[[email protected] ~]#/etc/init.d/mysqld start

Configure Boot vim/etc/rc.d/rc.local Join
/ETC/INIT.D/HTTPD start
/etc/init.d/mysqld start
Svnserve-d-R/DATA/SVN

------------------------------php Install extension

[Email protected] ~]# wget http://pecl.php.net/get/memcache-3.0.8.tgz
[Email protected] ~]# tar zxf memcache-3.0.8.tgz
[Email protected] memcache-3.0.8]#/usr/local/php/bin/phpize--with-php-config=/usr/local/php/bin/php-config
[Email protected] memcache-3.0.8]#/configure--with-php-config=/usr/local/php/bin/php-config
[[email protected] memcache-3.0.8]# make && make install
Installing Shared extensions:/usr/local/php/lib/php/extensions/no-debug-zts-20131226/
[Email protected] memcache-3.0.8]# Vim/usr/local/php/lib/php.ini
Extension=/usr/local/php/lib/php/extensions/no-debug-zts-20131226/memcache.so

1,505,112,345 Monday centos-6.5-x86_64-minimal-httpd-2.4.12-mysql-5.6.23-php-5.6.8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.