Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1151579
  • 博文数量: 116
  • 博客积分: 2889
  • 博客等级: 少校
  • 技术积分: 1337
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-29 09:35
个人简介

IT运维工程师、律师 IT相关技术支持、法律咨询

文章分类

全部博文(116)

文章存档

2015年(1)

2014年(2)

2013年(5)

2012年(12)

2011年(4)

2010年(12)

2009年(21)

2008年(37)

2007年(22)

分类: LINUX

2008-02-27 15:51:46

为了防止忘记安装过程,在这里记录一下安装过程中的记录。大家可能看不懂,英语有限,没有中文输入,真是没有办法!

------------------------------------------------------------------------
install pureftpd:
error1:
During execute "./configure --prefix=......." the progress ..error information:
----error: your mysql client libraries aren't properly installed

answer:
cp /usr/local/mysql/lib/* /usr/lib
If prompt "overwise any file" information,please choice "no":

check mysql error information:
1.view /etc/my.cnf,notes the base dir (default:/var/lib/mysql)
2.view *.err file.

step1: ./configure ;make ;make check;make install
step2: cp configuration-file/pure-config.pl /usr/bin/
step3: chmod -R 777 /usr/bin/pure-config.pl
step4: mkdir /etc/pureftpd
step5: cp configuration-file/pure-ftpd.conf /etc/pureftpd
step6: cp pureftpd-mysql.conf /etc/pureftpd
step7: vi /etc/pureftpd/pureftpd-mysql.conf
modify someline:
   (1)MYSQLUser          root
   (2)MYSQLPassword      12345678   
   (3)MYSQLDatabase      pureftpd
   (4)MYSQLCrypt         md5      (It's needed.because of the database ftpuser,the user table,the password key is MD5 encryted!加密方式改成MD5就可以了(原来是CLEARTEXT) )

step8:groupadd ftpuser
      mkdir /home/ftpdir
      useradd -g ftpuser -s /sbin/nologin -d /home/ftpdir ftpwrite
      useradd -g ftpuser -s /sbin/nologin -d /home/ftpdir ftpread
      chown ftpwrite:ftpuser /home/ftpdir
step8-2:
     vi /etc/pureftpd/pure-ftpd.conf
     open the "MySQLConfigFile"  and modyfy "/etc/pureftpd/pureftpd-mysql.conf"

step 8-3:
      pure-config.pl /etc/pureftpd/pure-ftpd.conf
step9:
unzip the file ftp_v2.1.tar.gz to /usr/local/apache/htdocs
step10:
 user the internet explorer or firefox visit:
(ftp is the ftp_v2.1.tar.gz uncompress directory)

step10:
1)if the first display all "ok" then press button "setup2"
2)click "new install create a new database"
3)at the "configuration 'user manager for pureftpd' page .input the basic information:
eg. hostname: localhost
    username: root
    password: 11111111
4)press the buttion"continue"
5)input the basic information for mysql (It's same to the 3) step ,,and the some about is green OK!)
6)press the button "refresh" (below the page is green "ok!")
7)press the button "step 4"; input the some information!
8)press the button "save";"step5";
9)change the administrator password;
10)press the button"step 6/7" and all setup is completed!
11)user visite the pureftpd management page!



-----------------------------------------------
install and execute mysql
please by the manual install the mysql;
need to note:
the /etc/my.cnf contain the mysql.sock and so on items setup!!!
my my.cnf setup:

datadir=/tmp/mysql
socket=/tmp/mysql.sock
user=mysql
basedir=/tmp
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

/usr/local/mysql/bin/mysqld_safe --user=mysq &     (started mysql service)

------------------------------------------------
---------------------------------------------------------
observe the mysql service is already started and the port 3306 is listening.
install apache-2.* and setup the php support

1.   ./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --enable-mods-shared=most
2.  make ;make install


------------------------------------------------
install and setup the php module
--------------------------------------------------
1.        ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql

tags --with-gd --with-zlib --with-jpeg --with-png --enable-memory-limit --
disable-posix --with-config-file-path=/usr/local/lib


error1:
Note that the MySQL client library is not bundled anymore!
answer1:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/   (your mysql install directory)

2.make;make install
3.cp php.ini-dist /usr/local/php/lib/php/php.ini
   vi php.ini  修改配置文件
                  register_globals = On   一般在399行




阅读(1096) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~