VPS侦探论坛

 找回密码
 注册
查看: 13600|回复: 7

新建虚拟主机都是No input file specified.

[复制链接]
发表于 2011-5-26 12:20:48 | 显示全部楼层 |阅读模式

先设了域名把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下面的一个目录使他看起来像一个单独的网站么?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-5-26 12:49:57 | 显示全部楼层

回复 1# 的帖子



/usr/local/nginx/sbin/nginx -t 看一下有错误没
ls /home/wwwroot/www.xxxxxxx.co.cc/ -l 都发上来
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-5-26 18:23:47 | 显示全部楼层

/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才行么?还是有时间延迟?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-5-26 18:56:46 | 显示全部楼层

回复 3# 的帖子




/usr/local/nginx/sbin/nginx -t是测试

没有延迟
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-6-4 21:19:54 | 显示全部楼层

回复 4# 的帖子


我的也会出现那个样子的
[root@cnxx ~]# /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

[root@cnxx wwwroot]# ls www.xxx.net/ -l
total 228
-rwxrwxrwx 1 www www   397 May 26  2008 index.php
-rwxrwxrwx 1 www www 15606 Feb 23 06:36 license.txt
-rwxrwxrwx 1 www www  9202 May 26 02:10 readme.html
-rwxrwxrwx 1 www www  4337 Jan 22 11:25 wp-activate.php
drwxrwxrwx 9 www www  4096 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 21  2010 wp-blog-header.php
-rwxrwxrwx 1 www www  3931 Dec 10 02:02 wp-comments-post.php
-rwxrwxrwx 1 www www   244 Dec 10 02:02 wp-commentsrss2.php
-rwxrwxrwx 1 www www  3177 Nov  1  2010 wp-config-sample.php
-rw-rw-rw- 1 www www  3459 Jun  4 20:28 wp-config.php
drwxrwxrwx 6 www www  4096 Jun  4 20:42 wp-content
-rwxrwxrwx 1 www www  1255 Mar 17  2010 wp-cron.php
-rwxrwxrwx 1 www www   246 Dec 10 02:02 wp-feed.php
drwxrwxrwx 8 www www  4096 May 26 02:16 wp-includes
-rwxrwxrwx 1 www www  1997 Oct 23  2010 wp-links-opml.php
-rwxrwxrwx 1 www www  2453 Oct 30  2010 wp-load.php
-rwxrwxrwx 1 www www 27816 May 24 23:29 wp-login.php
-rwxrwxrwx 1 www www  7774 May 26  2010 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 www  9655 Nov 24  2010 wp-settings.php
-rwxrwxrwx 1 www www 18644 Dec  7 03:26 wp-signup.php
-rwxrwxrwx 1 www www  3702 Feb 25  2010 wp-trackback.php
-rwxrwxrwx 1 www www  3210 Nov  6  2010 xmlrpc.php
在进后台点击栏目的时候出现No input file specified.已经安装多次出现多次了郁闷!
请军哥帮帮忙看看能否解决

军哥运维代购:http://shop63846532.taobao.com/

发表于 2011-6-5 13:00:19 | 显示全部楼层

你访问的文件可能不存在
发表于 2011-6-8 23:09:37 | 显示全部楼层

回复 6# 的帖子


军哥这个有什么解决的方法吗进到wp后台会那样重启服务器会好一会过一会有不行了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-6-9 08:38:17 | 显示全部楼层

回复 7# 的帖子


那就很奇异了,不好说什么原因,换个系统模板试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-20 17:21 , Processed in 0.027583 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表