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?
阅读(2825) | 评论(0) | 转发(0) |