Welcome! Log In Create A New Profile

Advanced

Nginx displaying blank page, doesn't error

Eric Griffith
October 24, 2011 12:12AM
So I'm attempting to move my OwnCloud instance from Apache to Nginx
because I heard it was better on low-spec machines (the box is
basically a recycled desktop from like 2004; P4 + 1GB of RAM )

I've always run OwnCloud out of a home directory for ease of use with
samba and non-root privs. The tutorial I followed had me place it back
in /srv/http and it worked fine there; now I'm trying to figure out
why when I try to configure it back to /home, it DOESNT work.

The working config:

user http;

worker_processes 1;

#pid logs/nginx.pid;


events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
listen 80;
server_name localhost;

location / {
root /srv/http/owncloud;
index index.html index.php;
}

location ~ \.php$ {
root /srv/http/owncloud;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/http/owncloud/$fastcgi_script_name;
include fastcgi_params;
}
}

}



In that setup; its set to run via /srv/http/owncloud, under the user
http. And it works fine, displays the webpage no problem. (Complains
about not having permission to the database, but thats cuz its running
as http, and the database is set for public)

Below all I attempted to change was make it run via
/home/public/www/owncloud instead of /srv/http/owncloud, and under the
user public, group users.


user public users;

worker_processes 1;

#pid logs/nginx.pid;


events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
listen 80;
server_name localhost;

location / {
root /home/public/www/owncloud;
index index.html index.php;
}

location ~ \.php$ {
root /home/public/www/owncloud;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/home/public/www/owncloud/$fastcgi_script_name;
include fastcgi_params;
}
}

}


Using this config file, when i give the server's IP (192.168.0.101)
all I get is a blank page. No error messages, no warnings, nothing in
the log files. Just a blank page. if I give i192.168.0.101/index.php,
nothing changes. Anyone got any ideas as to what may be happening?
I've been staring at config files, and wiki's for the last 3hrs so it
may just need a fresh set of eyes.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx displaying blank page, doesn't error

Eric Griffith October 24, 2011 12:12AM

Re: Nginx displaying blank page, doesn't error

ewgra October 24, 2011 01:58AM

Re: Nginx displaying blank page, doesn't error

Eric Griffith October 24, 2011 01:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 252
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready