lnmp1.3 + owncloud9.1安装出现 404报错
lnmp1.3 + owncloud9.1 lnmp1.3安装成功,并在phpmyadmin里面创建数据库及用户名密码。然后将oc9.1下载解压并移动owncloud目录到/home/wwwroot/defaul/ 并执行两条命令# chown www:www -R /home/wwwroot/default/owncloud/
# chmod 777 /home/wwwroot/default/owncloud/config
然后在浏览器输入http://127.0.0.1/owncloud执行安装
在安装owncloud出现登录界面,并按照要求创建oc管理用户名及密码和数据库用户名和密码及数据库名称,点击finish setup 后就出现:http://127.0.0.1/index.php/apps/files/ 404 Not Found的这个错误!
不知有没有其他朋友遇到过,并如何解决的? owncloud需要开启pathinfo
1.3上就是把 对应虚拟主机配置文件里的 include enable-php.conf; 替换为 include enable-php-pathinfo.conf;
重启nginx 多谢军哥!但是我没有找到虚拟机配置文件,我是用http://127.0.0.1/owncloud这种方式安装出现的404错误提示? 看你用的default目录应该就是nginx.conf 军哥:以下是nginx.conf配置文件内容,没有找到您说的那段代码
# vi nginx.conf
userwww www;
worker_processes auto;
error_log/home/wwwlogs/nginx_error.logcrit;
pid /usr/local/nginx/logs/nginx.pid;
#Specifies the value for maximum file descriptors that can be opened by this process.
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 51200;
multi_accept on;
}
http
{
include mime.types;
default_typeapplication/octet-stream;
server_names_hash_bucket_size 128;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 50m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
tcp_nodelay on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 256k;
gzip on;
gzip_min_length1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml application/xml+rss;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_disable "MSIE \.";
"nginx.conf" 96L, 2288C 这明显不是全部,vi不会用的话建议还是nano,用winscp也可以 军哥:上面那个真是nginx.conf文件的全部内容,此目录还有另一个nginx.conf.default文件内容如下(也没有您说的那段代码):
# vi nginx.conf.default
#usernobody;
worker_processes1;
#error_loglogs/error.log;
#error_loglogs/error.lognotice;
#error_loglogs/error.loginfo;
#pid logs/nginx.pid;
events {
worker_connections1024;
}
http {
include mime.types;
default_typeapplication/octet-stream;
#log_formatmain'$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_loglogs/access.logmain;
sendfile on;
#tcp_nopush on;
#keepalive_timeout0;
keepalive_timeout65;
#gzipon;
server {
listen 80;
server_namelocalhost;
#charset koi8-r;
#access_loglogs/host.access.logmain;
location / {
root html;
indexindex.html index.htm;
}
#error_page404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504/50x.html;
location = /50x.html {
"nginx.conf.default" 117L, 2656C
回复 7# 的帖子
nginx.conf上面写的是96行,上面的明明写着117行,你这是才发了几十行,所有说vi你不会用,让你用其他工具 已成功,谢谢军哥!确实不太会用vi 。见谅!我下载了两个文件看到了你说的代码,那另一个nginx.conf.default文件是干嘛用的?回复 9# 的帖子
nginx 自动生成的默认的配置文件没用处 感谢军哥。。。爬了太多帖子 都没搞定 结果军哥的回复直接OK!!!军哥对我而言就是神
页:
[1]