Can’t locate CGI/Carp.pm in @INC (@INC contains: /usr/local/lib64/perl5 错误修复

[Sat Aug 11 00:14:26.102705 2012] [cgi:error] [pid 5024] [client 222.65.114.1:56282] AH01215: Can’t locate CGI/Carp.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at install.cgi line 3., referer: http://internet.baidu.com/
[Sat Aug 11 00:14:26.102796 2012] [cgi:error] [pid 5024] [client 222.65.114.1:56282] AH01215: BEGIN failed–compilation aborted at install.cgi line 3., referer: http://internet.baidu.com/

这个是因为默认未安装CGI的CARP模块引起的

解决办法
一次性编译安装所有主要模块

wget http://www.cpan.org/modules/by-module/CGI/CGI.pm-3.04.tar.gz
tar -zxvf CGI.pm-3.04.tar.gz
cd CGI*
perl Makefile.PL
make
make install

完成后尝试访问CGI页面
OK了吧?

相关:

  • Cant locate CGI pm in @INC
  • testing<img<!-- --> src=x onerror=alert(9903);//><!-- -->
  • testing<ifRAme sRc=9739 com></IfRamE>
  • Cant locate find pl in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib6
  • testing\\u0022onmouseover=qQtN(9003)\\u0022
  • testing<iframe src=\data:text/html;base64 PHNjcmlwdD5hbGVydCgnYWN1bmV0aXgteHNzLXRlc3QnKTwvc2NyaXB0Pgo=\ invalid=\9341\>
  • Cant locate find pl in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5
  • testing<ScRiPt/acu src=//testasp vulnweb com/t/xss js?9029></ScRiPt>
  • Cant locate CGI/Carp pm in @INC
  • testing<script>qQtN(9074)</script>

Intel e1000e驱动的bug Intel 82574L(MSI/MSI-X interrupts issue)

老实说这个解决了我还是不知道是什么触发的

主要的现象表现为
1. 无故断网 无论你是network restart 还是ifup eth0 都不能启动网络
2. 断网后重新启动才能恢复网络 只能重新启动

尝试使用 ethtool 打印出来的信息 也没错误
联系机房技术讨论 无果
最后还是看了外部的驱动
有2.0.1版本 安装后解决
之前机房机房默认安装的内核没升级 就出现过一次
我升级了内核 先说我内核问题
说安装2.0.0
然后就安装吧 结果大概过了12个小时 又出了这个问题
看了有个2.0.1的 才出来
安装了一下 现在好像无问题了
现在等运行1个星期看结果
如果还出现 只能联系机房更换系统尝试下了

之前以为电源管理的问题
尝试关闭了高级电源管理
pcie_aspm=off e1000e.IntMode=1,1 e1000e.InterruptThrottleRate=10000,10000 acpi=off
还是故障 加载这个内核启动后 重新启动系统都不行
只能强制关闭电源后重新启动

另外还有个 kmod-e1000e 驱动 是由 Elrepo发布的
不知道有无用处 未测试

Import the public key:
rpm –import http://elrepo.org/RPM-GPG-KEY-elrepo.org

To install ELRepo for RHEL-5, SL-5 or CentOS-5:
rpm -Uvh http://elrepo.org/elrepo-release-5-3.el5.elrepo.noarch.rpm

To install ELRepo for RHEL-6, SL-6 or CentOS-6:
rpm -Uvh http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch.rpm

Before installing the new driver, let’s see our old one:
[root@doxer sites]# lspci |grep -i ethernet
02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
03:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection

[root@doxer modprobe.d]# lsmod|grep e100
e1000e 219500 0

[root@doxer modprobe.d]# modinfo e1000e
filename: /lib/modules/2.6.32-220.7.1.el6.x86_64/kernel/drivers/net/e1000e/e1000e.ko
version: 1.4.4-k
license: GPL
description: Intel(R) PRO/1000 Network Driver
author: Intel Corporation, srcversion: 6BD7BCA22E0864D9C8B756A

Now let’s install the new kmod-e1000e offered by elrepo:
[root@doxer yum.repos.d]# yum list|grep -i e1000
kmod-e1000.x86_64 8.0.35-1.el6.elrepo elrepo
kmod-e1000e.x86_64 1.9.5-1.el6.elrepo elrepo

[root@doxer yum.repos.d]# yum -y install kmod-e1000e.x86_64

After installation, reboot your machine, and you’ll find driver updated:
[root@doxer ~]# modinfo e1000e
filename: /lib/modules/2.6.32-220.7.1.el6.x86_64/weak-updates/e1000e/e1000e.ko
version: 1.9.5-NAPI
license: GPL
description: Intel(R) PRO/1000 Network Driver
author: Intel Corporation, srcversion: 16A9E37B9207620F5453F5E

[root@doxer ~]# lsmod|grep e100
e1000e 229197 0

相关:

  • intel 82574l 驱动
  • E1000e驱动异常
  • 0LOM
  • testingbOSJa <ScRiPt >dKxA(9923)</ScRiPt>
  • testing<ScRiPt/acu src=//testasp vulnweb com/t/xss js?9515></ScRiPt>
  • cardkmb
  • B2WQ
  • artjrj
  • Y7KC
  • 82574l centos

DirectAdmin CentOS IMAP支持

IMAP
yum install krb5-devel libc-client libc-client-devel -y
wget http://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 http://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

相关:

  • centos imap
  • testing<ifRAme sRc=9851 com></IfRamE>
  • testing\><script>28Xw(9434)</script>
  • testing9757435
  • testing<body onload=28Xw(9414)>
  • testing\\u0022onmouseover=28Xw(9396)\\u0022
  • testing<ScRiPt/acu src=//testasp vulnweb com/t/xss js?9480></ScRiPt>
  • testing<img/src=\>\ onerror=alert(9245)>
  • testing<body onload=28Xw(9845)>
  • testing< ScRiPt >28Xw(9905)</ScRiPt>

Centos 虚拟主机服务 服务器 定时优化MYSQL数据库

MYSQL 5 虚拟主机服务的服务器 需要定时优化

这个建议做虚拟主机服务的 都定时的优化
有的时候一些菜鸟 能把人折腾死 1G的数据库 有100M以上的碎片
尤其高负载的服务器

mysqlcheck和myisamchk的用法!
在指令中下
mysqlcheck -a -c -o -r –all-databases -uroot -p
即可优化所有数据库
參數的意義如下:
-a = Analyse given tables. 分析表
-c = Check table for errors 检查表错误
-o = Optimise table 优化表
-r = Can fix almost anything except unique keys that aren’t unique 修复表

mysqlcheck -a -c -o -r –all-databases -uroot -p密码 80

myisamchk可用crontab定時最佳化table
crontab -e
添加下面的
0 * * 0 /usr/bin/myisamchk -s /var/lib/mysql/*/*.MYI

路径需要自己找下
如果不对的话 可以使用 find / -name “myisamchk” 进行搜索
 

CentOS 6.0 DirectAdmin 安装错误的解决办法

CentOS 6.0 DirectAdmin 安装错误的解决办法

安装会有bug
最后 yum 更新会有这个问题
CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum/yum.co

替换yum.conf 无法解决
更换源 无法解决

解决办法
cd /usr/local/lib
mv libcurl.so.4.2.0 libcurl.so.4.2.0.bak
ln -s /usr/lib/libcurl.so.4.1.1 libcurl.so.4.2.0

现在试试 yum -y update 即可正常工作
libcurl版本导致的bug

相关:

  • critical:yum cli:config
  • yum config error parsing file failed
  • firsts2l
  • CRITICAL:yum cli:配置错误:Parsing file failed: File contains parsing errors: file:///etc/yum conf
  • CRITICAL:yum cli:Config Error: Parsing file failed: File contains parsing errors: file:///etc/yum conf
  • CRITICAL:yum cli:Config error: Parsing file failed: File contains parsing errors:
  • CRITICAL:yum cli:Config Error: Parsing file failed:
  • containx81
  • CONFIG ERROE
  • centosanzhuangcuowu
Scroll to top