老谢博客

  • 首页
  • WordPress
  • 网络技术
  • 乱七八糟
  • 运维技术
  • 给我留言
  • 关于老谢

博客搬家小记

分类:乱七八糟日期:2013-10-01 - 10:38:15作者:老谢

搬家原因:想用XEN的VPS,OKVPS的XEN买不起,搬出的仅仅是博客,其他站还在OKVPS,所以还是会继续用OKVPS,用OKVPS快两年了,从OKVPS刚建立就开始使用,也算是骨灰用户了,很稳定,这里就帮着打个广告,哈哈~~
新VPS配置:XEN,256M内存,E3-1240 v2, 单核,10G硬盘,300G月流量,1独立IP

因为就一个小博客,并且内存不大,所以决定使用LNMP环境,懒得自己搭建,所以使用LNMP.ORG的一键包,具体一键包安装命令请自行参考官网,本文仅记录其中遇到的一些问题和配置细节

PHP中我禁用的函数

mb_send_mail,php_sapi_name,mysql_get_client_info,get_cfg_var,php_uname,exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,pcntl_exec,disk_total_space,disk_free_space,chown,diskfreespace,getrusage,get_current_user,getmyuid,getmypid,dl,leak,listen,chgrp,link,symlink,dlopen,proc_nice,proc_get_stats,proc_terminate,shell_exec,sh2_exec,posix_getpwuid,posix_getgrgid,posix_kill,ini_restore,mkfifo,dbmopen,dbase_open,filepro,filepro_rowcount,posix_mkfifo,putenv,sleep

mb_send_mail,php_sapi_name,mysql_get_client_info,get_cfg_var,php_uname,exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,pcntl_exec,disk_total_space,disk_free_space,chown,diskfreespace,getrusage,get_current_user,getmyuid,getmypid,dl,leak,listen,chgrp,link,symlink,dlopen,proc_nice,proc_get_stats,proc_terminate,shell_exec,sh2_exec,posix_getpwuid,posix_getgrgid,posix_kill,ini_restore,mkfifo,dbmopen,dbase_open,filepro,filepro_rowcount,posix_mkfifo,putenv,sleep

Proftpd上传550的错误

目录权限不正确,用户以及用户组修改为所建FTP账户后即可

nginx下不带www域名重定向到带www的域名

    if ( $host = 'xj123.info') {
      rewrite ^/(.*)$ http://www.xj123.info/$1 permanent;
    }

if ( $host = 'xj123.info') { rewrite ^/(.*)$ http://www.xj123.info/$1 permanent; }

nginx下wordpress后台选项404

wordpress伪静态规则问题,编辑/usr/local/nginx/conf/wordpress.conf,修改为如下:

location / {
if (-f $request_filename/index.html){
                rewrite (.*) $1/index.html break;
        }
if (-f $request_filename/index.php){
                rewrite (.*) $1/index.php;
        }
if (!-f $request_filename){
                rewrite (.*) /index.php;
        }
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;

location / { if (-f $request_filename/index.html){ rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } } rewrite /wp-admin$ $scheme://$host$uri/ permanent;

原文地址 : https://www.xj123.info/4011.html

本站遵循 : 署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5)

版权声明 : 原创文章转载时,请务必以超链接形式标明文章原始出处

Tags: 搬家
  • 上一篇:Xenserver挂载ISO镜像
  • 下一篇:十一快乐
13条评论
  1. xt. 说:

    恭喜搬家~

    POST:2013-10-01 10:43 回复
  2. 大D 说:

    这该死的spam墙,我打个YM VPS也能给我墙了。

    POST:2013-10-01 13:14 回复
    • 老谢 说:

      @大D 哈哈,请输入中文~~

      POST:2013-10-01 22:08 回复
  3. 空空裤兜 说:

    OKvps确实不便宜啊,现在xen256的20块以内可以买到的

    POST:2013-10-02 12:04 回复
    • 老谢 说:

      @空空裤兜 我买的就是17块的,不知道我现在博客速度怎么样

      POST:2013-10-02 12:17 回复
      • 空空裤兜 说:

        hostshare的?速度很好,尤其评论提交,快的不像个男人。哈哈

        POST:2013-10-02 12:26 回复
        • 老谢 说:

          @空空裤兜 是hostshare的,国庆有个55折优惠,看着合适就买了,木用过MC机房,速度快就好,哈哈~

          POST:2013-10-02 12:41 回复
          • 空空裤兜 说:

            没有回复邮件通知?

            POST:2013-10-02 13:35 回复
            • 老谢 说:

              @空空裤兜 现在应该好了吧

              POST:2013-10-02 14:02 回复
              • 空空裤兜 说:

                好了。更多内容请看后面的地址没带超链接

                POST:2013-10-02 14:10 回复
                • 老谢 说:

                  @空空裤兜 代码里面是有超链标签的,可能是邮箱为了安全不给点

                  POST:2013-10-02 14:26 回复
  4. 一堵墙 说:

    VPS 什么的果然略显复杂。

    POST:2013-10-03 08:38 回复
    • 老谢 说:

      @一堵墙 VPS用着方便点

      POST:2013-10-03 08:58 回复
发表评论 点击取消评论.

*必填

*必填

  • 文章归档
  • 子网计算
  • 我的共享
  • 锻炼计划
  • 给我留言
  • 关于老谢
2025 年 6 月
一 二 三 四 五 六 日
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« 5 月    

最新文章

  • 认知,是否是一座大山?当架构决策变成配置清单比价
  • 重装博客服务器环境
  • 特斯拉24款标续 Model Y 2万公里使用体验
  • 接盘的傻子
  • 小牛us电瓶指示灯闪三次不上电
  • 一次还不错的小米售后体验
  • 装台1600元办公主机
  • 2021好久没更新博客
  • Zabbix监控oxidized备份状态
  • Zabbix 5.0 LTS版本MySQL表分区及编译安装随记

最新评论

  • zwwooooo:类似以前做网站开发时,一开始有自...
  • 老陳网志:有点高端,像我们整点nas玩玩就够...
  • springwood:自从 CentOS 不维护之后,我换 U...
  • 大D:难都搞下来了,那就更得YM了
  • 大D:只能是YM了,谢总牛啊
  • 灰常记忆:经济不好 今年我也换了机器 一...
  • 大峰:这是海外服务器嘛?速度挺快的。
  • 大D:只能单走一个6了哈哈哈
  • zwwooooo:买特斯拉和买iPhone的人群其实相似...
  • 平安家属子痕:一直坚持油车,看你写的心里有...

日志存档

  • 2025 年 5 月
  • 2025 年 4 月
  • 2025 年 3 月
  • 2024 年 9 月
  • 2024 年 5 月
  • 2024 年 1 月
  • 2023 年 4 月
  • 2021 年 10 月
  • 2021 年 4 月
  • 2021 年 3 月
  • 2021 年 2 月
  • 2020 年 11 月
  • 2020 年 9 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 1 月
  • 2019 年 12 月
  • 2019 年 10 月
  • 2019 年 7 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 3 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 1 月
  • 2017 年 10 月
  • 2017 年 9 月
  • 2017 年 8 月
  • 2017 年 7 月
  • 2017 年 2 月
  • 2017 年 1 月
  • 2016 年 12 月
  • 2016 年 11 月
  • 2016 年 10 月
  • 2016 年 7 月
  • 2016 年 6 月
  • 2016 年 4 月
  • 2016 年 2 月
  • 2016 年 1 月
  • 2015 年 12 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 7 月
  • 2015 年 5 月
  • 2015 年 4 月
  • 2015 年 3 月
  • 2015 年 2 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 7 月
  • 2014 年 6 月
  • 2014 年 5 月
  • 2014 年 4 月
  • 2014 年 3 月
  • 2014 年 2 月
  • 2014 年 1 月
  • 2013 年 12 月
  • 2013 年 11 月
  • 2013 年 10 月
  • 2013 年 9 月
  • 2013 年 8 月
  • 2013 年 7 月
  • 2013 年 6 月
  • 2013 年 5 月
  • 2013 年 4 月
  • 2013 年 3 月
  • 2013 年 2 月
  • 2013 年 1 月
  • 2012 年 12 月
  • 2012 年 11 月
  • 2012 年 9 月
  • 2012 年 8 月
  • 2012 年 7 月
  • 2012 年 6 月
  • 2012 年 5 月
  • 2012 年 4 月
  • 2012 年 3 月
  • 2012 年 2 月
  • 2012 年 1 月
  • 2011 年 12 月
  • 2011 年 11 月
  • 2011 年 10 月
  • 2011 年 9 月
  • 2011 年 8 月
  • 2011 年 7 月
  • 2011 年 6 月
  • 2011 年 5 月
  • 2011 年 4 月
  • 2011 年 3 月
  • 2011 年 2 月
  • 2011 年 1 月
  • 2010 年 12 月
  • 2010 年 11 月
  • 2010 年 10 月
  • 2010 年 9 月
  • 2010 年 8 月
  • 2010 年 7 月

W3C

  • XHTML 1.0 Transitional
  • CSS level 3
  • Google+
Copyright © 2010-2025 老谢博客 All rights reserved.
Gzipped 76.5% | Optimized loading 61 queries in 0.373 seconds | Memory 38.86 MB | 尼玛的备案
Powered by WordPress. | Hosted By LAOXUEHOST | Theme by WordPress主题巴士 | 站点地图 | SiteMap | uptime查询