想裝wordpress, 包含apache2、mysql5、php5都照網路上的文章安裝設好後, 啟動wordpress的時候出現錯誤訊息
- 代碼: 選擇全部
Warning: require_once(/etc/wordpress/wp-settings.php) [function.require-once]: failed to open stream: No such file or directory in /etc/wordpress/wp-config.php on line 21
Fatal error: require_once() [function.require]: Failed opening required '/etc/wordpress/wp-settings.php' (include_path='.:/usr/share/php:/usr/share/pear') in /etc/wordpress/wp-config.php on line 21
wp-config.php的設定檔
- 代碼: 選擇全部
<?php
// ** MySQL settings ** //
define('DB_NAME', 'blog'); // The name of the database
define('DB_USER', '*******'); // Your MySQL username
define('DB_PASSWORD', '*******'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!
// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', 'zh_TW.UTF-8');
/* That's all, stop editing! Happy blogging. */
define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
line 21應該是指require_once(ABSPATH.'wp-settings.php')這行吧, 可是搞半天就是弄不好 ˊˋ
google有找到一個相同問題的, 可是他是(__FILE__)少了一個"_"
問題到底是出在哪邊呢...
謝謝 ><!