[How-To] ownCloud using NGINX, PHP-FPM, and MySQL

antanas

Cadet
Joined
Nov 3, 2014
Messages
5
Hi,
I installed owncloud 7.0.2 using this guide and everything was working quite well, but now I'm trying to update it to 7.0.3 using updater app and it gives me an empty error block and message "Please fix this and retry." after some time. I not very familiar with nginx so maybe it needs some tuning? I appreciate any help. Log messages does not show me anything related.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi,
I installed owncloud 7.0.2 using this guide and everything was working quite well, but now I'm trying to update it to 7.0.3 using updater app and it gives me an empty error block and message "Please fix this and retry." I not very familiar with nginx so maybe it needs some tuning? I appreciate any help
no 'tuning' should be necessary. updating using owncloud built in updater worked perfectly for me.
maybe check the log on the admin page? or ask what that error means on the owncloud forum.
 

clamschlauder

Dabbler
Joined
Feb 23, 2013
Messages
26
I am having a few issues with my install. First I have a couple questions.

First, what is the reasoning for installing using your guide versus installing the pbi. The reason I ask is that I have very very little programming experience (intro c++ and self taught VBA if either of those count). I am willing to do the research but I am just wondering if I am over my head and if the headache will be worth it in the end.

I guess the main issue with my install is correctly configuring the nginx.conf file. The error i get is a 502 Bad Gateway (nginx/1.6.2)

Code:
#user  nobody;
worker_processes  4;

#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        off;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    gzip  off;

    server {
        root /usr/local/www;
        location = /robots.txt { allow all; access_log off; log_not_found off; }
        location = /favicon.ico { access_log off; log_not_found off; }
        location ^~ /owncloud {
            index index.php;
            try_files $uri $uri/ /owncloud/index.php$is_args$args;
            client_max_body_size 512M;
            location ~ ^/owncloud/(?:\.|data|config|db_structure\.xml|README) {
                deny all;
            }
            location ~ \.php(?:$|/) {
                fastcgi_split_path_info ^(.+\.php)(/.*)$;
                fastcgi_pass unix:/var/run/php-fpm.sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_param PATH_INFO $fastcgi_path_info;
                include fastcgi_params;
                fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
            }
            location ~* \.(?:jpg|gif|ico|png|css|js|svg)$ {
                expires 30d; add_header Cache-Control public;
            }
            location ^~ /owncloud/data {
                internal;
                alias /mnt/files;
            }
        }
    }

}
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I am having a few issues with my install. First I have a couple questions.

First, what is the reasoning for installing using your guide versus installing the pbi. The reason I ask is that I have very very little programming experience (intro c++ and self taught VBA if either of those count). I am willing to do the research but I am just wondering if I am over my head and if the headache will be worth it in the end.

I guess the main issue with my install is correctly configuring the nginx.conf file. The error i get is a 502 Bad Gateway (nginx/1.6.2)

Code:
#user  nobody;
worker_processes  4;

#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        off;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    gzip  off;

    server {
        root /usr/local/www;
        location = /robots.txt { allow all; access_log off; log_not_found off; }
        location = /favicon.ico { access_log off; log_not_found off; }
        location ^~ /owncloud {
            index index.php;
            try_files $uri $uri/ /owncloud/index.php$is_args$args;
            client_max_body_size 512M;
            location ~ ^/owncloud/(?:\.|data|config|db_structure\.xml|README) {
                deny all;
            }
            location ~ \.php(?:$|/) {
                fastcgi_split_path_info ^(.+\.php)(/.*)$;
                fastcgi_pass unix:/var/run/php-fpm.sock;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_param PATH_INFO $fastcgi_path_info;
                include fastcgi_params;
                fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
            }
            location ~* \.(?:jpg|gif|ico|png|css|js|svg)$ {
                expires 30d; add_header Cache-Control public;
            }
            location ^~ /owncloud/data {
                internal;
                alias /mnt/files;
            }
        }
    }

}
Reason for following this guide is it will run faster, especially when doing lots of small operations. This is because my guide uses a mysql database backend instead of the plugins sqlite database.

Nope, none of that counts, lol =P
But, don't worry, everyone started with no experience. I just learned what I needed by tinkering. And I still don't know much about programming... just know how to set stuff up.

That error is likely caused by php-fpm not responding. can you show the output of "service php-fpm status"?
If it says it's off, try "service php-fpm start"
If it says it's on, post the output of "sockstat | grep www", maybe you didn't set the socket correctly in your php-fpm config.
 

clamschlauder

Dabbler
Joined
Feb 23, 2013
Messages
26
php_fpm is running as pid 4840.

Below is the output of the second command.

Code:
root@OwnCloud:/ # sockstat | grep www                                          
www      nginx      4852  3  stream -> ??                                      
www      nginx      4852  7  tcp4   192.168.1.200:80      *:*                  
www      nginx      4852  9  stream -> ??                                      
www      nginx      4852  11 stream -> ??                                      
www      nginx      4852  14 stream -> ??                                      
www      nginx      4850  3  stream -> ??                                      
www      nginx      4850  7  tcp4   192.168.1.200:80      *:*                  
www      nginx      4850  8  stream -> ??                                      
www      nginx      4850  9  stream -> ??                                      
www      nginx      4850  12 stream -> ??                                      
www      nginx      4849  3  stream -> ??                                      
www      nginx      4849  7  tcp4   192.168.1.200:80      *:*                  
www      nginx      4849  8  stream -> ??                                      
www      nginx      4849  9  stream -> ??                                      
www      nginx      4849  10 stream -> ??                                      
www      nginx      4848  3  stream -> ??                                      
www      nginx      4848  7  tcp4   192.168.1.200:80      *:*                  
www      nginx      4848  8  stream -> ??                                      
www      nginx      4848  10 stream -> ??                                      
www      nginx      4848  11 stream -> ??                                      
www      php-fpm    4842  0  stream /var/run/php-fpm.sock                      
www      php-fpm    4841  0  stream /var/run/php-fpm.sock
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
php_fpm is running as pid 4840.

Below is the output of the second command.

Code:
root@OwnCloud:/ # sockstat | grep www                                         
www      nginx      4852  3  stream -> ??                                     
www      nginx      4852  7  tcp4   192.168.1.200:80      *:*                 
www      nginx      4852  9  stream -> ??                                     
www      nginx      4852  11 stream -> ??                                     
www      nginx      4852  14 stream -> ??                                     
www      nginx      4850  3  stream -> ??                                     
www      nginx      4850  7  tcp4   192.168.1.200:80      *:*                 
www      nginx      4850  8  stream -> ??                                     
www      nginx      4850  9  stream -> ??                                     
www      nginx      4850  12 stream -> ??                                     
www      nginx      4849  3  stream -> ??                                     
www      nginx      4849  7  tcp4   192.168.1.200:80      *:*                 
www      nginx      4849  8  stream -> ??                                     
www      nginx      4849  9  stream -> ??                                     
www      nginx      4849  10 stream -> ??                                     
www      nginx      4848  3  stream -> ??                                     
www      nginx      4848  7  tcp4   192.168.1.200:80      *:*                 
www      nginx      4848  8  stream -> ??                                     
www      nginx      4848  10 stream -> ??                                     
www      nginx      4848  11 stream -> ??                                     
www      php-fpm    4842  0  stream /var/run/php-fpm.sock                     
www      php-fpm    4841  0  stream /var/run/php-fpm.sock
But going to http://192.168.1.200/owncloud still gives you a 502 error?
 

clamschlauder

Dabbler
Joined
Feb 23, 2013
Messages
26
Yes sir. I should note that when I originally set up the jail it was 1192.168.1.7 but after research I was getting an error that seemed to be about an IP conflict so I went to the jail and changed the IP to 200. I kept getting different results using different examples of nginx.conf files but none of them were correct. 404 error, IP directing to Freenas GUI, and now 502.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yes sir. I should note that when I originally set up the jail it was 1192.168.1.7 but after research I was getting an error that seemed to be about an IP conflict so I went to the jail and changed the IP to 200. I kept getting different results using different examples of nginx.conf files but none of them were correct. 404 error, IP directing to Freenas GUI, and now 502.
Have you tried the nginx.conf I posted exactly? If this still gives you a 502 error, you can try enable logging and check what the log says about the error.
 

clamschlauder

Dabbler
Joined
Feb 23, 2013
Messages
26
Looks like it is still referencing the old IP in some instances. Probably the best idea is to delete and retry.

Any tips on what you see below?

Another thing that just popped in my head. I had my jail labeled "OwnCloud" instead of "owncloud." I know in the commands the capitalization matters so I am not sure if this could have been an issue.


Code:
2014/11/30 02:31:54 [error] 5364#0: *2 open() "/usr/local/www/nginx/favicon.ico" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:01:45 [error] 5364#0: *4 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:01:45 [error] 5364#0: *4 open() "/usr/local/www/nginx/favicon.ico" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:05:36 [error] 5364#0: *7 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:20:50 [error] 5364#0: *9 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:21:16 [error] 5364#0: *9 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:29:32 [error] 5364#0: *11 open() "/usr/local/www/nginx/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/status.php HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:29:32 [error] 5364#0: *11 open() "/usr/local/www/nginx/owncloud/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/owncloud/status.php HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:29:52 [error] 5364#0: *12 open() "/usr/local/www/nginx/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /status.php HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:29:52 [error] 5364#0: *12 open() "/usr/local/www/nginx/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/status.php HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:29:59 [error] 5364#0: *13 open() "/usr/local/www/nginx/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/status.php HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:29:59 [error] 5364#0: *13 open() "/usr/local/www/nginx/owncloud/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/owncloud/status.php HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:30:03 [error] 5364#0: *14 open() "/usr/local/www/nginx/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /status.php HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:30:03 [error] 5364#0: *14 open() "/usr/local/www/nginx/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/status.php HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:44:48 [error] 5364#0: *16 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7"
2014/11/30 10:49:13 [error] 58891#0: *1 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.15, server: , request: "GET / HTTP/1.1", host: "192.168.1.200"
2014/11/30 10:49:17 [crit] 58891#0: *1 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 10:49:29 [error] 58891#0: *1 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.15, server: , request: "GET / HTTP/1.1", host: "192.168.1.200"
2014/11/30 11:02:42 [crit] 58891#0: *5 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 11:02:58 [error] 58891#0: *5 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.15, server: , request: "GET / HTTP/1.1", host: "192.168.1.200"
2014/11/30 11:03:26 [emerg] 65701#0: BIO_new_file("/usr/local/etc/nginx/certs/example.com.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/nginx/certs/example.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2014/11/30 11:03:26 [emerg] 65702#0: BIO_new_file("/usr/local/etc/nginx/certs/example.com.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/nginx/certs/example.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2014/11/30 11:18:58 [emerg] 4806#0: BIO_new_file("/usr/local/etc/nginx/certs/example.com.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/nginx/certs/example.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2014/11/30 11:18:58 [emerg] 4807#0: BIO_new_file("/usr/local/etc/nginx/certs/example.com.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/nginx/certs/example.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
2014/11/30 12:08:21 [emerg] 26200#0: bind() to 0.0.0.0:80 failed (49: Can't assign requested address)
2014/11/30 12:08:21 [emerg] 26201#0: bind() to 0.0.0.0:80 failed (49: Can't assign requested address)
2014/11/30 12:18:35 [error] 4848#0: *1 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.16, server: , request: "HEAD / HTTP/1.1", host: "192.168.1.200"
2014/11/30 12:18:35 [error] 4848#0: *3 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.16, server: , request: "HEAD / HTTP/1.1", host: "192.168.1.200"
2014/11/30 12:23:24 [crit] 4848#0: *5 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 12:23:36 [crit] 4848#0: *5 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 12:24:33 [crit] 4848#0: *17 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 12:31:41 [error] 4848#0: *19 open() "/usr/local/www/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: , request: "GET /status.php HTTP/1.1", host: "192.168.1.200"
2014/11/30 12:31:41 [crit] 4848#0: *19 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 12:32:14 [crit] 4848#0: *21 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 13:13:53 [crit] 4848#0: *29 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 19:20:15 [crit] 4848#0: *39 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 20:10:03 [crit] 4848#0: *42 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 20:10:22 [crit] 4848#0: *42 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 20:15:00 [error] 4848#0: *1 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.16, server: , request: "HEAD / HTTP/1.1", host: "192.168.1.200"
2014/11/30 20:15:00 [error] 4848#0: *3 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.16, server: , request: "HEAD / HTTP/1.1", host: "192.168.1.200"
2014/11/30 20:15:48 [crit] 4848#0: *9 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
2014/11/30 20:18:30 [crit] 4848#0: *12 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
 
Last edited:

clamschlauder

Dabbler
Joined
Feb 23, 2013
Messages
26
OK. I am starting to think it had to deal with me trying to capitalize certain things (such as OwnCloud).

Note to all other beginners, dont.

Joshua, I have reached the owncloud page. I am wondering if I would have typed http://192.168.1.200/OwnCloud if it would have worked. Who knows. All that matters is that it seems that I am in good shape now to move forward. Thanks for your time.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
OK. I am starting to think it had to deal with me trying to capitalize certain things (such as OwnCloud).

Note to all other beginners, dont.

Joshua, I have reached the owncloud page. I am wondering if I would have typed http://192.168.1.200/OwnCloud if it would have worked. Who knows. All that matters is that it seems that I am in good shape now to move forward. Thanks for your time.
name of the jail shouldn't make a difference. As for the URL, I guess the caps was your issue. glad you got it working.
 
Last edited:

Vijai

Cadet
Joined
Dec 1, 2014
Messages
5
Awesome guide! Thanks! Can anybody help me install phpmyadmin also? Thank you
P.S: Also, only Owncloud is handled as php. Everything else starts download. I mean, I want to host other files also in php. So is there anyway to automatically handle php?

Edit: Got it to work. Thanks
 
Last edited:

1RoH

Dabbler
Joined
Sep 14, 2014
Messages
21
Hell yeah! thanks for the tutorial, was little bit confused at first but got all figure it out with SSL, Thank you Joshua and cyberjock!
P.S. i only ran into one problem and cant find a answer from google, i installed all of the bonus soft and when i try pkg install libreoffice it says pkg: No packages available to install matching 'libreoffice' have been found in the repositories. im still googeling, hoping to find it, i guess i need to add a repository with libreoffice and than run the command. Thanks again for the tutorial and your help guys! cheers
 

1RoH

Dabbler
Joined
Sep 14, 2014
Messages
21
I see. So this is good news because it is the same for me and it narrows down the possible causes of the problem.
i had the same error, but i got it to work. here is step by step:

Gmail Account:
1. go HERE (hopefully link works for you) if not...
a. go to Gmail and click on your email top/right and select Account
b. scroll down until you see Signing in and the at the bottom click on App passwords.
2. bottom/left select app choose other and enter a name( i choose ownCloud) it doesnt matter.
3. generate and youll get a password in a yellow box, dont loose it save it somewhere.

OwnCloud:
1. go to personal and type you gmail and save it
2. go to admin, so here basically set your smtp up and use that password that you generated by app password ;)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
For anyone having issues sending email using PHP5.6 this fixed it for me.
Code:
ln -s /usr/local/share/certs/ca-root-nss.crt /etc/ssl/cert.pem
 

neto_hugo

Explorer
Joined
Mar 6, 2012
Messages
87
Guys, may not be the best place to post this, if not, I apologize to moderation and please erase or move my post as you wish.

In my quest to have access to the ownlcoud outside my LAN and using the no-ip service, went through my mind to install inside the owncloud jail the no-ip .

I did as follows:

#cd /usr/ports/dns/noip/
#make install clean
#make conf
#sysrc noip_enable = "YES"

And restarted the FreeNAS.

For some reason the client is not updating automatically but it is working! I say this because if I manually set my public IP on the no-ip website I have remote access (outside of my LAN) for owncloud. But when my IP changes, only the DDNS FreeNAS services upgrades to the new address, the client within the jail not, so I have no more remote access to the OC.

I followed the form of installation described here and everything is ok inside my LAN including SSL and the port 443 is open for the jail IP on my route.

Any tips on how to resolve or where I went wrong?

Thanks
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Guys, may not be the best place to post this, if not, I apologize to moderation and please erase or move my post as you wish.

In my quest to have access to the ownlcoud outside my LAN and using the no-ip service, went through my mind to install inside the owncloud jail the no-ip .

I did as follows:

#cd /usr/ports/dns/noip/
#make install clean
#make conf
#sysrc noip_enable = "YES"

And restarted the FreeNAS.

For some reason the client is not updating automatically but it is working! I say this because if I manually set my public IP on the no-ip website I have remote access (outside of my LAN) for owncloud. But when my IP changes, only the DDNS FreeNAS services upgrades to the new address, the client within the jail not, so I have no more remote access to the OC.

I followed the form of installation described here and everything is ok inside my LAN including SSL and the port 443 is open for the jail IP on my route.

Any tips on how to resolve or where I went wrong?

Thanks
This is completely unnecessary.
FreeNAS has built in Dynamic DNS service. Just pick no-ip.com from the dropdown.

EDIT
What IP is changing? your jail's internal IP or your WAN IP?
 

neto_hugo

Explorer
Joined
Mar 6, 2012
Messages
87
My WAN IP.

Joshua I have this 'example.no-ip.org' address configured in FreeNAS built-in. At this point everything it's fine..., I can access the FreeNAS from locations outside of my LAN.

But every time I tried to access the owncloud outside of my LAN using 'example.no-ip.org/owncloud' returned the 'Welcome page' of FreeNAS.

So I thought in the no-ip client inside de OC jail... Any tips on how I should proceed?

thank you very much
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
My WAN IP.

Joshua I have this 'example.no-ip.org' address configured in FreeNAS built-in. At this point everything it's fine..., I can access the FreeNAS from locations outside of my LAN.

But every time I tried to access the owncloud outside of my LAN using 'example.no-ip.org/owncloud' returned the 'Welcome page' of FreeNAS.

So I thought in the no-ip client inside de OC jail... Any tips on how I should proceed?

thank you very much
It sounds like you are port forwarding to FreeNAS but not owncloud.
You have to use different ports for each.

For example, I use..
https://WANIP for owncloud (port 443)
https://WANIP:446 for FreeNAS WebUI (port 446)
 
Top