[ QNginx + PHP-FPM ] [ 1.12.2 ] Web Server and more [embedded]

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
User avatar
QNAP_Stephane
Experience counts
Posts: 3869
Joined: Wed Mar 27, 2013 1:00 am

[ QNginx + PHP-FPM ] [ 1.12.2 ] Web Server and more [embedded]

Post by QNAP_Stephane » Fri Sep 04, 2015 1:41 am

Image

Source : http://nginx.org/ https://qnapclub.eu/index.php?act=detail&qpkg_id=198

x86 Version :http://www.positiv-it.fr/QNAP/APP/QNginx_1.9.4.0_x86.qpkg.zip (PHP-FPM 5.6.12 embedded)

x86 Version :http://www.positiv-it.fr/QNAP/APP/QNginx_1.9.9.0_x86.qpkg.zip (PHP-FPM 5.7.02 embedded)
phpconfig : http://www.positiv-it.fr/QNAP/PAGE/phpinfo702nginx.htm


x86 Version :http://www.positiv-it.fr/QNAP/APP/QNginx_1.9.12.0_x86.qpkg.zip (PHP-FPM 7.04 embedded)
phpconfig : http://www.positiv-it.fr/QNAP/PAGE/phpinfo7.04.html


x86 Version :http://www.positiv-it.fr/QNAP/APP/QNginx_1.9.14.0_x86.qpkg.zip (PHP-FPM 7.0.5 embedded)
phpconfig : http://www.positiv-it.fr/QNAP/PAGE/phpinfo7.04.html

x86 Version :http://www.positiv-it.fr/QNAP/APP/QNginx_1.11.5.0_x86.qpkg.zip (PHP-FPM 7.0.12 embedded)
x64 Version :http://www.positiv-it.fr/QNAP/APP/QNginx_1.11.5.0_x86_64.qpkg.zip (PHP-FPM 7.0.12 embedded) [ FW 4.3.x]
phpconfig x64 : http://www.positiv-it.fr/QNAP/PAGE/phpinfo_nginx_x641.11.5.html

x64 Version :https://www.qnapclub.eu/provider.php/qpkg_dwl/460772/QNginx_1.12.2_x86_64.qpkg (PHP-FPM 7.1.11 embedded)


Note :

unzip and install QPKG

default listen on port 89

config files are in /opt/QNginx/etc and /opt/QNginx/etc/nginx

phpinfo() available ( http://ip_of_your_nas:89/test.php )

[b]Sample :
http://www.positiv-it.fr/QNAP/PAGE/phpinfo_nginx.htm

About :

nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP proxy server, originally written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites including Yandex, Mail.Ru, VK, and Rambler. According to Netcraft, nginx served or proxied 22.61% busiest sites in August 2015. Here are some of the success stories: Netflix, Wordpress.com, FastMail.FM.

The sources and documentation are distributed under the 2-clause BSD-like license.


Basic HTTP server features

Serving static and index files, autoindexing; open file descriptor cache;
Accelerated reverse proxying with caching; load balancing and fault tolerance;
Accelerated support with caching of FastCGI, uwsgi, SCGI, and memcached servers; load balancing and fault tolerance;
Modular architecture. Filters include gzipping, byte ranges, chunked responses, XSLT, SSI, and image transformation filter. Multiple SSI inclusions within a single page can be processed in parallel if they are handled by proxied or FastCGI/uwsgi/SCGI servers;
SSL and TLS SNI support.

Other HTTP server features

Name-based and IP-based virtual servers;
Keep-alive and pipelined connections support;
Flexible configuration;
Reconfiguration and upgrade of an executable without interruption of the client servicing;
Access log formats, buffered log writing, fast log rotation, and syslog logging;
3xx-5xx error codes redirection;
The rewrite module: URI changing using regular expressions;
Executing different functions depending on the client address;
Access control based on client IP address, by password (HTTP Basic authentication) and by the result of subrequest;
Validation of HTTP referer;
The PUT, DELETE, MKCOL, COPY, and MOVE methods;
FLV and MP4 streaming;
Response rate limiting;
Limiting the number of simultaneous connections or requests coming from one address;
Embedded Perl.

Mail proxy server features

User redirection to IMAP or POP3 server using an external HTTP authentication server;
User authentication using an external HTTP authentication server and connection redirection to an internal SMTP server;
Authentication methods:
POP3: USER/PASS, APOP, AUTH LOGIN/PLAIN/CRAM-MD5;
IMAP: LOGIN, AUTH LOGIN/PLAIN/CRAM-MD5;
SMTP: AUTH LOGIN/PLAIN/CRAM-MD5;
SSL support;
STARTTLS and STLS support.

TCP proxy server features

Generic proxying with SSL termination; load balancing and fault tolerance;
Last edited by QNAP_Stephane on Tue Nov 14, 2017 1:09 am, edited 7 times in total.
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

User avatar
Moogle Stiltzkin
Ask me anything
Posts: 9398
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: [ QNginx + PHP-FPM ] [ 1.9.4 ] Web Server and more [embedded]

Post by Moogle Stiltzkin » Sat Oct 03, 2015 8:57 pm

ty, been dying for this for ages.

i just hope that qnap also eventually helps come up with an easy preconfiguration to setup nginx.

e.g. switching from apache to nginx, particularly to transition nginx to use default port 80 which is the standard service port for websites, so that less advance users such as myself needn't have to hack the config files to try and get that to work, or accidentally break web access for qpkg apps that require Web from apache folder :/ .....
NAS
[Main Server] QNAP TS-877 w. 4tb [ 3x HGST Deskstar NAS (HDN724040ALE640) & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A w. 5x 2TB Samsung F3 (HD203WI) EXT4 Raid5
[Backup] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) single disks.
[^] QNAP TS-659 Pro II
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-228
[^] QNAP TS-128
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Asus AC68U Router|100dl/50ul MBPS FTTH Internet | Win10, WC PC-Intel i7 920 Ivy bridge desktop (1x 512gb Samsung 850 Pro SSD + 1x 4tb HGST Ultrastar 7K4000)


Guides & articles
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin

User avatar
Moogle Stiltzkin
Ask me anything
Posts: 9398
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: [ QNginx + PHP-FPM ] [ 1.9.4 ] Web Server and more [embedded]

Post by Moogle Stiltzkin » Mon Oct 26, 2015 4:00 pm

hm tried to test wordpress to work under nginx but couldn't get it to work :[
NAS
[Main Server] QNAP TS-877 w. 4tb [ 3x HGST Deskstar NAS (HDN724040ALE640) & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A w. 5x 2TB Samsung F3 (HD203WI) EXT4 Raid5
[Backup] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) single disks.
[^] QNAP TS-659 Pro II
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-228
[^] QNAP TS-128
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Asus AC68U Router|100dl/50ul MBPS FTTH Internet | Win10, WC PC-Intel i7 920 Ivy bridge desktop (1x 512gb Samsung 850 Pro SSD + 1x 4tb HGST Ultrastar 7K4000)


Guides & articles
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin

User avatar
QNAP_Stephane
Experience counts
Posts: 3869
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by QNAP_Stephane » Tue Jan 12, 2016 9:55 pm

NGinx Core update to 1.9.9
PHP-FPM updated to 5.7.02
Openssl upgraded to 1.0.1q
Curl upgraded to 7.46
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

CylonCenturion

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by CylonCenturion » Sat Jan 16, 2016 7:02 pm

QNAP_Stephane wrote:NGinx Core update to 1.9.9
PHP-FPM updated to 5.7.02
Openssl upgraded to 1.0.1q
Curl upgraded to 7.46


Thanks
I have installed it, but would like to know what the equivalent of:

Code: Select all

/etc/nginx/sites-available


is, in this matter?
I want to setup some sites like spotweb and rutorrent, using nginx.
Both websites needed sites-available.

Thanks

User avatar
QNAP_Stephane
Experience counts
Posts: 3869
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by QNAP_Stephane » Sat Jan 16, 2016 10:26 pm

guess you have to put your files in html shared you created
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

kwtruk
New here
Posts: 3
Joined: Tue Sep 30, 2014 8:57 am

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by kwtruk » Sun Jan 24, 2016 7:08 pm

Thanks
I have installed it, but would like to know what the equivalent of:
CODE: SELECT ALL
/etc/nginx/sites-available


is, in this matter?
I want to setup some sites like spotweb and rutorrent, using nginx.
Both websites needed sites-available.

Thanks


i just hope that qnap also eventually helps come up with an easy preconfiguration to setup nginx.

e.g. switching from apache to nginx, particularly to transition nginx to use default port 80 which is the standard service port for websites, so that less advance users such as myself needn't have to hack the config files to try and get that to work, or accidentally break web access for qpkg apps that require Web from apache folder :/ .....



Strongly agree with both of these requests. I am not having any luck migrating Nginx/QNginx off port 80, as I don't want to mess with the Apache server already running.

I am learning as I go so this is an uphill battle, and have spent the last 4 hours trying to get Nginx to start on port 81, 85 or 95 (just trying different ports out of desperation.) No luck so far. Nothing matches all the guides I read. No conf.d file either.

If anyone has successfully done this and can point me towards some particular guide I can learn off, that would be much appreciated.

User avatar
QNAP_Stephane
Experience counts
Posts: 3869
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by QNAP_Stephane » Sun Jan 24, 2016 7:56 pm

just have to modify /opt/Qnginx/etc/nginx/nginx.conf

server {
listen 89;
server_name localhost;


I think it is enought, dont forget to restart Qnginx to take change effect
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

chesboro
New here
Posts: 3
Joined: Fri Jan 22, 2016 4:46 pm

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by chesboro » Tue Jan 26, 2016 6:06 pm

Thank you QNAP_Stephane this is a great package.

I'm curious about a thing: since we're going to use this nginx instance in a production environment, I was wondering why this package, once installed, takes about 2GB of space on disk. Is that the weight of all the packages? Thank you

User avatar
QNAP_Stephane
Experience counts
Posts: 3869
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by QNAP_Stephane » Tue Jan 26, 2016 6:11 pm

size is such big

just because, i include some other binaries (for exemple you have full mysql 5.6 inside to bind libs with php) and also kept the man/doc and include, i guess man page can be deleted, but i keep include for upgrade purpose
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

goodelyfe
Know my way around
Posts: 122
Joined: Tue Jul 01, 2014 5:50 pm

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by goodelyfe » Thu Jan 28, 2016 12:24 pm

Could this take over the already in place apache?

Adverse effects?

User avatar
QNAP_Stephane
Experience counts
Posts: 3869
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by QNAP_Stephane » Thu Jan 28, 2016 9:34 pm

it will not replace the embbeded Apache but run aside
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

kondra007
New here
Posts: 6
Joined: Sat Aug 09, 2014 9:36 pm

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by kondra007 » Sun Feb 21, 2016 11:19 pm

I'm sorry, but are there any plans to add Nginx to previous generations? Like TS-220 and so.

User avatar
QNAP_Stephane
Experience counts
Posts: 3869
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QNginx + PHP-FPM ] [ 1.9.9 ] Web Server and more [embedded]

Post by QNAP_Stephane » Mon Feb 22, 2016 2:39 am

kondra007 wrote:I'm sorry, but are there any plans to add Nginx to previous generations? Like TS-220 and so.


dont think php-fpm should be an headache to compile on ARMV5
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

User avatar
QNAP_Stephane
Experience counts
Posts: 3869
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QNginx + PHP-FPM ] [ 1.9.12 ] Web Server and more [embedded]

Post by QNAP_Stephane » Mon Mar 14, 2016 2:56 am

updated

nginx >> 1.9.12
php-fpm >> 7.0.04
openssl >> 1.0.1r
Curl >> 7.47.1

( Upload pending )
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

Post Reply

Return to “Community Apps”