新建虚拟主机都是No input file specified.
先设了域名把www.xxxxxxx.co.cc (这个是代名)解析到主机ip。然后 用root/vhost.sh 新建一个虚拟主机www.xxxxxxx.co.cc
=========================================================================
Add Virtual Host for LNMP V0.7,Written by Licess
=========================================================================
LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux
This script is a tool to add virtual host for nginx
For more information please visit http://www.lnmp.org/
=========================================================================
Please input domain:
(Default domain: www.lnmp.org):www.xxxxxxx.co.cc
===========================
domain=www.xxxxxxx.co.cc
===========================
Do you want to add more domain name? (y/n)
n
Please input the directory for the domain:www.xxxxxxx.co.cc :
(Default directory: /home/wwwroot/www.xxxxxxx.co.cc):
===========================
Virtual Host Directory=/home/wwwroot/www.xxxxxxx.co.cc
===========================
===========================
Allow Rewrite rule? (y/n)
===========================
y
Please input the rewrite of programme :
wordpress,discuz,typecho,sablog,dabr rewrite was exist.
(Default rewrite: other):wordpress
===========================
You choose rewrite=wordpress
===========================
===========================
Allow access_log? (y/n)
===========================
y
Type access_log name(Default access log file:www.xxxxxxx.co.cc.log):
===========================
You access log file=www.xxxxxxx.co.cc.log
===========================
Press any key to start create virtul host...
Create Virtul Host directory......
set permissions of Virtual Host directory......
You select the exist rewrite rule:/usr/local/nginx/conf/wordpress.conf
Test Nginx configure file......
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Restart Nginx......
=========================================================================
Add Virtual Host for LNMP V0.7,Written by Licess
=========================================================================
For more information please visit http://www.lnmp.org/
Your domain:www.xxxxxxx.co.cc
Directory of www.xxxxxxx.co.cc:/home/wwwroot/www.xxxxxxx.co.cc
=========================================================================
然后访问 http://www.xxxxxxx.co.cc/
只有一句 No input file specified.
用root拷贝一个index.html到 wwwroot/www.xxxxxxx.co.cc/ 里面,改了755和owner还是不行。
是哪里弄的不对么?对这些配置都不熟,能实现把www.xxxxxxx.co.cc定位到wwwroot下面的一个目录使他看起来像一个单独的网站么?
回复 1# 的帖子
/usr/local/nginx/sbin/nginx -t 看一下有错误没ls /home/wwwroot/www.xxxxxxx.co.cc/ -l 都发上来 /usr/local/nginx/sbin/nginx -t
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
==============================================================
ls /home/wwwroot/www.xxxxxxx.co.cc/ -l
total 4
-rwxr-xr-x 1 www www 2134 May 26 12:13 index.html
===============================================================
不过现在访问又自己好了,是需要执行/usr/local/nginx/sbin/nginx -t才行么?还是有时间延迟?
回复 3# 的帖子
/usr/local/nginx/sbin/nginx -t是测试没有延迟
回复 4# 的帖子
我的也会出现那个样子的# /usr/local/nginx/sbin/nginx -t
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
# ls www.xxx.net/ -l
total 228
-rwxrwxrwx 1 www www 397 May 262008 index.php
-rwxrwxrwx 1 www www 15606 Feb 23 06:36 license.txt
-rwxrwxrwx 1 www www9202 May 26 02:10 readme.html
-rwxrwxrwx 1 www www4337 Jan 22 11:25 wp-activate.php
drwxrwxrwx 9 www www4096 May 26 02:16 wp-admin
-rwxrwxrwx 1 www www 40261 May 24 23:56 wp-app.php
-rwxrwxrwx 1 www www 226 Dec 10 02:02 wp-atom.php
-rwxrwxrwx 1 www www 274 Nov 212010 wp-blog-header.php
-rwxrwxrwx 1 www www3931 Dec 10 02:02 wp-comments-post.php
-rwxrwxrwx 1 www www 244 Dec 10 02:02 wp-commentsrss2.php
-rwxrwxrwx 1 www www3177 Nov12010 wp-config-sample.php
-rw-rw-rw- 1 www www3459 Jun4 20:28 wp-config.php
drwxrwxrwx 6 www www4096 Jun4 20:42 wp-content
-rwxrwxrwx 1 www www1255 Mar 172010 wp-cron.php
-rwxrwxrwx 1 www www 246 Dec 10 02:02 wp-feed.php
drwxrwxrwx 8 www www4096 May 26 02:16 wp-includes
-rwxrwxrwx 1 www www1997 Oct 232010 wp-links-opml.php
-rwxrwxrwx 1 www www2453 Oct 302010 wp-load.php
-rwxrwxrwx 1 www www 27816 May 24 23:29 wp-login.php
-rwxrwxrwx 1 www www7774 May 262010 wp-mail.php
-rwxrwxrwx 1 www www 494 Dec 10 02:02 wp-pass.php
-rwxrwxrwx 1 www www 224 Dec 10 02:02 wp-rdf.php
-rwxrwxrwx 1 www www 334 Dec 10 02:02 wp-register.php
-rwxrwxrwx 1 www www 224 Dec 10 02:02 wp-rss.php
-rwxrwxrwx 1 www www 226 Dec 10 02:02 wp-rss2.php
-rwxrwxrwx 1 www www9655 Nov 242010 wp-settings.php
-rwxrwxrwx 1 www www 18644 Dec7 03:26 wp-signup.php
-rwxrwxrwx 1 www www3702 Feb 252010 wp-trackback.php
-rwxrwxrwx 1 www www3210 Nov62010 xmlrpc.php
在进后台点击栏目的时候出现No input file specified.已经安装多次出现多次了郁闷!
请军哥帮帮忙看看能否解决 你访问的文件可能不存在
回复 6# 的帖子
军哥这个有什么解决的方法吗进到wp后台会那样重启服务器会好一会过一会有不行了回复 7# 的帖子
那就很奇异了,不好说什么原因,换个系统模板试试
页:
[1]