北京SEO-星箭

北京SEO星箭的SEO博客,致力于搜索引擎营销的潜心研究。介绍SEO优化技术,包括论坛SEO优化技巧,CMS SEO优化,大型网站SEO策略等.

apache2.2.3+php-5.1.4+vsftpd-2.0.5安装

1,安装apache2.0.59.

先下载最新的安装包:http://apache.justdn.org/httpd/httpd-2.0.59.tar.gz

下面开始编译安装apache:
# tar httpd-2.0.59.tar.gz
# mkdir /opt/apache2
# ./configure --prefix=/opt/apache2 --enable-module=so --enable-rewrite
# make
# make install
启动apache看是否安装成功: #./opt/apache2/bin/apachectl start 如果出现It works!,则表示安装成功。

2,安装php5.1.4

#tar -zxvf php-5.1.4.tar.gz
#cd php-5.1.4
#./configure --prefix=/opt/php --with-apxs2=/opt/apache2/bin/apxs -enable-track-vars --with-mysql-dir --with-libxml-dir --with-gd-dir --with-jpeg-dir --with-zlib-dir --with-png-dir --with-freetype-dir
#make
#make install
#cp php.ini-dist /opt/php/lib/php.ini

# vi /opt/apache2/conf/httpd.conf
找到 AddType application/x-gzip .gz .tgz 在其下添加如下内容
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

3,安装vsftpd-2.0.5:
#tar -zxvf vsftpd-2.0.5.tar.gz
#make
#make install
#cp vsftpd.conf /etc
#cp RedHat/vsftpd.pam /etc/pam.d/ftp
#vi /etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
chroot_local_user=YES

启动vsftpd:

#/etc/init.d/xinetd restart

启动apache:

#/opt/apache2/bin/apachectl start

修改mysql默认密码
mysql>set password for 'root'@'localhost'=password('newpasswd');

知道原密码:
mysqladmin -u root "old password" "new password"

No Comments, Comment or Ping

Reply to “apache2.2.3+php-5.1.4+vsftpd-2.0.5安装”