小巧精悍的sNews
几个月前就知道sNews了,sNews很小巧,一共只有4个文件,加起来才100k.但功能一点也不弱,只是苦于服务器没有mod_rewrite module。刚好前些天换了个新家,于是装了试一试。sNews的安装条件还算简单:
Apache Server:支持mod_rewrite:
PHP: 4.x或更高
MySQL:没特殊要求
好了,开始吧。
下载sNews(我下的是sNews 1.5 RC3),按照压缩包里readme.html的说明,一步步来:
1.创建数据表.
在phpMyAdmin或其它数据库管理工具里,点击SQL,复制readme.html的code,相关代码可能会随sNews的版本改变而改变,所以我不在这里贴出。
2.配置snews.php
$db['website'] = ‘http://localhost/sNews/’;//安装地址,如http://sk23.com/blog/
$db['dbhost'] = ‘localhost’;//数据库地址,一般为localhost,也可以是IP地址或域名
$db['dbname'] = ‘snews’;//数据库名
$db['dbuname'] = ‘username’;//数据库用户名
$db['dbpass'] = ‘password’;//数据库密码
$db['prefix'] = ”;//数据表头,如snews_,默认情况下这里留空
3.上传文件,并将所有文件的属性设为777。
4.OK,在浏览器中输入你的安装地址,默认的用户名和密码都为test,登录后请及时修改。
注意:用记事本修改index.php或snews.php后会在文件的开头添加BOM,造成程序出错。最好用其它工具编辑,如UltraEdit,Notepad++,Editplus等。
DEMO 请看这里。
作者: 伤感熊 | 可以转载, 转载时务必以超链接形式标明文章原始出处和作者信息及版权声明
原文链接地址: http://sk23.com/blog/snews/
Tags: 测试
» You can leave a comment, or trackback from your own site.
你好!
我按照你上面的步骤安装了1.5,就是安装好后上不去
打不开啊!
提示是服务器内部出去!帮我解决下
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@512j.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
——————————————————————————–
Apache/1.3.34 Server at aimib.512j.com Port 80
我安置的方法是我同学告诉我的
他可以,就是我的不行
我的空间和他的一样
他的站是qingre.com
上面显示的是服务器500错误.等服务器恢复正常后再试试,应该没什么问题.
我是按你的方法装的,但是没有成功,如下:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@ezlog.cn and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
——————————————————————————–
Apache/1.3.37 Server at http://www.ezlog.cn Port 80
服务器正常方问
不知道是什么原因呀
帮帮我好码?
这个到底是什么原因我也搞不清楚,不过我在弄的时候十分顺利。至于Apache和mod_rewrite我也不太懂,很抱歉不能帮上忙。
sNews 必须要求服务器支持 .htaccess 和 rewrite
如果服务器不支持 .htaccess 而有 .htaccess 就会出现 500
snews 1.6 简体中文版
snews中文支持站
http://snews.laifuer.cn
http://snewscms.cn/ sNews中文站
sNews可选择Rewrite功能版本
sNews Chinese Community 2008年元旦献礼! sNews可选择Rewrite功能版本,可以使用在Windows IIS模式和禁止htaccess支持的服务器上!
由于之前有不少朋友说使用的服务器是Windows IIS, 或使用虚拟空间的不支持htaccess的Rewrite,所以无法使用sNews. 为了解决这个问题现在发布一个可选择Rewrite版本, 你可以在后台设置是否使用htaccess的Rewrite功能!
开启Rewrite功能的SEO地址:
http://demo.snewscms.cn/snews/snews-cms/snews-cms/
到关闭Rewrite功能的SEO由原来变换到:
http://demo.snewscms.cn/snews/index.php?category=snews-cms/snews-cms/
演示:http://demo.snewscms.cn/snews/
上传sNews中文站提供的可选择Rewrite功能版本sNews,添加原来的数据库字段再添加新功能数据库字段:
INSERT INTO settings VALUES (50, ‘sef_links’, ”);
http://ajuning.goodaddress.eu/index.php?category=snews/htaccess/