Help with nginx

Status
Not open for further replies.

interpeix

Contributor
Joined
Nov 16, 2012
Messages
133
Hello,

I'm trying to install nginx webserver on a fresh install of Freenas 8.3.
The Plugin Jail is installed version 8.3 with Transmission and MiniDNLA working fine.
So now i'm trying to install owncloud. I have readed all the forums posts related to owncloud install, and i see that i need to install nginx with php FPM support, but i'm really lost.

I see in the jail that there is a nginx server installed, Can i use it?. If i'm worng, Is there anybody who have a howto install nginx with php-FPM?

Sorry if this question is already answered in another thread, but i can't find any guide and of course sorry for my terrible english :|

Thank you in advance.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
nginx and php-fpm are two different programs. you don't need nginx with php-fpm support, just nginx and php-fpm.
php-fpm will need to be compiled from source, as the packaged version of php doesn't include it
 

interpeix

Contributor
Joined
Nov 16, 2012
Messages
133
Ok, I understand.
So, first of all I need to install nginx. Do you recomend some great howto for Freenas8.3? Or maybe anyone for FreeBSD is ok.
I see that in the jail, there is a nginx server, I try to start the service, but always say the same thing "Impossible to start, nginx_enable is "NO". I try to edit /mnt/d0/jail/software/etc/rc.conf and add nginx_enable="YES" but didn't work.

Please, a bit more explanation will be apreciated, as you can see i'm a really n00b user in FreeBSD.
I saw in another post that you succesfully install owncloud, and your steps seems to be very easy, but i'm really lost installing packages or compiling.

Thank you.

Regards.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok, I understand.
So, first of all I need to install nginx. Do you recomend some great howto for Freenas8.3? Or maybe anyone for FreeBSD is ok.
I see that in the jail, there is a nginx server, I try to start the service, but always say the same thing "Impossible to start, nginx_enable is "NO". I try to edit /mnt/d0/jail/software/etc/rc.conf and add nginx_enable="YES" but didn't work.

Please, a bit more explanation will be apreciated, as you can see i'm a really n00b user in FreeBSD.
I saw in another post that you succesfully install owncloud, and your steps seems to be very easy, but i'm really lost installing packages or compiling.

Thank you.

Regards.

Is your shell session in the jail or the base FreeNAS install? You saying '/mnt/d0/jail/software/etc/rc.conf' makes me scared you are running everything as if you never went into the jail with 'jexec'
You need to enter the jail userland otherwise 'service nginx start' will fail because it's looking at /etc/rc.conf not /mnt/d0/jail/software/etc/rc.conf
 

interpeix

Contributor
Joined
Nov 16, 2012
Messages
133
Sorry for my poor explanation.

I'm inside the jail with 'jexec 1 tcsh' but i write the all path in the previous reply to be more clear wich rc.conf was editing.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Sorry for my poor explanation.

I'm inside the jail with 'jexec 1 tcsh' but i write the all path in the previous reply to be more clear wich rc.conf was editing.

ahh, I see. so what doesn't work? changing the file, or starting nginx?
 

interpeix

Contributor
Joined
Nov 16, 2012
Messages
133
Finally I did it!!!!

Reading again your other threads, I was decided that my know-how about FreeBSD was not enough.Reading some documents about Package System on FreeBSD, I can accomplish my work.

I think the problem is that in your other theads, we are always talking about jail in version 8.2, but in 8.3, there are some packages like sqlite3 and others that its version is too new and it need to be uninstalled.

Thank you so much for your help!
:)
 
Status
Not open for further replies.
Top