0

DirectAdmin动态IP登陆自动退出问题解决

DirectAdmin的Session会检查IP是否变动。参考官方资料:
http://www.directadmin.com/features.php?id=443

修改directadmin.conf文件

vim /usr/local/directadmin/conf/directadmin.conf

修改disable_ip_check=0为disable_ip_check=1
如果在里面没有,直接添加 disable_ip_check=1 就可以。

然后重启DA 面板重启或者SSH执行如下命令

/etc/init.d/directadmin restart
0

[Linux笔记]apache 2.4 安装 mod_rpaf

在使用第三方的DANginx插件用在Directadmin apache2.4的时候,发现无法安装mod_rpaf.这个插件是用来让apache获取到访客正确ip的。
apache2.4已经有了mod_remoteip.so 但没时间仔细研究,Directadmin无法正常加载,先行编译mod_rpaf达到要求
编译时提示的错误

# apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic   -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache  -I/usr/include/apache   -I/usr/include/apache   -c -o mod_rpaf-2.0.lo mod_rpaf-2.0.c && touch mod_rpaf-2.0.slo
mod_rpaf-2.0.c: In function 'rpaf_cleanup':
mod_rpaf-2.0.c:150: error: 'conn_rec' has no member named 'remote_ip'
mod_rpaf-2.0.c:151: error: 'conn_rec' has no member named 'remote_addr'
mod_rpaf-2.0.c:151: warning: implicit declaration of function 'inet_addr'
mod_rpaf-2.0.c:151: error: 'conn_rec' has no member named 'remote_ip'
mod_rpaf-2.0.c: In function 'change_remote_ip':
mod_rpaf-2.0.c:164: error: 'conn_rec' has no member named 'remote_ip'
mod_rpaf-2.0.c:183: error: 'conn_rec' has no member named 'remote_ip'
mod_rpaf-2.0.c:186: error: 'conn_rec' has no member named 'remote_ip'
mod_rpaf-2.0.c:187: error: 'conn_rec' has no member named 'remote_addr'
mod_rpaf-2.0.c:187: error: 'conn_rec' has no member named 'remote_ip'
apxs:Error: Command failed with rc=65536

Continue Reading

0

[Linux笔记]DirectAdmin添加mod_pagespeed加速Apache

mod_pagespeed是一个apache的加速模块,他是由谷歌公司免费提供的傻瓜式网站优化工具,这个加速模块可以自行对网络传输的html字节及图像,以及css压缩等优化,据称该模块最大可以将网页加载速度提高50%,而且它拥有智能缓存系统,最大限度减少了配置上的麻烦。

一、获得模块

wget http://soft.kwx.gd/module/mod-pagespeed-beta_current_i386.rpm #32位
wget http://soft.kwx.gd/module/mod-pagespeed-beta_current_x86_64.rpm #64位

二、执行安装

rpm -i --nodeps mod-pagespeed-beta_current_*.rpm 

SSH执行以上命令,安装该模块,提示“package mod-pagespeed-beta-0.10.22.4-1633.i386 is already installed”则表示安装成功。

Continue Reading

2

[Linux笔记]Directadmin安装XCache教程[适合SuPHP]

安装Directadmin一般会安装eAccelerator做PHP加速。但是最新版PHP所支持的eAccelerator0.9.6.x已经去掉cache功能,Discuz不支持使用。搜索了N多资料,找不到针对Directadmin安装XCache的教程,那就自己写一个吧。

cd /usr/local/src/
wget http://xcache.lighttpd.net/pub/Releases/2.0.1/xcache-2.0.1.tar.gz
tar -zxvf xcache-2.0.1.tar.gz
cd xcache-2.0.1
export PHP_PREFIX="/usr/local"
$PHP_PREFIX/php5/bin/phpize
./configure --enable-xcache -with-php-config=$PHP_PREFIX/php5/bin/php-config
make && make install

Continue Reading