Hi,
I'm progressing well with Unit on Fedora 28, but I don't understand
what's needed in my Perl application block with respect to "script"
I want to run AWStats through Unit. Using Perl 5.26.2
Thanks for looking
Hi all,
I'm trying to install from sources on Fedora 28. I used Mercurial to
download them (if that's important).
configure, configure perl and configure php went well, as did make all.
I get the following error when trying make install
[root@hawking unit]# make install
install -d sbin
install -p build/unitd sbin/
install -d build
install -d build
install -p build/perl.unit.so \
build/
install: 'build/perl.unit.so' and 'build/perl.unit.so' are the same file
make: *** [build/Makefile:1466: perl-install] Error 1
Thanks for looking
Hi,
Previously I've been running Nginx + php-fpm on a Fedora 28 box, this
has run fine. For various reasons I want to migrate to Nginx + Unit,
and because I haven't been able to install this on Fedora 28 (have no
intention of compiling, install has to be through repos) I've set up a
CentOS 7.5 box to migrate to.
Static http / php pages work fine, but my sites redirect from http to
https (config below) and I'm now getting 'too many redirects' errors.
Any clues as to what I need to do to fix this?
Relevant Nginx server block config -
server {
listen 80;
listen [::]:80;
server_name randomthoughts.trisect.uk;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
root /var/www/rt;
index index.php;
server_name randomthoughts.trisect.uk;
location ~ \.php$ {
proxy_pass http://unit_rt;
proxy_set_header Host $host;
}
Relevant Nginx http block config -
upstream unit_rt {
server 127.0.0.1:8302;
}
Thanks for looking
Hi,
I'm just starting out with Nginx Unit and have had limited success so
far. I run multiple sites, all as subdirectories under '/var/www' and
all running PHP. Do I need a separate listener and application for each
site (even though they're all running PHP)?
Thanks for looking
Tags described here https://hub.docker.com/r/nginx/unit/, e.g.:
> "php" can run PHP scripts.
do not exist. Full list of current version is
1.2-full
1.2-go1.7-dev
1.2-go1.8-dev
1.2-minimal
1.2-perl5.24
1.2-php7.0
1.2-python2.7
1.2-python3.5
1.2-ruby2.3
Regards,
Vlad Kras
--
С уважением,
Красовский Влад.
how can I install unit-php on Centos 7? This what I obtain:
Resolving Dependencies
--> Running transaction check
---> Package unit-php.x86_64 0:1.2-1.el7.ngx will be installed
--> Processing Dependency: libphp5-5.4.so()(64bit) for package:
unit-php-1.2-1.el7.ngx.x86_64
--> Running transaction check
---> Package php-embedded.x86_64 0:5.4.16-45.el7 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-45.el7 for package:
php-embedded-5.4.16-45.el7.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-45.el7 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package:
php-common-5.4.16-45.el7.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Processing Conflict: php56w-common-5.6.36-1.w7.x86_64 conflicts
php-common < 5.6
--> Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.4.16-45.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Hello,
I'm glad to announce a new release of NGINX Unit.
Changes with Unit 1.2 07 Jun 2018
*) Feature: configuration of environment variables for application
processes.
*) Feature: customization of php.ini path.
*) Feature: setting of individual PHP configuration options.
*) Feature: configuration of execution arguments for Go applications.
*) Bugfix: keep-alive connections might hang after reconfiguration.
Here's an example of new configuration parameters of application objects:
{
"args-example": {
"type": "go",
"executable": "/path/to/compiled/go/binary",
"arguments": ["arg1", "arg2", "arg3"]
},
"opts-example": {
"type": "php",
"root": "/www/site",
"script": "phpinfo.php",
"options": {
"file": "/path/to/php.ini",
"admin": {
"memory_limit": "256M",
"variables_order": "EGPCS",
"short_open_tag": "1"
},
"user": {
"display_errors": "0"
}
}
},
"env-example": {
"type": "python",
"path": "/www/django",
"module": "wsgi",
"environment": {
"DB_ENGINE": "django.db.backends.postgresql_psycopg2",
"DB_NAME": "mydb",
"DB_HOST": "127.0.0.1"
}
}
}
Please note that "environment" can be configured for any type of application.
Binary Linux packages and Docker images are available here:
- Packages: https://unit.nginx.org/installation/#precompiled-packages
- Docker: https://hub.docker.com/r/nginx/unit/tags/
wbr, Valentin V. Bartenev