php安装,mysql安装
先安装mysql
下载地址:http://dev.mysql.com/downloads/mysql/5.6.html#downloads 选择“Source Code”,用已经注册好的oracle账户登录后才能下载,下载版本为mysql-5.6.15.tar.gz,也就是上图的最后一个包。
或者
http://mirrors.sohu.com/mysql/MySQL-5.6/,搜狐镜像
必要软件包
yum -y install gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* make cmake
ps:mysql5.x版本后只能用cmake编译安装
解压进入mysql源码目录
添加用户
groupadd mysql
useradd -r -g mysql mysql
安装
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql
make && make install
设置权限
chmod +x /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql
http://www.cnblogs.com/AloneSword/archive/2013/03/18/2966750.html
http://cn2.php.net/distributions/php-5.3.29.tar.gz
依赖
yum install -y gcc gcc-c++ make zlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers php-mcrypt libmcrypt libmcrypt-devel
./configure --prefix=/usr/local/php --enable-fpm --with-mcrypt \
--enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath \
--enable-inline-optimization --with-bz2 --with-zlib --enable-sockets \
--enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex \
--with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli \
--with-gd --with-jpeg-dir
'./configure' '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/etc' '--with-config-file-scan-dir=/usr/local/php/conf.d' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-iconv-dir' '--with-freetype-dir=/usr/local/freetype' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-mbstring' '--with-mcrypt' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap' '--with-gettext' '--disable-fileinfo' '--enable-opcache' '--enable-intl' '--with-xsl'
最新文章
- 小表驱动大表, 兼论exists和in
- 改int非空自增列为int可为空列
- js中对类和对象的理解
- 从0开始学Java——JSP&;Servlet——Tomcat和Apache的区别
- Android中多个调用Activity的问题
- gdb使用_转
- Kerberos的基本概念
- python 安装mysql 客户端遇到的问题
- C语言选择法排序
- Win7安装vs2010失败
- 基于 Android 的 3D 视频样本代码
- Ant 给project打包
- python基础(数组)
- 腾讯开源的Paxos库PhxPaxos代码解读---Prepare阶段(一)
- 图解Windows下 GIT GUI 使用教程
- Kindel资源去哪里找
- Node.js实战(八)之回调函数
- Delphi 局域网点对点文件传输(IdTcpClient控件)
- mtr 命令详解
- sqlite常用语法详细介绍
热门文章
- kali 安装火狐
- Loadrunner中web_custom_request使用场景
- hdu 1754 Ihate it
- python 类访问控制
- SU suwind命令学习
- 关于遍历javascript 中的json串浏览器输出的结果不统一的情况
- http://www.cnblogs.com/yjmyzz/p/3941043.html
- Quartz.Net 配置模板范例
- BZOJ3834 : [Poi2014]Solar Panels
- vi/vim键盘图-----又一张桌面背景好图