[ 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
peelos
Been there, done that
Posts: 580
Joined: Sun Jun 26, 2016 9:28 pm

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

Post by peelos »

sloporc wrote:
I purchased a cheap domain and cert with namecheap.
How did you then get the NAS connected to the domain if qnap does not support namecheap dynamic dns ?

guess one option would be DD-WRT on the router.. unfortunately have limited speeds on the build for my netgear r7000 vs. stock.

EDIT: I did in fact in the end flash my router to support the namecheap.com dynamic dns server functionality, bought a domain name and an ssl certificate and set it up as described in the blog earlier.
Last edited by peelos on Tue Oct 25, 2016 5:40 pm, edited 1 time in total.
NAS: TVS-1282-i7-7700-40G / 4 x 500GB SSD 2.5" RAID 10 / 2 x 500GB M.2 SSD / 8 x 12TB WD Whites 3.5" RAID 6 / Noctua L9x65 / 3 x 80mm PWM Noctua fans / Corsair 600W PSU / Asus Turbo GTX 1060 6GB GPU
Software: Plex Media Server / Transmission / Sonarr / Radarr / Bazarr / Jackett / Tautulli / Home Assistant / Resilio Sync / Python / NetData / SortMyQPKGs
pfSense Firewall / OpenVPN Server: QOTOM Fanless Mini PC / Core i5 / 8GB RAM / 128GB SSD / 4 Gigabit NICs / AES-NI
Wireless Routers: 2 x Netgear AC1900 R7000 Nighthawk / 1 x Netgear AC3200 R8000 Nighthawk / FreshTomato Firmware
User avatar
peelos
Been there, done that
Posts: 580
Joined: Sun Jun 26, 2016 9:28 pm

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

Post by peelos »

made some progress with this but still struggling with my lack of understanding here..

I have edited the nginx.conf file in /.qpkg/QNginx/etc/nginx/ to the following:

Code: Select all

server {
        listen 443;
        ssl on;
        server_name  mydomain.com;
        ssl_certificate  /share/CACHEDEV1_DATA/.qpkg/QNginx/mycert.crt;
        ssl_certificate_key /share/CACHEDEV1_DATA/.qpkg/QNginx/mykey.key;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.php index.html index.htm;
        }
have started and stopped nginx from the qnap gui yet it always starts on port 89 and 443 redeirects to the Qnap GUI

any glaring errors here? also using namecheap domain and SSL cert that it looks like sloporc got working.

EDIT: realised that 443 was used for the qnap secure access web gui, so now have it running on the correct port.
NAS: TVS-1282-i7-7700-40G / 4 x 500GB SSD 2.5" RAID 10 / 2 x 500GB M.2 SSD / 8 x 12TB WD Whites 3.5" RAID 6 / Noctua L9x65 / 3 x 80mm PWM Noctua fans / Corsair 600W PSU / Asus Turbo GTX 1060 6GB GPU
Software: Plex Media Server / Transmission / Sonarr / Radarr / Bazarr / Jackett / Tautulli / Home Assistant / Resilio Sync / Python / NetData / SortMyQPKGs
pfSense Firewall / OpenVPN Server: QOTOM Fanless Mini PC / Core i5 / 8GB RAM / 128GB SSD / 4 Gigabit NICs / AES-NI
Wireless Routers: 2 x Netgear AC1900 R7000 Nighthawk / 1 x Netgear AC3200 R8000 Nighthawk / FreshTomato Firmware
User avatar
peelos
Been there, done that
Posts: 580
Joined: Sun Jun 26, 2016 9:28 pm

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

Post by peelos »

sloporc wrote:Can anyone help with the correct code to access the qnap admin ui behind nginx?

Code: Select all

location ^~ /qnapadmin {
    	proxy_pass https://127.0.0.1:8181/cgi-bin/;  *** also cannot get it to work as http://127.0.0.1:8080/cgi-bin/ or without the /cgi-bin/ in either case
    	proxy_set_header Host $http_host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Proto $scheme;
    }
Thanks for your help!
did you get this working in the end sloporc? thanks!
NAS: TVS-1282-i7-7700-40G / 4 x 500GB SSD 2.5" RAID 10 / 2 x 500GB M.2 SSD / 8 x 12TB WD Whites 3.5" RAID 6 / Noctua L9x65 / 3 x 80mm PWM Noctua fans / Corsair 600W PSU / Asus Turbo GTX 1060 6GB GPU
Software: Plex Media Server / Transmission / Sonarr / Radarr / Bazarr / Jackett / Tautulli / Home Assistant / Resilio Sync / Python / NetData / SortMyQPKGs
pfSense Firewall / OpenVPN Server: QOTOM Fanless Mini PC / Core i5 / 8GB RAM / 128GB SSD / 4 Gigabit NICs / AES-NI
Wireless Routers: 2 x Netgear AC1900 R7000 Nighthawk / 1 x Netgear AC3200 R8000 Nighthawk / FreshTomato Firmware
User avatar
peelos
Been there, done that
Posts: 580
Joined: Sun Jun 26, 2016 9:28 pm

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

Post by peelos »

I guess not as I read the instructions on the french forum and it's much more involved.. nicely linked and covered by gipoas in another post: viewtopic.php?t=116833

Link to the french forum: http://www.forum-nas.fr/viewtopic.php?f=55&t=4183
NAS: TVS-1282-i7-7700-40G / 4 x 500GB SSD 2.5" RAID 10 / 2 x 500GB M.2 SSD / 8 x 12TB WD Whites 3.5" RAID 6 / Noctua L9x65 / 3 x 80mm PWM Noctua fans / Corsair 600W PSU / Asus Turbo GTX 1060 6GB GPU
Software: Plex Media Server / Transmission / Sonarr / Radarr / Bazarr / Jackett / Tautulli / Home Assistant / Resilio Sync / Python / NetData / SortMyQPKGs
pfSense Firewall / OpenVPN Server: QOTOM Fanless Mini PC / Core i5 / 8GB RAM / 128GB SSD / 4 Gigabit NICs / AES-NI
Wireless Routers: 2 x Netgear AC1900 R7000 Nighthawk / 1 x Netgear AC3200 R8000 Nighthawk / FreshTomato Firmware
ADM-ODB
New here
Posts: 4
Joined: Mon Dec 15, 2014 9:25 am

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

Post by ADM-ODB »

gibxxi wrote:Stephane,

Getting the following errors when starting QNginx. They seem to be related to PHP-FPM. NGinx seems to be working but am having some long delays accessing certain redirects that may be related.

Code: Select all

Starting PHP-FPM
Failed loading /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so:  /opt/QNginx/lib/extensions/no-debunon-zts-20131226/opcache.so: cannot open shared object file: No such file or directory
Failed loading /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so:  /opt/QNginx/lib/extensions/no-debunon-zts-20131226/opcache.so: cannot open shared object file: No such file or directory
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/mongo.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/mongo.so: uefined symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/apcu.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/apcu.so: undined symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: timezonedb: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: raphf: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: propro: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/http.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so: undined symbol: zend_objects_free_object_storage in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/krb5.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/krb5.so: undined symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: radius: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/solr.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/solr.so: undined symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: mailparse: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/ev.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/ev.so: undefin symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/eio.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/eio.so: undefed symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: hrtime: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: uploadprogress: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/rar.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/rar.so: undefed symbol: zend_objects_free_object_storage in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/mongo.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/mongo.so: uefined symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/apcu.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/apcu.so: undined symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: timezonedb: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: raphf: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: propro: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/http.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so: undined symbol: zend_objects_free_object_storage in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/krb5.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/krb5.so: undined symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: radius: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/solr.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/solr.so: undined symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: mailparse: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/ev.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/ev.so: undefin symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/eio.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/eio.so: undefed symbol: zval_used_for_init in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: hrtime: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: uploadprogress: Unable to initialize module
Module compiled with module API=20131226
PHP    compiled with module API=20151012
These options need to match
 in Unknown on line 0
[05-May-2016 13:40:20] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/b/extensions/no-debug-non-zts-20151012/rar.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/rar.so: undefed symbol: zend_objects_free_object_storage in Unknown on line 0
Starting NGinx
The folder 'no-debunon-zts-20131226' does not exist, but the folder 'no-debug-non-zts-20151012' does.

CouchPotato is/was the longest to load up, but i've made some changes to my Nginx server config that may help with that. Please advise on the above error log.

[EDIT] FWIW: I Have Entware-ng 0.9.6 installed so the '/opt/' folder is symlinked to '/share/CACHEDEV1_DATA/.qpkg/Entware-ng' if that matters. I'm using QNginx_1.9.14.0_x86 on a TS-453-Pro, FW: 4.2.1 (20160419)

Gib.
Hallo Stephane!

Thank you for your excellent work! It's much appreciated . . . :D :D :D

Getting a similar output to gibxxi. Is this a subject for concern? Have I implemented something incorrectly?
mlai
Starting out
Posts: 41
Joined: Wed Jul 15, 2009 9:16 pm

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

Post by mlai »

The current nginx qpkg is compiled WITHOUT SNI support. Is there any chance some one can make one WITH TLS/SNI support?

Many thanks!
User avatar
QNAP_Stephane
Experience counts
Posts: 4802
Joined: Wed Mar 27, 2013 1:00 am

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

Post by QNAP_Stephane »

mlai wrote:The current nginx qpkg is compiled WITHOUT SNI support. Is there any chance some one can make one WITH TLS/SNI support?

Many thanks!
Not sure how to do that, openssl is till embedded.. do you know how add this when compiling from Source ?
---------------------------------------------------------------------------------------------------------------------------

Find all QPKG in the MyQnap.org repository https://www.myqnap.org
join our discord server for any inquiry related to qpkg - https://discord.gg/4fPxHSWKQW

----------------------------------------------------------------------------------------------------------------------------
bekax5
Starting out
Posts: 20
Joined: Wed Dec 21, 2016 1:01 am

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

Post by bekax5 »

I seem to be having some kind of error when trying to run nginx...
Since it didn't start automatically nor via the icon in the QNAP dashboard, I tried to run manually:

Code: Select all

[/] # /etc/init.d/QNginx.sh start
create symlink in opt
localization Share
Create html share if not exists
directory html exists
copy files index.html from Nginx if not exists
index.html file exists
copy files index.html from Nginx if not exists
50x.html file exists
copy files test.php from Nginx if not exists
test.php file exists
Generating some SSL self signed cert in case of, if not exist
cert files exists, not necessary
Starting PHP-FPM
/opt/QNginx/bin/php-fpm: error while loading shared libraries: libcrypt.so.1: wrong ELF class: ELFCLASS32
Starting NGinx
./nginx: error while loading shared libraries: libcrypt.so.1: wrong ELF class: ELFCLASS32
[/] #
This looks like some kind of error due to 32bit libraries or something.
I installed this version: QNginx_1.11.5_x86_64.qpkg

Any ideas?

Also, does this bring nginx-rtmp module?
sloporc
Know my way around
Posts: 116
Joined: Tue Jul 07, 2015 11:09 pm

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

Post by sloporc »

As far as I can tell, nginx will not start up despite the app center button being green. I see no nginx processes running in the resource monitor.
TVS-463 just upgraded to 4.3.3.0154
Just installed QNginx 1.11.5 x64 for FW 4.3.x

Code: Select all

# /etc/init.d/QNginx.sh start
create symlink in opt
localization Share
Create html share if not exists
directory html exists
copy files index.html from Nginx if not exists
index.html file exists
copy files index.html from Nginx if not exists
50x.html file exists
copy files test.php from Nginx if not exists
test.php file exists
Generating some SSL self signed cert in case of, if not exist
cert files exists, not necessary
Starting PHP-FPM
Failed loading /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so:  /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so: cannot open shared object file: No such file or directory
Failed loading /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so:  /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so: cannot open shared object file: No such file or directory
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/lib/extensions/no-debug-non-zts-20151012/uploadprogress.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/uploadprogress.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'imagick' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'apcu' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'timezonedb' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'raphf' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'propro' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'krb5' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'solr' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'mailparse' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'ev' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'eio' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'hrtime' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/lib/extensions/no-debug-non-zts-20151012/uploadprogress.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/uploadprogress.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'OAuth' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'scrypt' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'xxtea' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'hprose' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'redis' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'xattr' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'xdebug' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
Starting NGinx
2017/04/18 13:13:37 [emerg] 29224#0: open() "/opt/QNginx/logs/error.log" failed (2: No such file or directory)

Help greatly appreciated!
Model: TVS-463
Firmware: QTS 4.3.3.0154
Storage: RAID 5, 4 x4TB HGST Deskstar HG0S03664
RAM: Crucial 16GB Kit (8GBx2) DDR3-1600 MT/s (PC3-12800)
Networking: Port trunking balance-tlb
User avatar
peelos
Been there, done that
Posts: 580
Joined: Sun Jun 26, 2016 9:28 pm

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

Post by peelos »

sloporc wrote:As far as I can tell, nginx will not start up despite the app center button being green. I see no nginx processes running in the resource monitor.
TVS-463 just upgraded to 4.3.3.0154
Just installed QNginx 1.11.5 x64 for FW 4.3.x

Code: Select all

# /etc/init.d/QNginx.sh start
create symlink in opt
localization Share
Create html share if not exists
directory html exists
copy files index.html from Nginx if not exists
index.html file exists
copy files index.html from Nginx if not exists
50x.html file exists
copy files test.php from Nginx if not exists
test.php file exists
Generating some SSL self signed cert in case of, if not exist
cert files exists, not necessary
Starting PHP-FPM
Failed loading /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so:  /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so: cannot open shared object file: No such file or directory
Failed loading /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so:  /opt/QNginx/lib/extensions/no-debug-non-zts-20131226/opcache.so: cannot open shared object file: No such file or directory
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/lib/extensions/no-debug-non-zts-20151012/uploadprogress.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/uploadprogress.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'imagick' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'apcu' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'timezonedb' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'raphf' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'propro' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/http.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'krb5' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'solr' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'mailparse' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'ev' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'eio' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'hrtime' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/QNginx/lib/extensions/no-debug-non-zts-20151012/uploadprogress.so' - /opt/QNginx/lib/extensions/no-debug-non-zts-20151012/uploadprogress.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'OAuth' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'scrypt' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'xxtea' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'hprose' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'redis' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'xattr' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Module 'xdebug' already loaded in Unknown on line 0
[18-Apr-2017 13:13:37] NOTICE: PHP message: PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
Starting NGinx
2017/04/18 13:13:37 [emerg] 29224#0: open() "/opt/QNginx/logs/error.log" failed (2: No such file or directory)

Help greatly appreciated!
Working for me on 1282 following manual install
NAS: TVS-1282-i7-7700-40G / 4 x 500GB SSD 2.5" RAID 10 / 2 x 500GB M.2 SSD / 8 x 12TB WD Whites 3.5" RAID 6 / Noctua L9x65 / 3 x 80mm PWM Noctua fans / Corsair 600W PSU / Asus Turbo GTX 1060 6GB GPU
Software: Plex Media Server / Transmission / Sonarr / Radarr / Bazarr / Jackett / Tautulli / Home Assistant / Resilio Sync / Python / NetData / SortMyQPKGs
pfSense Firewall / OpenVPN Server: QOTOM Fanless Mini PC / Core i5 / 8GB RAM / 128GB SSD / 4 Gigabit NICs / AES-NI
Wireless Routers: 2 x Netgear AC1900 R7000 Nighthawk / 1 x Netgear AC3200 R8000 Nighthawk / FreshTomato Firmware
sloporc
Know my way around
Posts: 116
Joined: Tue Jul 07, 2015 11:09 pm

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

Post by sloporc »

Bump to my previous thread/issue
Model: TVS-463
Firmware: QTS 4.3.3.0154
Storage: RAID 5, 4 x4TB HGST Deskstar HG0S03664
RAM: Crucial 16GB Kit (8GBx2) DDR3-1600 MT/s (PC3-12800)
Networking: Port trunking balance-tlb
User avatar
gibxxi
Know my way around
Posts: 194
Joined: Mon Mar 30, 2015 11:15 pm
Contact:

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

Post by gibxxi »

If your running 4.3.3 Firmware, don't attempt to install packages directly from Qnapclub in QTS. It seems to be downloading x86 packages only.

You can do a manual install while being in the qnapclub appstore on QTS and see the addons appear as 'installed' in the correct store page, but avoid installing addons from it directly.
"Si vis pacem para bellum!"
NAS1: QNAP TS453-Pro (8GB, 4x4TB WD-Red Plus), NAS2: QNAP TS453-Mini (8GB, 4x2TB WD-Red).
sloporc
Know my way around
Posts: 116
Joined: Tue Jul 07, 2015 11:09 pm

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

Post by sloporc »

gibxxi wrote:If your running 4.3.3 Firmware, don't attempt to install packages directly from Qnapclub in QTS. It seems to be downloading x86 packages only.

You can do a manual install while being in the qnapclub appstore on QTS and see the addons appear as 'installed' in the correct store page, but avoid installing addons from it directly.
I tried installing manually from the file linked on the first post from within the qnapclub app repository. However, qnginx still shows up in the default App Store/repository.

In addition, I'm still not getting qnginx to work based upon the above error messages.
Model: TVS-463
Firmware: QTS 4.3.3.0154
Storage: RAID 5, 4 x4TB HGST Deskstar HG0S03664
RAM: Crucial 16GB Kit (8GBx2) DDR3-1600 MT/s (PC3-12800)
Networking: Port trunking balance-tlb
sloporc
Know my way around
Posts: 116
Joined: Tue Jul 07, 2015 11:09 pm

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

Post by sloporc »

Googling suggests that qnginx is 64bit whereas PHP is compiled as 32bit. Is this the problem?


Sent from my iPhone using Tapatalk
Model: TVS-463
Firmware: QTS 4.3.3.0154
Storage: RAID 5, 4 x4TB HGST Deskstar HG0S03664
RAM: Crucial 16GB Kit (8GBx2) DDR3-1600 MT/s (PC3-12800)
Networking: Port trunking balance-tlb
User avatar
gibxxi
Know my way around
Posts: 194
Joined: Mon Mar 30, 2015 11:15 pm
Contact:

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

Post by gibxxi »

sloporc wrote:
gibxxi wrote:If your running 4.3.3 Firmware, don't attempt to install packages directly from Qnapclub in QTS. It seems to be downloading x86 packages only.

You can do a manual install while being in the qnapclub appstore on QTS and see the addons appear as 'installed' in the correct store page, but avoid installing addons from it directly.
I tried installing manually from the file linked on the first post from within the qnapclub app repository. However, qnginx still shows up in the default App Store/repository.

In addition, I'm still not getting qnginx to work based upon the above error messages.
Strange, works on my TS453-MINI, but then again, I am still using the 'old' store repo link too as I'd have to uninstall and re-install all my apps downloaded from there in order to have them appeear in the same store (with the new URL), and until somebody can confirm or deny that 32/64bit autodetection works from their store, I just don't see the point. I still get valid notices about app updates with the 'old' store link, so I'm putting off redoing it until such times as I feel the need to do so. Aside from that fact, everything does still work for me, using my manual method.

With regards your question about 32/64bit libraries, you may be on to something, but QNAP_Stephane would need to confirm. I was using the old QNGinx add-on he made, but the new one (1.11.5) didn't seem to work with my existing configuration from the prior version. QNGinx itself seemed to be working (I successfully got the default & error pages) but my redirects simply flat-out failed to work. I uninstalled it until such times as I could do more research/testing.

It may be the case that 32bit app/addon support is not being provided by QNAP in the 3.x series firmwares, just 64bit. Seems somewhat severe if this is indeed the case (again, i've not done any research on this), but then again, given the size limitations required for the OS partition, this might be the reason. Certainly, no 32bit addons have worked for me since moving over to the 3.x firmware, fortunately in those cases, Universal and/or 64bit alternatives have been available thus far.

Gib.
"Si vis pacem para bellum!"
NAS1: QNAP TS453-Pro (8GB, 4x4TB WD-Red Plus), NAS2: QNAP TS453-Mini (8GB, 4x2TB WD-Red).
Post Reply

Return to “Community Apps”