ubuntu14.04 安装nginx和php5.6.12
2015-08-21 15:38
671 查看
第一步 添加/usr/local/lib到链接库
第二步 安装
第三步 安装libiconv
第四步 安装其它需要的库
中间configure的时候出什么错误,百度一下,一般都能解决。
cd /etc/ld.so.conf.d vim newconf.conf 添加 /usr/local/lib 保存后退出 sudo ldconfig
第二步 安装
sudo apt-get install mysql-server mysql-client nginx libc-client-dev libmcrypt-dev libXpm-dev libxslt1-dev libmysql++-dev libmcrypt-dev libt1-dev libfreetype6-dev libxpm-dev libpng-dev libjpeg-dev libcurl4-gnutls-dev libxml2-dev sudo cp /usr/lib/x86_64-linux-gnu/libldap* /usr/lib
第三步 安装libiconv
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz tar xf libiconv-1.14.tar.gz cd libiconv-1.14 .configure make 然后出现错误:./stdio.h:1010:1: 错误:‘gets’未声明(不在函数内) 解决办法如下: cd srclib/ sed -i -e '/gets is a security/d' ./stdio.in.h cd ../ make 此时成功以后,执行 sudo make install
第四步 安装其它需要的库
tar xf php-5.6.12.tar.gz cd php-5.6.12 ./configure --prefix=/usr/local --with-config-file-path=/usr/local/etc --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr --with-zlib --with-curl --with-ldap --with-imap --with-kerberos --with-imap-ssl --with-gettext --with-gd --enable-gd-native-ttf --with-freetype-dir --with-jpeg-dir --with-png-dir --with-openssl --with-iconv=/usr/local --with-pcre-dir --with-mhash --with-mcrypt --with-xmlrpc --with-imap --enable-xml --enable-ftp --enable-mbstring --enable-soap --enable-sockets --enable-fpm --enable-zip --disable-debug --enable-calendar --enable-static --enable-inline-optimization --enable-wddx --enable-opcache --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbregex --enable-pcntl --without-pear --enable-ctype make sudo make install
中间configure的时候出什么错误,百度一下,一般都能解决。
相关文章推荐
- 《深入理解Nginx》笔记之ngx_event_pipe_s结构体
- Linux 安装Nginx详细图解教程
- nginx+php-fpm 报“File not found.”
- 高性能服务器Haproxy+Nginx架构配置
- FastDFS+Nginx安装配置
- Nginx + PHP(php-fpm)遇到的502 Bad Gateway错误
- nginx限制用户下载文件速率
- Flume 收集Nginx日志到Hdfs Tail-to-hdfs sink
- ThinkPHP Nginx pathinfo rewrite 配置
- Nginx 的动态 upstreams
- Nginx 的动态 upstreams
- Nginx负载均衡深入浅出
- nginx ha lvs对比
- nginx的pass_proxy遇到的坑
- Nginx Proxy cache + Perl + ImageMagick 做Wap站图片适配 实时压缩
- 03_Nginx添加新模块
- 03_Nginx添加新模块
- Apache ab测试 Apache优于 nginx
- MySQL+nginx+php环境在ubuntu14.04下的搭建
- Nginx负载均衡