Q & A

    版本為 20:31, 26 Nov 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    Q & A

    Q: 網站轉址到 http://class.ruten.com.tw/user/index...p?s=missing007 (露天賣場) 出現錯誤

    A:這是因為設定 Redirect Path 時,系統會在轉址位址的末碼最後加上/,有些網站對於這樣的 URL 會出現頁面顯示錯誤。

    解決方法是,在 Redirect Path 的 URL 最後加上&試試。

    Q: 如何修改網站的 Apache 參數

    A:比如 Gallery2 安裝時,必須設定 PHP 參數

    session.save_path "/var/www/clients/client1/webXX/php_session_tmp"

    方法:

    1. 以 admin 登入,Sites > 選擇網站 > Domain > PHP = Mod-PHP
    2. 以 admin 登入,Sites > 選擇網站 > Options > Apache Directives
      php_admin_value session.save_path "/var/www/clients/client1/webXX/php_session_tmp"
    3. 等 1-2 分後設定會套用
       
    Q: 主機置於 NAT 網路內,外部用戶可以登入 FTP,但無法顯示目錄

    A:編輯 /etc/pure-ftpd/pure-ftpd.conf

    PassivePortRange          40110 40210
    

    重啟服務 pure-ftpd

    # service pure-ftpd stop
    # service pure-ftpd start 
    

    變更網路防火的規則

    將 Port 40110-40210 轉送到主機內部 IP

    Q: 服務 pop3 & imap 出現 offline

    A:Admin UI > Monitor > Show Services

    POP3-Server: offline
    IMAP-Server: offline

    解決:編輯 /etc/dovecot.conf

    #listen = *, [::]
    listen = * 
    

    重啟服務 dovecot

    service dovecot start
    
    Q: 安裝完後的初始化設定

    A:對主要的 domain name 新增 DNS Zone。

    Admin UI > DNS > Add new DNS zone with Wizard

    Q: Limits 內的 main template 與 additional template 用法

    A:
    1. 狀況描述:

    mail template)

    • web domain 數量限制:2

    additional template)

    • web domain 數量限制:5

    當 Client/Reseller 選擇了 main template 及 additional template 時,實際 web domain 數量限制為 7。

    2. 名詞關聯

    • master template -> main template
    • addon template -> additional template
       

    3. 如果 master template 選擇 Custom,則會套用頁面下方的設定參數。

    Q:什麼是 PHP Options

    A:原文說明如下:

    PHP Options: Specify which PHP modes should be available for the client when he creates/modifies a web
    site. The following four modes are available: Fast-CGI, CGI, Mod-PHP, SuPHP.

    ‧ Fast-CGI:
    Advantages:
    ‧ Scripts will be executed with user privileges of the web site;
    ‧ More than one PHP version can be run as FastCGI;
    ‧ Might be better in speed compared to CGI and suPHP.
    Disadvantages:
    ‧ php.ini values cannot be changed via PHP scripts, vhost files, .htaccess files. But it is possible to
    use the Custom php.ini settings field on the Options tab of a web site in ISPConfig to
    specify custom php.ini settings (see chapter 4.6.1.1).

    ‧ CGI:
    Advantages:
    ‧ Scripts will be executed with user privileges of the web site;
    ‧ More than one PHP version can be run as CGI.
    Disadvantages:
    ‧ CGI might use a little more memory (RAM) - therefore, it's not recommended to run PHP as CGI on
    slow virtual servers;
    ‧ php.ini values cannot be changed via PHP scripts, vhost files, .htaccess files. But it is possible to
    use the Custom php.ini settings field on the Options tab of a web site in ISPConfig to
    specify custom php.ini settings (see chapter 4.6.1.1).

    ‧ Mod-PHP:
    Advantages:
    ‧ Speed;
    ‧ Needs less memory (RAM) than CGI;
    ‧ php.ini values can be changed via PHP scripts, vhost files, .htaccess files.
    Disadvantages:
    ‧ Scripts are being executed with Apache privileges, which might lead to some security related problems;
    ‧ Only one version of PHP can be installed as Apache module;
    ‧ You cannot use the Custom php.ini settings field on the Options tab of a web site in
    ISPConfig to specify custom php.ini settings (see chapter 4.6.1.1).

    ‧ SuPHP:
    Advantages:
    ‧ Scripts will be executed with user privileges of the web site;
    ‧ Each vhost can have its own php.ini file;
    ‧ Needs less memory (RAM) than CGI;
    ‧ More than one PHP version can be run as suPHP.
    Disadvantages:
    ‧ php.ini values cannot be changed via PHP scripts, vhost files, .htaccess files. But it is possible to
    use the Custom php.ini settings field on the Options tab of a web site in ISPConfig to
    specify custom php.ini settings (see chapter 4.6.1.1);
    ‧ SuPHP might be a little slower than mod_php.

    Recommendations:
    ‧ High-Traffic Web Sites: Fast-CGI + suExec
    ‧ Low-Traffic Web Sites: CGI + suExec or SuPHP

    Powered by MindTouch Core