FreeBSD平台安装配置web服务器

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

本文详细介绍FreeBSD平台安装配置web服务器

  出现下面显示证明mysql安装成功!

  Welcome to the MySQL monitor. Commands end with ; or g.

  Your MySQL connection id is 2 to server version: 3.23.52

  Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

  mysql>

  键入exit退出mysql。

  为mysql的root用户设置一个口令123456

  # mysqladmin -u root password '123456'

  现在我们来安装一个支持php+mysql的论坛。到 http://www.faeryboard.com/showthread.php?s=&threadid=2429 去下载完美版的仙境论坛程序。将下载的rar压缩包解开,然后使用ftp上传到/home/ylf/app目录。

  事先备份web服务器演示页面

  # cd /usr/local/www/data

  # mkdir backup

  # mv * backup

  将论坛程序拷贝到/usr/local/www/data目录

  # cd /home/ylf/app/vbb2.3.0final

  # cp –r * /usr/local/www/data

  编辑论坛配置文件:

  # vi /usr/local/www/data/admin/config.php

  内容如下:

  ^M

  /////////////////////////////////////////////////////////////^M

  // Please note that if you get any errors when connecting, //^M

  // that you will need to email your host as we cannot tell //^M

  // you what your specific values are supposed to be     //^M

  /////////////////////////////////////////////////////////////^M

  ^M

  // type of database running^M

  // (only mysql is supported at the moment)^M

  $dbservertype='mysql';^M               #数据库类型

责编:豆豆技术应用

正在加载评论...