安装Typecho卡在“确认您的配置,数据库配置”问题的终极解决方法
先说说Typecho 是什么
Typecho是一款PHP博客程序,它在 GPL version 2 许可证下发行,基于 PHP (需要 PHP5 以上版本)构建,可以运行在各种平台上,支持多种数据库(Mysql, PostgreSQL, SQLite)。
最令人看重的是它允许我们在商业网站项目中免费使用。
官方对程序免费商用的说明请见http://typecho.org/about
再来看看安装时出现的错误
Warning: Cannot modify header information - headers already sent by (output started at /home/ftp/s/s9284005/wwwroot/install.php:205) in /home/ftp/s/s9284005/wwwroot/var/Typecho/Cookie.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /home/ftp/s/s9284005/wwwroot/install.php:205) in /home/ftp/s/s9284005/wwwroot/install.php on line 584
截图显示
网上解决查到的已有解决方法(并未解决问题)
文章来源http://forum.typecho.org/viewtopic.php?f=24&t=10481
simonlau提到:
试试在install.php文件的第56行加入 ob_start(); 代码;
还有另外一个办法是修改php.ini文件,加入 output_buffering =on 代码;
如果是阿里云,应该是启用含有“缓冲”的那个选项就可以了。
skyong提到:
设置php环境为5.6及以上就可以了。
然而实际操作中因为无服务器管理权限未能修改PHP.INI文件,也无法选择PHP环境版本。故未解决问题。
如果您和我碰到同样的问题,请继续看
1,我们先在单机环境中安装typecho,
2,用phpmyadmin倒出typecho已装好的数据库表
typecho_comments
typecho_contents
typecho_fields
typecho_metas
typecho_options
typecho_relationships
typecho_users
3,编辑此SQL备份文件中的,
('siteUrl', 0, 'http://localhost/typecho'),
将网址http://localhost/typecho改为你的网址。
保存。
4,将此SQL备份文件用phpmyadmin导入你的网站数据库,重新访问你的typecho所在网址即可。
附上我自己新装好typecho使用的SQL备份文件
http://www.rjzb.com/ideamcom_union.sql
http://www.idea2m.com/ideamcom_union.sql
百度网盘下载地址https://pan.baidu.com/s/1GXCp2UDOhhYQD9fnoL0rag
恢复后,记得自己在后台修改密码,和修改网址啊。