Installing LifeType FAQ

Installing LifeType FAQ

出自LifeType 中文文件計畫

(修訂版本間差異)
跳轉到: 導航, 搜尋
(安裝常見問題集)
第26行: 第26行:
  ...
  ...
那代表你自行修改了 '''/config/config.properties.php''' 這個檔案,所以 LifeType 把安裝過程當作『程式升級』,而非『全薪安裝』。解決方式就是重新解壓縮把為修改過的 '''config.properties.php''' 上傳/複製到 LifeType 的 /config 目錄,然後重新重新執行安裝精靈([http://your-blog-url/wizard.php http://your-blog-url/wizard.php])。
那代表你自行修改了 '''/config/config.properties.php''' 這個檔案,所以 LifeType 把安裝過程當作『程式升級』,而非『全薪安裝』。解決方式就是重新解壓縮把為修改過的 '''config.properties.php''' 上傳/複製到 LifeType 的 /config 目錄,然後重新重新執行安裝精靈([http://your-blog-url/wizard.php http://your-blog-url/wizard.php])。
 +
 +
==當我使用/安裝的時候,為什麼一直出現 '''空白頁面''' 或 '''Allowed memory size of 8388608 bytes exhausted''' 的訊息呢?==
 +
 +
如果你在安裝或是使用 LifeType,卻突然出現空白頁面或是下面的訊息時:
 +
 +
Fatal error: 
 +
Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in /var/www/blog/class/template/smarty/Smarty_Compiler.class.php</b> on line 1580
 +
 +
那代表你的 PHP 的設定的記憶體使用限制,並不允許 LifeType 使用超過 8MB 的記憶體。解決的方式如下:
 +
 +
1. 如果這是你的機器,那麼你可以修改 '''php.ini'''。把 '''php.ini''' 中的 '''memory_limit''' 改為下面的設定:
 +
 +
memory_limit=16M
 +
 +
2. 如果這是虛擬主機,而你得主機商允許你修改 '''.htaccess''',那麼你可以在 '''.htaccess''' 加入:
 +
 +
php_value memory_limit 16M
 +
 +
3. 最後。如果主機商不允許你修改 .htaccess 那麼你剩下的辦法就是修改程式了。請把 LifeType 根目錄下的 '''index.php'''、'''summary.php'''、'''rss.php'''、'''admin.php''' 幾個程式全加上:
 +
 +
ini_set("memory_limit", "16M");

在2005年12月20日 (二) 14:39所做的修訂版本

目錄

安裝常見問題集

本區是用來整理 LifeType中文論壇 上安裝與設定相關的常見問題。希望能對入門的使用者有些許的幫助。問題內容將隨論壇問題數量增加,目前尚在整理中。

我把 LifeType 的程式上傳到我的網站後,我要怎麼安裝呢?

當你把 LifeType 的程式成功的上傳到你的網站上後,你必須要執行安裝精靈,才能安裝 LifeType 程式。這時候你如果直接看你網站,你會看到:

The wizard.php script has to be removed after the installation process.
Please remove it first to continue.

安裝的方式很簡單。直接在瀏覽器的網址列輸入 http://your-blog-url/wizard.php 就可以安裝了。安裝後記得要把 wizard.php 這個程式刪掉,否則你會一直看到上面的訊息喔。

為什麼安裝到步驟二時會出現 Table 'xxx_articles' doesn't exist 的訊息?

如果你安裝到步驟二發生,出現下面的訊息:

New table Map of categories to articles created successfully.
New table Definition of custom fields created successfully.
New table Custom fields that have been assigned to articles created successfully.
New table Text of the articles created successfully.
** New tables created successfully **
Error modifying table Articles: Table 'plog_articles' doesn't exist
Table 'plog_articles' doesn't exist
Table 'plog_articles' doesn't exist
...

那代表你自行修改了 /config/config.properties.php 這個檔案,所以 LifeType 把安裝過程當作『程式升級』,而非『全薪安裝』。解決方式就是重新解壓縮把為修改過的 config.properties.php 上傳/複製到 LifeType 的 /config 目錄,然後重新重新執行安裝精靈(http://your-blog-url/wizard.php)。

當我使用/安裝的時候,為什麼一直出現 空白頁面Allowed memory size of 8388608 bytes exhausted 的訊息呢?

如果你在安裝或是使用 LifeType,卻突然出現空白頁面或是下面的訊息時:

Fatal error:  
Allowed memory size of 8388608 bytes exhausted (tried to allocate 11520 bytes) in /var/www/blog/class/template/smarty/Smarty_Compiler.class.php</b> on line 1580

那代表你的 PHP 的設定的記憶體使用限制,並不允許 LifeType 使用超過 8MB 的記憶體。解決的方式如下:

1. 如果這是你的機器,那麼你可以修改 php.ini。把 php.ini 中的 memory_limit 改為下面的設定:

memory_limit=16M

2. 如果這是虛擬主機,而你得主機商允許你修改 .htaccess,那麼你可以在 .htaccess 加入:

php_value memory_limit 16M

3. 最後。如果主機商不允許你修改 .htaccess 那麼你剩下的辦法就是修改程式了。請把 LifeType 根目錄下的 index.phpsummary.phprss.phpadmin.php 幾個程式全加上:

ini_set("memory_limit", "16M");