You are not logged in.

#1 2013-03-14 19:09:25

jul16ares
Member
Registered: 2013-03-02
Posts: 9

Owncloud and chrooted nginx

I have a running nginx server hosting my web site, but now i'm in chroot and don't now how to make working an owncloud webapp with chrooted http server...

Offline

#2 2013-03-17 01:12:01

jul16ares
Member
Registered: 2013-03-02
Posts: 9

Re: Owncloud and chrooted nginx

ok maybe more infos needed...

In nginx.conf (chroot)
I get some lines like

fastcgi_pass unix:/run/php-fpm/php-fpm.sock;

But i've not this files in chrooted /run

So can i make use of php-fpm in chroot ?

Here my nginx.conf :

#user html;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


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

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

##Default server
    server {
        listen      80;
        server_name mysite.com;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   /www/mysite;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /usr/share/nginx/html;
        }
    }

##Owncloud    
     server {
        listen      80;
        server_name cloud.mysite.com;

            root   /www/owncloud/;
            index  index.php;

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   /usr/share/nginx/html;
        }

        location ~ \.php$ {

            fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /scripts$fas$
            include        fastcgi_params;
        }
    }

Offline

#3 2013-03-24 16:26:02

whatshisname
Member
Registered: 2010-04-24
Posts: 149

Re: Owncloud and chrooted nginx

I had written here to suggest you divide and conquer, install Nginx first then move it to a chrooted environment.  Then I re-read your post and saw that's what you're doing.

I'm also working on setting up owncloud with Nginx.  If I get it figured out, I'll come back here to try to help.

Good luck.

Moderator, you may delete this if you like.  It is truly a useless post.  I'll try to be more helpful when I get back.

Last edited by whatshisname (2013-03-24 16:32:52)

Offline

Board footer

Powered by FluxBB