Big Bug Ban

兴趣 践行 创新

无法定位 WordPress 主题目录

 

方案: 打开htdocs目录下的wp-config.php文件,将下面的代码放在wp-config.php最后一行的”?>”前面即可。注意,不要忘记上传到服务器上啊。

Php代码
if(is_admin()) {add_filter(’filesystem_method’,

create_function(’$a’, ’return ”direct”;’ ));defin

e( ’FS_CHMOD_DIR’, 0751 );}

来自http://king7j.com.cn/blog

Written by princehaku

12月 11th, 2009 at 11:59 下午

Posted in php

without comments

要考试了…哇哇!

 

加油..

Written by princehaku

12月 11th, 2009 at 8:47 下午

Posted in things goes by

without comments

bt没了,,我们将何去何从??

 

111Torrent


BT网站陆续关停

BT·china 已经停止了。。

相关的一些BT站也在陆续关闭了

下一个是迅雷?verycd??

哦。。。NO~~

如果某天告诉你..互联网不能下载资料

会怎样?

Written by princehaku

12月 9th, 2009 at 10:42 上午

Posted in think in IT

Tagged with

without comments

和谐掉了linux版的

 

怎么说呢?…

一是因为网速…

二是因为安全性…

三是得不到编译时内存占用情况..

暂时和谐之.

Written by princehaku

12月 5th, 2009 at 9:17 上午

Posted in c/c++

without comments

webcpp–linux版

 

终于把东西运行在了linux上

当然生成的文件也是linux的out文件

不过还是有点问题..

得不到编译时的状态和内存占用

暂时先这样..

慢慢来..

果然mono也不是万能的。。。

Written by princehaku

12月 1st, 2009 at 2:10 下午

Posted in c/c++

without comments

ubuntu 9.10 mono配置

 

昨天和今天半天。。。

在 服务器上弄了半天都么成功

然后在自己电脑上了了。。

结果直接就可以用了。。

mark一下

503错误:

可能是服务器的配置写错了

比如我的就是 /etc/mono-server2/mono-server2-hosts.conf错了。。多了一行

标准的应该是

# Default configuration, don’t edit it!
<IfModule mod_mono.c>
MonoUnixSocket default /tmp/.mod_mono_server2
MonoServerPath default /usr/bin/mod-mono-server2
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config .ascx
MonoApplicationsConfigDir default /etc/mono-server2
MonoPath default /usr/lib/mono/2.0:/usr/lib:/usr/lib/monodoc/web
# start /etc/mono-server2/conf.d/asp.net2-examples/10_asp.net2-examples
Alias /samples “/usr/share/asp.net2-demos”
AddMonoApplications default “/samples:/usr/share/asp.net2-demos”
<Directory /usr/share/asp.net2-demos>
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>
# end /etc/mono-server2/conf.d/asp.net2-examples/10_asp.net2-examples
# start /etc/mono-server2/conf.d/monodoc-http/10_monodoc-http.dpkg-new
Alias /monodoc “/usr/lib/monodoc/web”
AddMonoApplications default “/monodoc:/usr/lib/monodoc/web”
<Directory /usr/lib/monodoc/web>
SetHandler mono
<IfModule mod_dir.c>
DirectoryIndex index.aspx
</IfModule>
</Directory>
# end /etc/mono-server2/conf.d/monodoc-http/10_monodoc-http.dpkg-new
</IfModule>

然后 是500错误。。

多装一个mono-dev包就可以了

sudo apt-get install mono-dev

Written by princehaku

11月 30th, 2009 at 11:08 上午

Posted in linux

without comments

wordpress 主页一片空白 后台正常。。

 

之前突然就这样了。。

找了半天原因。。

终于找到了

原来是。wp-blog-header.php 这个文件丢了。

重新上传了一个。。ok~搞定

Written by princehaku

11月 29th, 2009 at 7:31 下午

Posted in php

without comments

换了个免费的服务器空间

 

新的地方..这里比较稳定..

用php备份数据库备份半天都有问题

最后用它自带的一个给弄好了..

之前的时不时就断了..哎

还是等以后有钱了卖个小型的vpn..

把http://app.webcpp.net也放上去..端口也可以不用80咯

哈哈

Written by princehaku

11月 29th, 2009 at 5:08 下午

Posted in things goes by

without comments

wordpress执行效率低???

 

之前有位学长给我说wordpress执行效率低….

不过用着还不错..灰常不错的说

就用这个…

Written by princehaku

11月 28th, 2009 at 8:41 下午

Posted in php

with one comment

项目进度..

 

基本弄好了..不过没空间放…貌似空间为了安全都禁用了运行文件…哎…找个时间再想想

测试用地址http://app.webcpp.net:81(仅在本人电脑开启时可用)

Written by princehaku

11月 25th, 2009 at 1:01 下午

Posted in c/c++

without comments