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

Mad_noob

Dabbler
Joined
Jan 13, 2016
Messages
13
My router is pure crap.

If the workaround i linked above isn't working for me, the only way is to change my router...

I don't have the time to do it right now, but as soon as i can will do it to try.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
My router is pure crap.

If the workaround i linked above isn't working for me, the only way is to change my router...

I don't have the time to do it right now, but as soon as i can will do it to try.
lol, yeah. Most people in the US have a cable provided modem/router combo, which is terrible.

For all my family members I switched them to a customer own modem + pfsense or ddwrt router.
 

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
was the jail created a standard jail or a plugin jail? ( i created a standard jail)

also followed the guide however I can not access using jail ip (which it doesn't show up in the plugin list)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
was the jail created a standard jail or a plugin jail? ( i created a standard jail)

also followed the guide however I can not access using jail ip (which it doesn't show up in the plugin list)
why would it show on the plugin list if you setup a standard jail, and therefore it's not a plugin?

whatn error do you get when trying to access the jail IP?
 

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
502 Bad Gateway
nginx/1.10.1

using my jail ip http://192.168.1.3/owncloud

rechecked all the settings and everything is there as far as I know

using this to access it as per my jail ip address

Even restarted the php-fpm and nginx services and there are no errors.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
502 Bad Gateway
nginx/1.10.1

using my jail ip http://192.168.1.3/owncloud

rechecked all the settings and everything is there as far as I know

using this to access it as per my jail ip address

Even restarted the php-fpm and nginx services and there are no errors.
Does 'sockstat' show you where php-fpm is listening?
 

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
www php-fpm 85398 0 stream /var/run/php-fpm.sock
www php-fpm 85397 0 stream /var/run/php-fpm.sock
root php-fpm 85396 10 stream -> ??
root php-fpm 85396 13 stream -> ??
root php-fpm 85396 14 stream /var/run/php-fpm.sock

Josh does this help? its the only php-fpm port info
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
yea getting a 404 not found error
does the URL require a port after it like the other plugins i run? (i.e. sickrage, CP, Sab headphones , etc)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
yea getting a 404 not found error
does the URL require a port after it like the other plugins i run? (i.e. sickrage, CP, Sab headphones , etc)
you're nginx config is not correct then. no port necessary
 

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
ill keep digging
thnaks
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
hmm, another thought. maybe you didn't unpack/copy the files correctly.
Your owncloud source files should exist in /usr/local/www/owncloud
 

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
odd

when i go into /usr/local/www there isn't an owncloud directory
 

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
NM scratch that
its all correct i was just sshed into the root of freenas and not the jail (DOH)!
I been looking at it too long i guess
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
NM scratch that
its all correct i was just sshed into the root of freenas and not the jail (DOH)!
I been looking at it too long i guess
ok, if the file exists, but you're getting a 404, suggests your nginx config is incorrect.
 

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
i feel stupid

the lines in php-fpm.conf were not uncommented ! ( ; )
sorry for posting so many times on me not following the directions!
pulls up the web page now
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
i feel stupid

the lines in php-fpm.conf were not uncommented ! ( ; )
sorry for posting so many times on me not following the directions!
pulls up the web page now
yeah, that one hits people alot
 

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
make /usr/ports/www/nginx install

how do you select the options when the installer comes up?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
make /usr/ports/www/nginx install

how do you select the options when the installer comes up?
usually they come up, I'd never being set. but you can always 'make config' to change them
 

Dwight Turner

Explorer
Joined
Oct 13, 2014
Messages
76
thanks
how to select and deselect?key command ?
 
Top