:::

18-1 佈署到主機上

一、Apache的設定

  1. Apache 版本需要 2.4 以上
  2. 確認設定檔 中的設定,確認底下module有啟動(前面無#註解符號):
    • mod_authz_host
    • mod_rewrite
  3. 修改Apache的設定檔
  4. DocumentRoot 請設定至專案的 public 目錄,(若不打算變更的話,屆時只要在瀏覽器上輸入 http://網址/專案/public/ 亦可)
  5. 接著找到網頁目錄的部份,將:
  6. Options Indexes FollowSymLinks MultiViews

    改為(不改會出現Forbidden訊息)

    Options +Indexes +FollowSymLinks +MultiViews
  7. 例如:
    <Directory "${US_ROOTF_WWW}">
        #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.4/mod/core.html#options
        # for more information.
        #
        #Options Indexes FollowSymLinks
        #Options Indexes Includes
        Options +Indexes +FollowSymLinks +MultiViews
    
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride All
    
        #
        # Controls who can get stuff from this server.
        #
        Require all granted
    </Directory>

     

二、PHP的設定

  1. 確定 php.ini 中的這兩個延伸件有啟用:
    extension=php_openssl.dll
    extension=php_fileinfo.dll

三、修改目錄權限

  1. 底下這幾個目錄需設為777
    • bootstrap/cache
    • storage

:::

書籍目錄

展開 | 闔起

https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D43%26tbdsn%3D1533

計數器

今天: 1421142114211421
昨天: 4096409640964096
總計: 7454949745494974549497454949745494974549497454949