天道酬勤

RDBMS and My Life

Archive for the ‘LAMP’ Category

vsftpd dead but subsys locked & error 530

leave a comment

linux下,如发现vsftpd服务起不来,可以查看其状态,

#/etc/init.d/vsftpd status

vsftpd dead but subsys locked

上述问题可以用下面的方法解决:

1.停止xinetd服务

#/etc/rc.d/init.d/xinetd stop

Stopping xinetd: [ OK ]

2.lock文件中删除vsftpdlock

# rm -rf  /var/lock/subsys/vsftpd

3.重启vsftpd服务

# service vsftpd restart

Shutting down vsftpd: [  OK  ]

Starting vsftpd for vsftpd: [  OK  ]

最后重启xinetd服务

#/etc/rc.d/init.d/xinetd restart

Stopping xinetd: [  OK  ]

Starting xinetd: [  OK  ]

#/etc/init.d/vsftpd status

vsftpd (pid 7317) is running…

error 530的错误

530 Must perform authentication before identifying USERgccftp有关,root登录系统修改一下gccftp文件即可。

# vi /etc/xinetd.d/gccftp

找到“server_args”这一行,删除其中的“-a”选项

# /etc/rc.d/init.d/xinetd restart

至此问题解决。

-The End-

Written by ochef

June 5th, 2009 at 9:37 am

Posted in LAMP

Tagged with

LAMP应用环境安装指南Ⅲ–PHP

leave a comment

LAMP应用环境安装指南Ⅰ–MySQL

LAMP应用环境安装指南Ⅱ–Apache

PHP的安装

1.下载安装php支持包

(1) GD2

# cd /usr/local/src

#wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.41.tar.gz

#cd GD-2.41

#perl Makefile.PL

#make; make install

(2) LibXML2

# cd /usr/local/src

#wget http://www.xmlsoft.org/sources/libxml2-2.6.30.tar.gz

# tar xzvf libxml2-2.6.30.tar.gz

# cd libxml2-2.6.30

# ./configure –prefix=/usr/local/libxml2

# make; make install

2.编译安装

#cd /usr/local/src

#wget http://cn.php.net/distributions/php-5.2.9.tar.gz

# tar -zvxf php-5.2.9.tar.gz

# cd php-5.2.9

#./configure –prefix=/usr/local/php –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd –enable-gd-native-ttf –with-jpeg-dir –with-png-dir –with-bz2 –with-freetype-dir –with-iconv-dir –with-zlib –enable-mbstring –with-mcrypt –disable-ipv6 –disable-cgi –disable-cli

Read the rest of this entry »

Written by ochef

May 24th, 2009 at 11:15 pm

Posted in LAMP

Tagged with

LAMP应用环境安装指南Ⅱ–Apache

leave a comment

LAMP应用环境安装指南Ⅰ–MySQL

LAMP应用环境安装指南Ⅲ–PHP

Apache的安装:

1. Apache日志截断程序,Linux下运行的Web服务器Apache,默认日志文件是不分割的,一个整文件既不易于管理,也不易于分析统计。安装cronolog后,可以将日志文件按时间分割,易于管理和分析。

# cd /usr/local/src

#wget http://cronolog.org/download/cronolog-1.6.2.tar.gz

# tar xzvf cronolog-1.6.2.tar.gz

# cd cronolog-1.6.2

# ./configure –prefix=/usr/local/cronolog

# make; make install

2.下载httpd源码包

#cd /usr/local/src

#wget http://labs.xiaonei.com/apache-mirror/httpd/httpd-2.2.11.tar.gz

#tar xzvf httpd-2.2.11.tar.gz

#cd httpd-2.2.11

3. 编译安装

#./configure –prefix=/usr/local/apache2 –enable-module=so –enable-deflate=shared –enable-expires=shared –enable-rewrite=shared –enable-static-support –enable-static-htpasswd –enable-static-htdigest –enable-static-rotatelogs –enable-static-logresolve –enable-static-htdbm –enable-static-ab –enable-static-checkgid –disable-userdir

#make;make install

#echo “/usr/local/apache2/bin/apachectl start” >> /etc/rc.local (系统启动时服务自动启动)

-The End-

Written by ochef

May 24th, 2009 at 10:59 pm

Posted in LAMP

Tagged with

LAMP应用环境安装指南Ⅰ–MySQL

leave a comment

LAMP应用环境安装指南Ⅱ–Apache

LAMP应用环境安装指南Ⅲ–PHP

安装环境:VMWare + RedHat Linux AS5U2

Linux的安装过程比较简单这里就不在赘述了。为了避免实验中不必要的麻烦,建议大家在安装的时候将SELinuxSELinux linux 系统中一个强制性的安全机制)、iptables等服务禁用掉,如果在安装Linux的时候忘记了也可以用如下的方法:

# vi /etc/selinux/conifg

SELINUX=enforcing改成SELINUX=disabled即可。

MySQL的安装:

1.下载mysql源码包并解压

#cd /usr/local/src

#tar xzvf mysql-5.1.30.tar.gz

#cd mysql-5.1.30

2.创建mysql用户、组

#groupadd mysql

#useradd -g mysql -s /bin/false -M mysql

3.编译安装

#./configure –prefix=/usr/local/mysql –localstatedir=/var/lib/mysql –with-comment=Source –with-server-suffix=Comsenz –with-mysqld-user=mysql –without-debug –with-big-tables –with-charset=gbk –with-collation=gbk_chinese_ci –with-extra-charsets=all –with-pthread –enable-static –enable-thread-safe-client –with-client-ldflags=-all-static –with-mysqld-ldflags=-all-static –enable-assembler –without-ndb-debug

如果编译成功,你会看到:Thank you for choosing MySQL!

#make;make install

Read the rest of this entry »

Written by ochef

May 24th, 2009 at 10:21 pm

Posted in LAMP

Tagged with