搬家原因:想用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 |
Proftpd上传550的错误
目录权限不正确,用户以及用户组修改为所建FTP账户后即可
nginx下不带www域名重定向到带www的域名
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; |
最新评论
waids:推出最好的投资工具,今天开始赚钱。 ...
waids:需要钱吗? 轻松拿到这里? https://i...
waids:相信你的美元给机器人,看看它是如何...
waids:#网络金融专家! 看看新的机器人。 ht...
waids:机器人从不睡觉。 它为你赚钱24/7。 h...
waids:没有钱? 在线赚取。 https://iujxnsp...
waids:只需点击一下即可将您的美元变成$1000...
waids:需要钱吗? 金融机器人是你的解决方案...
waids:开始每周只用这个机器人赚几千美元。 ...
waids:现在启动金融机器人开始赚钱。 https:...