Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 1安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第1部分

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server 安装的Apache 2.2 , MySQL的5和PHP 5在FreeBSD的6.0为一个可靠的Web服务器

Part 1 - Installing FreeBSD 6.0 with Ports Collection Updating第1部分-安装在F reeBSD6 .0与港口收集更新

Minimum Requirements:最低要求:

  • CD-RW or DVD-RW Drive CD - RW或DVD - RW驱动器
  • Internet Connection via Ethernet Network Card or Modem Dial-up网际网路连线透过乙太网路卡或调制解调器拨号上网
  • Sufficient disk space足够的磁盘空间

  1. Download latest version of下载最新版的 FreeBSD FreeBSD的 . Select ISO image download that suits your system architecture platform (for example, machine on Intel Pentium-IV or AMD AthlonXP is based on i386, while AMD Opteron is amd64 architecture) by clicking on corresponding [ISO].选择ISO影像下载适合您的系统架构平台(例如,机上的英特尔奔腾四或AMD athlonxp是基于i386的,而AMD Opteron处理器是AMD64架构) ,通过点击相应的[国际标准化组织] 。
  2. Download 6.0-RELEASE-i386-disc1.iso, or any other similar file.下载6.0 -释放的I386 - disc1.iso ,或任何其他类似的文件。 (Disc 1 is sufficient to install a fully working FreeBSD box) ( Disc 1的是有足够的安装工作,充分FreeBSD的方块)
  3. Burn the file (ISO image) to a CD disc (refer to your CD-RW or DVD-RW manual if you not sure of how to burn a image file).烧伤文件( ISO影像)到CD光盘(请参阅您的CD - RW或DVD - RW手册,如果您不知道如何烧录影像档) 。
  4. Insert the newly created FreeBSD CD to the computer that you want to run as web server and power on the computer.插入新创建的FreeBSD的CD到电脑上您要运行的作为Web Server和权力,在电脑上。
  5. If you want to use multiple operating systems on the computer to co-exist, or your system already has operating system installed, you must free up a primary partition for FreeBSD installation.如果您想使用多重作业系统的电脑,以合作的存在,或者您的系统已安装作业系统,您必须免费了一个主分区为FreeBSD的安装。 You can modify partition with fdisk on DOS or Windows, FIPS and PResizer from tools directory in FreeBSD CD, or with third-party software like PartitionMagic that is able to modify NTFS partition.您可以修改分区的Fdisk对DOS或Windows ,符合FIPS和presizer从工具目录中的FreeBSD的CD ,或与第三方软件一样, partitionmagic是可以修改NTFS分区。
  6. Boot from CD when computer starts up.从CD启动时,电脑启动。 If booting from CD capability is not enabled or has lower priority than hard disk, change it in BIOS.如果从CD启动的能力,未启用或已较低优先的比硬盘,改变它在BIOS 。
  7. Once FreeBSD boots up, you will see a menu titled ’sysinstall Main Menu’ that contains all the installation options.一旦FreeBSD的靴子,您会看到一个菜单名为' sysinstall主菜单'包含所有的安装选项。
    FreeBSD的sysinstall
  8. Select ‘Standard’ and press Enter.选择'标准' ,然后按下ENTER 。
  9. Press Enter (or Space) when shown the following message:按下ENTER (或空间)时,表现出以下信息:
     Message  In the next menu, you will need to set up a DOS-style ("fdisk")  partitioning scheme for your hard disk.消息在未来的菜单上,您将需要设立一个DOS的作风( “的Fdisk ” )分割计划,为您的硬盘上。 If you simply wish to devote  all disk space to FreeBSD (overwriting anything else that might be on  the disk(s) selected) then use the (A)ll command to select the default  partitioning scheme followed by a (Q)uit.如果您只是希望把所有的磁盘空间来的FreeBSD (覆盖其他任何可能在磁盘上( )被选中) ,然后使用(一)当地雇员命令,以选择默认的分割计划,然后由( q )的uit 。 If you wish to allocate only  free space to FreeBSD, move to a partition marked "unused" and use the  (C)reate command.如果你想分配,只有自由空间,以FreeBSD的,移动到一个分区标记为“未使用”和使用(三) reate命令。 [  OK  ]                         [ Press enter or space ] [确定] [按下ENTER或空格] 
  10. If you have more than 1 disk drives detected, FDISK will prompt you to select which disk drive you want to use.如果您有多于1磁盘驱动器的检测, FDISK的将提示您选择磁盘驱动器您要使用的。 Just select accordingly (For the purpose of this tutorial guide, select the first primary hard disk).只需选择相应的(为目的的本教程为指导,选择第一个主硬盘) 。
    FreeBSD上的Fdisk
  11. You will be shown FDISK Partition Editor.你会显示的Fdisk分区编辑器。 If you already has some partitions defined, your screen will typically shown like below:如果您已经有一些分割的定义,您的屏幕上通常会表现出像如下:
    FreeBSD上的Fdisk
    Depending on how is the layout of your current hard disk, you may need to press D to delete a or some partitions to make room for FreeBSD partition.视如何布局是您目前的硬盘,您可能需要按D删除一个或一些分区,以腾出空间给FreeBSD的分区。 You can create a partition by pressing C. If your hard drive is empty and you would like to use entire disk for FreeBSD, press A. When done, press Q to finish and exit the FDISK process.您可以创建一个分区迫切c.如果您的硬盘驱动器是空的,你想用整个磁盘为FreeBSD的,按A时,做了,按q要完成并退出FDISK的进程。
  12. Next, a boot manager needs to be installed.其次,开机管理需要安装。 You can select either BootMgr or Standard (Standard will suffice if FreeBSD is going to be the only operating system on this machine and it’s installed on the first hard disk).您可以选择bootmgr或标准(标准就够了,如果在FreeBSD是去是唯一的作业系统在这台计算机和它的安装在第一个硬盘) 。
    FreeBSD的开机管理
  13. Press Enter or Space when shown the following message:按下ENTER或空间时,显示下列讯息:
     Message  Now, you need to create BSD partitions inside of the fdisk  partition(s) just created.消息现在,您需要创建的BSD分区里面的Fdisk分区( )刚刚创建的。 If you have a reasonable amount of disk  space (200MB or more) and don't have any special requirements, simply  use the (A)uto command to allocate space automatically.如果您有一个合理数量的磁盘空间(需要200 MB或以上) ,不要有任何特殊要求,只需直接使用(一)反对派命令自动分配空间。 If you have  more specific needs or just don't care for the layout chosen by  (A)uto, press F1 for more information on manual layout.如果您有更多的具体需要,或只是不照顾布局的选择(一)反对派,按下F1的更多信息手册布局。 [  OK  ]                           [ Press enter or space ] [确定] [按下ENTER或空格] 
  14. At FreeBSD Disklabel Editor, press A to let FreeBSD automatically creates the partitions and set the partitions to default sizes.在FreeBSD的disklabel编辑器,按下一个让FreeBSD的自动创建分区,并设置分区的默认大小。
    FreeBSD的disklabel
    Note: /var will contains all log files, mail files, database files and etc. If you’re running FreeBSD as http web server or ftp server, the default size of /var is most likely not enough in future.备注:在/ var将包含所有的日志文件,邮件文件,数据库文件等如果您正在运行的FreeBSD作为HTTP Web服务器或FTP伺服器,默认大小和/ var是最有可能不足够的未来。 You will need to increase the size of /var now by reducing the size of /usr.您将需要增加的规模和/ var现在减少的大小是/ usr 。 To do this, scroll to /usr and press D to delete /usr partition.为此,滚动为/ usr ,并按下D键删除是/ usr分区。 Then scroll back to the first row (where specified free space available), press C, then key in your desired and reduced amount of blocks or space to allocate to /usr partition, select FS (A file system) and key in /usr as mounting point.然后向上滚动,回到第一行(如指定的可用空间) ,按C键,那么关键在您想要的和减少的金额区块或空间分配为/ usr分区中,选择财政司司长(一文件系统)和关键在/ usr作为安装点。 Repeat the same process for /var, with increased blocks or space allocation.重复同样的过程和/ var ,增加区块或空间的分配。

    Press Q when done to exit.新闻q时,做了退出。

  15. At Choose Distributions screen, select Developer or User (if you don’t want the sources).在选择分布画面中,选择开发或用户(如果您不想来源) 。
    FreeBSD的分布
  16. Select [Yes] with arrow keys and press Enter to install FreeBSD Ports Collection when prompted.选择[是]与箭头键,然后按下ENTER安装FreeBSD的港口收集提示时。 This allows easy installation of Apache, MySQL and PHP later.这使得易于安装的Apache , MySQL和PHP稍后。
     User Confirmation Requested  Would you like to install the FreeBSD ports collection?用户请确认你是否想安装FreeBSD的港口收集? This will give you ready access to over 13,300 ported software packages,  at a cost of around 440 MB of disk space when "clean" and possibly much  more than that if a lot of the distribution tarballs are loaded  (unless you have the extra CDs from a FreeBSD CD/DVD distribution  available and can mount it on /cdrom, in which case this is far less  of a problem).这将让您随时获得超过13300移植的软件包,费用约440 MB的磁盘空间时, “干净” ,并可能远不止,如果有很多分布的压缩档加载(除非你有额外的光碟从1 FreeBSD的CD / DVD的分布可资利用,并且能挂载就一定要是/ ,在这种情况下这是远不及的一个问题) 。 The Ports Collection is a very valuable resource and well worth having  on your /usr partition, so it is advisable to say Yes to this option.港口收集是一个非常宝贵的资源,以及值得拥有您的是/ usr分区,所以是可取的说是这个选项。 For more information on the Ports Collection & the latest ports,  visit:      http://www.FreeBSD.org/ports                                  [ Yes ]     No更多信息,对港口的采集与最新的港口,请访问: http://www.freebsd.org/ports [是]没有 
  17. After returning to Choose Distributions screen, scroll to Exit with arrow keys and press Enter.回国后选择的分布屏幕上,滚动到出口与箭头键,然后按下ENTER 。
  18. Select CD/DVD when prompted to Choose Installation Media.选择的CD / DVD当提示选择安装媒体。
    FreeBSD的安装媒体
    Note: If your FreeBSD Installation CD is too old, you can choose to install via FTP, which will fetch and download the latest build release.注意:如果您的FreeBSD的安装CD是太旧,您可以选择要安装通过FTP ,这将市值和下载最新的建立释放。
  19. Configuration of FreeBSD has been set and installation can be started.配置FreeBSD上已成立和安装,可以开始使用。 Commit to the installation of FreeBSD when prompted.承诺安装FreeBSD的提示时。
     User Confirmation Requested  Last Chance!用户确认要求的最后一次机会! Are you SURE you want to continue the installation?您确定要继续安装? If you're running this on a disk with data you wish to save then WE  STRONGLY ENCOURAGE YOU TO MAKE PROPER BACKUPS before proceeding!如果您正在运行,这在磁盘上的数据你想保存的话,我们强烈建议您作出适当的备份,然后才! We can take no responsibility for lost disk contents!我们可以不承担任何责任失去了磁盘的内容! [ Yes ]    No [是]没有 

    Warning: All data on the hard disk may be lost!警告:所有数据在硬盘上可能会丢失! The hard disk will be re-partition and re-format during installation.硬盘将会重新分区和重新格式化安装过程中。

  20. After installation is completed, the following message will appears:安装后完成后,下面的消息将出现:
     Message   Congratulations!讯息的祝贺! You now have FreeBSD installed on your system.您现在有FreeBSD的安装在您的系统。 We will now move on to the final configuration questions.我们现在进入到最后的配置问题。 For any option you do not wish to configure, simply select No.   If you wish to re-enter this utility after the system is up, you may do so by typing: /stand/sysinstall .任何选项,您不想配置,只需选择号如果你想重新输入此实用程序后,系统是否是最新的,你可以这样做打字: /立场/ sysinstall 。 [ OK ]                         [  Press enter to continue  ] [确定] [按下ENTER继续] 

    Press Enter to proceed to post-installation configuration.按下ENTER ,以进行安装后的配置。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要说明 :这是一个机器翻译网页是“按原样”提供的担保。 Machine translation may be difficult to understand.机器翻译可能很难理解。 Please refer to请参阅 original English article英文原版的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和贡献,或取得技术的支持和帮助,在 My Digital Life Forums 我的数字生活论坛 .



Leave a Reply离开的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用这些标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <删除日期时间= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting订阅无评论


Custom Search

New Articles新的条款,

Incoming Search Terms for the Article传入的搜索条件文章

freebsd apache php mysql FreeBSD上的Apache的PHP的MySQL - - webserver freebsd 网页伺服器的FreeBSD - - freebsd webserver FreeBSD的网页伺服器 - - freebsd FreeBSD的 - - FreeBSD OS on AMD Opteron servers FreeBSD的操作系统对AMD Opteron处理器的服务器 - - Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 1 安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第1部分 - - Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server 安装的Apache 2.2 , MySQL的5和PHP 5在FreeBSD的6.0为一个可靠的Web服务器 - - freebsd install mysql FreeBSD上安装的MySQL - - freeBSD web server FreeBSD的Web伺服器 - - mysql install freebsd MySQL的安装和FreeBSD - - installing web server 安装Web服务器 - - Installing Web Server in FreeBSD 6.0 安装Web服务器在FreeBSD的6.0 - - webserver iso image 网页伺服器ISO影像 - - apache +php5 +mysql +xp +part1 阿帕奇+ php5 + MySQL的+ XP中+第一部分 - - freebsd apache layout FreeBSD的阿帕奇布局 - - Apache with MYSQL configuration in FreeBSD 阿帕奇与MySQL配置在FreeBSD上 - - Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 2 安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5中-第2部分 - - Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 part 1 安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5中第1部分 - - install mysql freebsd MySQL的安装和FreeBSD - - installing-web-server-in-freebsd-60-with-apache-22-mysql-50-and-php-5-part-1 安装- Web伺服器-在- FreeBSD的- 60 -与-阿帕奇- 22 - MySQL的- 50 -和-的PHP - 5 -部分- 1 - - install webserver on freebsd 安装的网络服务器在FreeBSD - - " and PHP 5 - Part 2" “和PHP 5中-第2部分” - - Partitionierung freebsd webserver partitionierung FreeBSD的网页伺服器 - - free bsd webserver 免费的BSD的网络服务器 - - freebsd web server guide FreeBSD的Web服务器指南 - - manual FreeBSD 6.0 手册的FreeBSD 6.0 - - apache 2.2 mysql 阿帕奇2.2 MySQL的 - - install webserver freebsd 安装FreeBSD的网页伺服器 - - freebsd webserver antivirus FreeBSD的网页伺服器防毒软体 - - remove apache 2.2 freebsd 删除的Apache 2.2的FreeBSD - - flash media server freebsd 闪光的媒体服务器的FreeBSD - - freebsd server partitions FreeBSD的服务器分区 - - webserver freeBSD 网页伺服器的FreeBSD - - install webserver di freebsd 安装的网络服务器直接投资的FreeBSD - - FreeBSD FTP 在FreeBSD的FTP - - freebsd apache 2.2 php mysql tutorial FreeBSD上的Apache 2.2 PHP的MySQL的补习 - - freebsd sysinstall php5 FreeBSD的sysinstall php5 - - freebsd apache ftp FreeBSD的阿帕奇的FTP - - apache part 1 Apache的第1部分 - - install mysql 60 freebsd 安装MySQL的60和FreeBSD - - apache php mysql freebsd 阿帕奇的PHP的MySQL的FreeBSD - - guide to install mysql 5 openbsd 指导安装的MySQL 5为openbsd - - mysql freebsd install MySQL的FreeBSD的安装 - - install freebsd web 安装FreeBSD的网页 - - freebsd sysinstall apache FreeBSD的sysinstall阿帕奇 - - enable partition in mysql-5.0 使分割在MySQL - 5.0 - - Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part1 安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第一部分 - - mysql 5.0 on startup freebsd MySQL 5.0的对FreeBSD的启动 - - installing freebsd web server 安装FreeBSD的Web伺服器 - - install flash media server freebsd 安装Flash媒体服务器的FreeBSD - -