Drupal是一个扩展很强的CMS系统……(省略例行介绍)……但是呢,很多人在国外免费空间安装drupal的时候都碰到了这样或那样的问题。 其中比较有代表性的就是zymic。该空间禁用函数极多,导致drupal的安装程序都没办法启动。那么是不是就盖棺定论“免费空间装不了drupal” 了呢?其实也不是的。就像我之前写过的如何在VMWare上安装Windows Home Server一样,看似山重水复,仔细调教一下,还是能柳暗花明的。
思考整个过程。既然空间禁用的php函数这么多,即使安装成功,相应的功能也无法执行;因此不妨一开始就把这些功能禁用掉,保住大部分功能。要知道 大多数CMS执行相同功能要调用的是相同的函数。换言之,你用wordpress能正常实现的功能,drupal残缺版也能实现。由此带来的更个性化和更 高扩展性,似乎还是值得尝试的。当然,这样做毕竟是拿来应急的,因此本文只为实在有需要的网友提供。
第一步,例行安装。
下载安装包。解压。上传。配置数据库。这些步骤不必说了。
第二步,修改Drupal程序。
1、打开/sites/default/default.settings.php,把如下内容替换成正确的数据库配置信息。
$db_url = 'mysql://username:password@localhost/databasename';
username:数据库用户名;password:密码;localhost:主机地址;databasename:数据库名。
2、下面麻烦找到这段内容:
ini_set('arg_separator.output', '&');
ini_set('magic_quotes_runtime', 0);
ini_set('magic_quotes_sybase', 0);
ini_set('session.cache_expire', 200000);
ini_set('session.cache_limiter', 'none');
ini_set('session.cookie_lifetime', 2000000);
ini_set('session.gc_maxlifetime', 200000);
ini_set('session.save_handler', 'user');
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid', 0);
ini_set('url_rewriter.tags', '');
在每一行前面加一个#号。
3、在/includes下面找到bootstrap.inc,把:
if (count(explode('.', $cookie_domain)) > 2 && !is_numeric(str_replace('.', '', $cookie_domain))) {
ini_set('session.cookie_domain', $cookie_domain);
}
每行前面加一个”// “(不含引号):
// if (count(explode('.', $cookie_domain)) > 2 && !is_numeric(str_replace('.', '',
// $cookie_domain))) {
// ini_set('session.cookie_domain', $cookie_domain);
// }
存盘。
第三步,修改.htaccess
找到下面这一段:
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
把RewriteBase /前面的# 去掉。保存。
第四步,.htaccess支持。
可能要修复.htaccess。例如zymic。按照提示修复就可以了、
第五步,运行安装程序。


落叶
2010年03月28日 at 17:40
我用zymic安装WP博客为什么不能成功呢?以下是报错:
Warning: Cannot modify header information – headers already sent by (output started at /www/zxq.net/s/q/h/sqhd/htdocs/wp-config.php:1) in /www/zxq.net/s/q/h/sqhd/htdocs/wp-login.php on line 302 Warning: Cannot modify header information – headers already sent by (output started at /www/zxq.net/s/q/h/sqhd/htdocs/wp-config.php:1) in /www/zxq.net/s/q/h/sqhd/htdocs/wp-login.php on line 314 Warning: Cannot modify header information – headers already sent by (output started at /www/zxq.net/s/q/h/sqhd/htdocs/wp-config.php:1) in /www/zxq.net/s/q/h/sqhd/htdocs/wp-includes/pluggable.php on line 665 Warning: Cannot modify header information – headers already sent by (output started at /www/zxq.net/s/q/h/sqhd/htdocs/wp-config.php:1) in /www/zxq.net/s/q/h/sqhd/htdocs/wp-includes/pluggable.php on line 666 Warning: Cannot modify header information – headers already sent by (output started at /www/zxq.net/s/q/h/sqhd/htdocs/wp-config.php:1) in /www/zxq.net/s/q/h/sqhd/htdocs/wp-includes/pluggable.php on line 667 Warning: Cannot modify header information – headers already sent by (output started at /www/zxq.net/s/q/h/sqhd/htdocs/wp-config.php:1) in /www/zxq.net/s/q/h/sqhd/htdocs/wp-includes/pluggable.php on line 868
柱子
2010年04月1日 at 20:00
下个wp2.92试试
Echo
2010年04月5日 at 13:24
不行啊。我下的就是wp2.92。。还是不行的。。能不能帮我下。我QQ:58840664
柱子
2010年04月5日 at 16:44
建议你用我推荐的000空间算了,zymic现在很慢,并且限制较多,php免费空间申请网址http://www.ttxx.in/10.html