FreeBSD 6.1 入门级Web服务器配置手记

豆豆网   技术应用频道   2007年04月13日  【字号: 收藏本文

本文详细介绍FreeBSD 6.1 入门级Web服务器配置手记

  # cd /usr/www/phpMyAdmin

  # cp ./libraries/config.default.php config.inc.php

  # ee config.inc.php

  CODE:

$cfg['PmaAbsoluteUri'] = 'http://192.168.163.130/phpMyAdmin/'    # 设置phpMyAdmin的绝对地址
$cfg['blowfish_secret'] = 'host';                                    # 设置cookie加密
$cfg['Servers'][$i]['auth_type'] = 'cookie'                        # 设置认证方式

  QUOTE:

  # chmod 755 config.inc.php

  3、FTP设置

  配置ftp(系统自带)

  QUOTE:

  # ee /etc/inetd.conf

  CODE:

ftp    stream    tcp    nowait    root    /usr/libexec/ftpd    ftpd    -l -h

  QUOTE:

  # ee /etc/rc.conf

  CODE:

  inetd_enable="YES"

  启动ftp

  QUOTE:

  # killall -HUP inetd

  添加ftp用户组

  QUOTE:

  # pw groupadd ftpgroup -g 10001

  添加ftp用户

  QUOTE:

# adduser
Username:ftp
Full name:
Uid (Leave empty for default):1001
Login group [ftpuser]: ftpgroup
Login group is ftpgrou. Invite ftpuser into other groups? []:
Login class [default]:
Shell (sh csh tcsh zsh nologin) [sh]:
Home directory [/home/ftpuser]:/usr/www
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username        :    ftpuser
Password        :    *****
Full Name        :
Uid                :    1001
Class            :
Groups            :    ftpgroup
Home            :    /usr/www
Shell            :    /bin/sh
Locked            :    no
OK? (yes/no)    :    yes
adduser: INFO: Successfully added (ftpuser) to the user database.
Add another user? (yes/no): no
Goodbye!

责编:豆豆技术应用

正在加载评论...