DirectAdmin Nginx Plugin / Nginx for DirectAdmin DirectAdmin Nginx 插件 免费

DirectAdmin Nginx Plugin
Nginx for DirectAdmin
DirectAdmin Nginx 插件 免费

版本 1

 

Google Code //code.google.com/p/nginxda/

DirectAdmin Nginx 插件

DA需求版本: 1.9.3
DA插件版本: 1.2
NGINX 版本: 1.06正式版

Nginx for DirectAdmin是一个免费的提高DirectAdmin HTTP访问性能的插件
处理请求原理为反向代理,

结构为Nginx前端+NGINX缓存+APACHE动态处理
                  – 动态资源 – APACHE处理    
用户访问  – Nginx – 静态资源 – Nginx处理 
    – 静态缓存 – Nginx快速提取
   
主要功能
提高服务器负载性能
降低黑客注入威胁
自动NGINX配置文件生成以及更新

如果您使用的服务器无法获得IP,或者openvz VPS
请手工2个配置文件,
/usr/local/nginx/conf/nginx.conf   #第64行 更改为您的服务器主IP.
/etc/httpd/conf/mod_rpaf.conf      #第3行  更改为您的服务器主IP.

安装
cd /opt/
wget -c //www.directadmin.cc/nginxda/latest
sh latest

卸载
wget -c //www.directadmin.cc/nginxda/remove
sh remove

注意
1. 仅支持CentOS 4.x/5.x 32bit+64bit测试通过
2. 仅支持物理服务器,以及Xen虚拟化VPS,不支持open vz虚拟化VPS
3. directadmin需求1.93版本以上
4. 如果有Bug,请联系 support #  hostsoft.cn

CentOS PPTPD 安装教程

cd /tmp
wget //poptop.sourceforge.net/yum/stable/packages/dkms-2.0.17.5-1.noarch.rpm
wget //poptop.sourceforge.net/yum/stable/packages/kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm

如果是centos 4版本的
wget //poptop.sourceforge.net/yum/stable/packages/ppp-2.4.3-7.rhel4.i386.rpm
wget //poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-1.rhel4.i386.rpm

CentOS 5的
wget //poptop.sourceforge.net/yum/stable/packages/ppp-2.4.4-9.0.rhel5.i386.rpm
wget //poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-1.rhel5.1.i386.rpm

Continue reading “CentOS PPTPD 安装教程”

DirectAdmin ProFtpd 高级参数配置

ProFtpd 高级参数
vi /etc/proftpd.conf

禁止部分后缀上传
PathDenyFilter “\\.(bas|bat|cmd|com|hta|lnk|pif|scr|exe)$”

限制CPU及内存占用 (下面为演示, 10%的cpu和4mb内存):
RLimitCPU session 10
RLimitMemory session 4096

现在最大上传和最大下载限制
MaxStoreFileSize 30 Mb
MaxRetrieveFileSize 30 Mb

DirectAdmin CentOS IMAP支持

IMAP
yum install krb5-devel libc-client libc-client-devel -y
wget //dave.t0xic.nl/tars/imapback-2004c1-x86.tar.gz
tar xzf imapback-2004c1-x86.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap-2004c1/
mkdir /usr/local/imap-2004c1/lib
mkdir /usr/local/imap-2004c1/include
cp *.h /usr/local/imap-2004c1/include
cp *.c /usr/local/imap-2004c1/lib
cp c-client.a /usr/local/imap-2004c1/lib
ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a

64bit
yum install krb5-devel libc-client libc-client-devel -y
cd /usr/local/directadmin/custombuild
wget //dave.t0xic.nl/tars/imapback-2004c1-x86_64.tar.gz
tar xzf imapback-2004c1-x86_64.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap/
mkdir /usr/local/imap/lib
mkdir /usr/local/imap/include
cp *.h /usr/local/imap/include
cp *.c /usr/local/imap/lib
cp c-client.a /usr/local/imap/lib
ln -s /usr/local/imap/c-client.a /usr/local/imap/libc-client.a

添加
–with-pic \
–with-imap=/usr/local/imap \
–with-imap-ssl=/usr/local/imap
重新编译php

完成后测试
php -m | grep imap

Posts navigation

123282930313233