FreeBSD 6.2-BETA2 WebServer架设总结

http://tech.ddvip.com   2008年01月21日    社区交流

内容摘要:如果您要是装FreeBSD 6.2-BETA2 似乎已经很安全稳定的了.就没有必要花二三个小时去重新编译吧.起码安装WEBserver不用.只要您把安全做好.我认为利用系统漏洞入侵您的服务器不太可能..有必要的时候再重新编译..

  No.15 phpMyAdmin

  #cd /usr/ports/distfiles

  #tar -zxvf phpMyAdmin-2.9.0.2.tar.gz

  x phpMyAdmin-2.9.0.2/themes/original/img/spacer.png

  x phpMyAdmin-2.9.0.2/themes/original/img/vertical_line.png

  x phpMyAdmin-2.9.0.2/themes/original/img/window-new.png

  x phpMyAdmin-2.9.0.2/themes/original/info.inc.php

  x phpMyAdmin-2.9.0.2/themes/original/layout.inc.php

  x phpMyAdmin-2.9.0.2/themes/original/screen.png

  #mv phpMyAdmin-2.9.0.2 /usr/local/www/apache22/data/phpMyAdmin

  #cd /usr/local/www/apache22/data/phpMyAdmin

  #cp config.sample.inc.php config.inc.php

  #ee config.inc.php

  //找到

  $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

  //改成

  //如果这儿不添的话.他会提示你"配置文件现在需要绝密的短语密码(blowfish_secret)。"

  $cfg['blowfish_secret'] = 'fuck'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

  //'fuck'这个你随便写.不一定是root的密码..

  //继续找

  $cfg['Servers'][$i]['controluser'] = 'pmausr';

  $cfg['Servers'][$i]['controlpass'] = 'pmapass';

  //找到这句改成

  $cfg['Servers'][$i]['controluser'] = 'root';

  $cfg['Servers'][$i]['controlpass'] = '';

  //打开http://ip/phpMyAdmin

  //欢迎使用 phpMyAdmin 2.9.0.2

作者:Stuhack    责编:豆豆技术应用

正在加载评论...