Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 1安裝Web服務器的FreeBSD 6.0與Apache 2.2 , 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 Internet連接通過以太網網卡或調製解調器撥號
  • 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映像下載適合您的系統架構平台(例如,機上的Intel Pentium - IV或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) (光盤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的裁談會的計算機要運行的網絡服務器和權力的計算機上。
  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.您可以修改分區與分區的DOS或Windows ,符合FIPS和PResizer從工具目錄中的FreeBSD的CD ,或與第三方軟件,如分區,能夠修改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")在接下來的菜單中,您將需要建立一個DOS的風格( “分區” ) 
      partitioning scheme for your hard disk.分區計劃到硬盤。 If you simply wish to devote如果您只是想用 
      all disk space to FreeBSD (overwriting anything else that might be on所有的磁盤空間來的FreeBSD (覆寫其他任何可能的 
      the disk(s) selected) then use the (A)ll command to select the default磁盤(星期日)選定) ,然後使用(甲)所有命令,選擇默認 
      partitioning scheme followed by a (Q)uit.分區計劃之後, ( Q )的uit 。 If you wish to allocate only如果您想只能分配 
      free space to FreeBSD, move to a partition marked "unused" and use the自由空間的FreeBSD ,移動到一個分區標記為“未使用” ,並使用 
      (C)reate command. (丙) reate命令。 
                                     [  OK  ] [確定]  
    
                           [ Press enter or space ] [新聞進入或空間] 
    
  10. If you have more than 1 disk drives detected, FDISK will prompt you to select which disk drive you want to use.如果你有超過1磁盤驅動器的檢測,分區會提示您選擇的磁盤驅動器要使用。 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 ,記者答:當這樣做時,按下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現在,你需要創建的BSD分區裡面的Fdisk 
      partition(s) just created.分區(星期日)剛剛創建的。 If you have a reasonable amount of disk如果您有一個合理數量的磁盤 
      space (200MB or more) and don't have any special requirements, simply空間( 200或以上) ,不要有任何特殊要求,只需 
      use the (A)uto command to allocate space automatically.使用(甲)反對派命令自動分配空間。 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 ] [新聞進入或空間] 
    
  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.注: /變種將包含所有的日誌文件,郵件文件,數據庫文件等如果您正在運行的FreeBSD作為網絡服務器的http或ftp服務器,默認的大小/變種很有可能是不夠的未來。 You will need to increase the size of /var now by reducing the size of /usr.您將需要增加的規模/葉,減少現在的規模是/ 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.重複同樣的過程/葉,增加區塊或空間的分配。

    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.選擇[是]與箭頭鍵,並按下回車來安裝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,這將使你隨時獲得超過13300移植軟件包, 
      at a cost of around 440 MB of disk space when "clean" and possibly much在費用約440 MB的磁盤空間時, “乾淨” ,可能很多 
      more than that if a lot of the distribution tarballs are loaded以上,如果大量壓縮檔的分佈加載 
      (unless you have the extra CDs from a FreeBSD CD/DVD distribution (除非你有額外的CD從FreeBSD的CD / DVD的分佈 
      available and can mount it on /cdrom, in which case this is far less並可掛載在/光驅,在這種情況下,這是遠遠少於 
      of a problem).一個問題) 。  
    
      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 [是]無 
    
  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安裝光盤太舊,您可以選擇通過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> 您可以使用這些標籤: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> “刪除日期時間= “ ” “的<em> <i> <q cite=""> <strike>的<strong>

Subscribe to comments feature has been disabled. 訂閱評論功能已被禁用。 To receive notification of latest comments posted, subscribe to 收到通知的最新評論張貼,訂閱 My Digital Life Comments RSS feed 我國數字化生活的評論RSS種子 or register to receive 接收登記 new comments in daily email digest. 中新評論的電子郵件,每天消化。
Custom Search

New Articles新文章

Incoming Search Terms for the Article收到的搜索字詞的文章

install mysql 60 on freebsd 安裝MySQL的60個在FreeBSD - - freebsd webserver FreeBSD的網絡服務器 - - configure mysql 50 di freebsd via ports 配置MySQL的50個地通過港口的FreeBSD - - modify freebsd boot manager 修改FreeBSD的開機管理 - - apache 2.2 mysql 阿帕奇2.2數據庫 - - live freebsd with apache php and ftp 生活的FreeBSD的PHP與Apache和FTP - - refresh disk space available freebsd 刷新可用磁盤空間的FreeBSD - - webserver mit freebsd 麻省理工學院的網絡服務器上的FreeBSD - - iso image web server with MySQL Database iso映像Web服務器與MySQL數據庫 - - vertaal use any sn for Confirmation Code and press next. vertaal使用任何錫確認代碼,然後按下旁邊。 - - freebsd FreeBSD的 - - web server iso Web服務器等 - - installing webserver on freebsd 安裝網絡服務器在FreeBSD - - sysinstall amd64 sysinstall的AMD64 - -