Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4185050
  • 博文数量: 601
  • 博客积分: 15410
  • 博客等级: 上将
  • 技术积分: 6884
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-16 08:11
个人简介

独学而无友,则孤陋而寡闻!

文章分类

全部博文(601)

文章存档

2020年(1)

2018年(4)

2017年(7)

2016年(42)

2015年(25)

2014年(15)

2013年(36)

2012年(46)

2011年(117)

2010年(148)

2009年(82)

2008年(37)

2007年(41)

分类: LINUX

2011-02-27 20:53:49

1、apt-get install perl nginx mysql-server spawn-fcgi libgd2-xpm pure-ftpd-mysql

2、php5-cgi php5-curl php5-gd php5-mysql php5-mysqli php5-mysqlnt php5-ldap php5-mcrypt

3、php相关:
    5.3.5,没有fastcgi选项,只有fpm-fcgi了
    5.2.7  没有intl选项,moodle需要
  编译依赖:
     libxml2-dev
     zlib1g-dev
     gettext
     libicu44(intl使用)
     gcc
     g++
     make
    php5-xcache
    bzip2   libbz2-dev (只要后者就可以?)
    libcurl4-gnutls-dev
    libmcrypt-dev
    libmysqlclient-dev
    autoconf2.64

'./configure' '--with-mysql=/usr/bin/mysql' '--with-pdo-mysql' '--with-mysqli=/usr/bin/mysql_config' '--enable-xml' '--enable-wddx' '--enable-cli' '--enable-bcmath' '--enable-session' '--enable-calendar' '--enable-ctype' '--enable-ftp' '--with-pcre-regex' '--enable-sockets' '--enable-exif' '--enable-zend-multibyte' '--without-sqlite' '--without-pdo-sqlite' '--with-pear=/usr/local/share/php5' '--enable-mbstring' '--enable-fastcgi' '--enable-force-cgi-redirect' '--with-config-file-scan-dir=/usr/local/php5.2/conf/' '--enable-shared' '--disable-static' '--disable-rpath' '--with-config-file-path=/usr/local/php5.2' '--enable-inline-optimization' '--with-pic' '--with-zlib' '--enable-suhosin' '--prefix=/usr/local/php5.2' '--sysconfdir=/etc' '--mandir=/usr/local/man' '--infodir=/usr/local/info' '--host=mips' '--enable-intl' '--with-curl' '--with-bz2' '--with-gettext' '--with-mcrypt' '--enable-soap' '--enable-zip'

4、webmin依赖:

 apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl

5、nginx编译,需要pcre的源代码和openssl的源代码:
  --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-mail --with-mail_ssl_module --with-pcre=../pcre-8.10 --with-openssl=../openssl-1.0.0d


6、phpMyAdmin
  The following extra packages will be installed:
     dbconfig-common javascript-common libjs-mootools phpmyadmin wwwconfig-common
  Suggested packages:
    postgresql-client apache apache-ssl

7、编译优化:
  ./configure以后,修改它的Makefile,在CFLAGS=或者CFLAGS+=后面添加-O3  -march=loongson2f -mtune=loongson2f -O3 -lpthread -o

8、php5需要apache2?

阅读(2768) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~