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足够的磁盘空间
- 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架构) ,通过点击相应的[国际标准化组织] 。
- 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的方块)
- 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手册,如果您不知道如何烧录影像档) 。
- 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和权力,在电脑上。
- 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分区。
- 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 。
- Once FreeBSD boots up, you will see a menu titled ’sysinstall Main Menu’ that contains all the installation options.一旦FreeBSD的靴子,您会看到一个菜单名为' sysinstall主菜单'包含所有的安装选项。

- Select ‘Standard’ and press Enter.选择'标准' ,然后按下ENTER 。
- 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或空格]
- 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).只需选择相应的(为目的的本教程为指导,选择第一个主硬盘) 。

- You will be shown FDISK Partition Editor.你会显示的Fdisk分区编辑器。 If you already has some partitions defined, your screen will typically shown like below:如果您已经有一些分割的定义,您的屏幕上通常会表现出像如下:

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的进程。 - 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是去是唯一的作业系统在这台计算机和它的安装在第一个硬盘) 。

- 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或空格]
- At FreeBSD Disklabel Editor, press A to let FreeBSD automatically creates the partitions and set the partitions to default sizes.在FreeBSD的disklabel编辑器,按下一个让FreeBSD的自动创建分区,并设置分区的默认大小。

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时,做了退出。
- At Choose Distributions screen, select Developer or User (if you don’t want the sources).在选择分布画面中,选择开发或用户(如果您不想来源) 。

- 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 [是]没有
- After returning to Choose Distributions screen, scroll to Exit with arrow keys and press Enter.回国后选择的分布屏幕上,滚动到出口与箭头键,然后按下ENTER 。
- Select CD/DVD when prompted to Choose Installation Media.选择的CD / DVD当提示选择安装媒体。

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 ,这将市值和下载最新的建立释放。 - 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.硬盘将会重新分区和重新格式化安装过程中。
- 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 我的数字生活论坛 . 。
Related Articles相关文章
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第4部分
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第3部分
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5安装Web服务器在FreeBSD的6.0与2.2的Apache , MySQL 5.0的和PHP 5 -第5部分
- Easily Set Up Web Server with XAMPP很容易成立的Web伺服器与xampp
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 1安装Web服务器在Windows XP的Apache2 , php5和mysql4 -第1部分
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3安装Web服务器在Windows XP的Apache2 , php5和mysql4 -第3部分
- FreeBSD Apache HTTP Accept Filter Error FreeBSD上的Apache的HTTP接受过滤器的错误
- Using phpMyAdmin for Effective MySQL Management in Windows XP使用phpmyadmin有效MySQL的管理在Windows XP
- PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions PHP 5中无法打开HTTP请求流与fopen或fsockopen职能
- Enable Logging of Slow Queries (Slow Query Log) in MySQL Database启用日志记录慢查询(慢速查询日志)在MySQL数据库


















