View Full Version : Danginx : A Directadmin Nginx Plugin :: Turbo boost your direct admin sever
syslint
10-24-2010, 10:09 AM
About Danginx
Danginx or Direct Admin nginx plugin is an Nginx server integration plugin for Directadmin servers. This plugin will increase your server performance and decrease server loads cased by apache web server.
Project Home Page : http://danginx.com/
Documentation : http://wiki.sysvm.com/DirectAdminNginx
How Nginx will help your Directadmin server to increase the performance ?
Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.
Unlike traditional servers, Nginx doesn't rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts of memory under load.
Even if you don't expect to handle thousands of simultaneous requests, you can still benefit from Nginx's high-performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers.
Some Features of Danginx
High Performance : Nginx will work as a front end reverse proxy of your Directadmin server along with apache. Which will increase the performance due to the software architecture.
Protection Against Malicious attacks : Nginx will only pass true http requests and protect against attacks like DDOS from your server.
100% compatible with Directadmin : Danginx is 100% compatible with Directadmin. It have autoinstaller , autoupdate and uninstaller scripts which will make your job easy to integrate it.
GZIP compression , Save bandwidth : Danginx is integrated with GZIP compression. You can enable and disable this feature.You can also set the compression lever from 1 to 9.
24x7 Technical support : We provide 24 hours tech support for your Nginx server.
Dougy
10-25-2010, 07:32 AM
I might be a new customer.. soon.
syslint
10-25-2010, 08:59 AM
I might be a new customer.. soon.
Thank you very much :)
so do i pay 5 usd just to get nginx installed? you will install nginx to serve as static content and apache as proxy?why nnot go 100%nginx
note i have 30 sites.. what is your script any different then this http://directadm.in/nginx
syslint
10-25-2010, 07:35 PM
hello,
The main reason is rewrite utl, Also direct admin need apache too.
http://danginx.com/ is the plugin page.
- Everything is automated
- It support static files served directly from nginx WITHOUT BAND WIDTH LOSS
- File extensions are customisable
- You can customize vhost templates
- You can customize nginx.conf
- etc,.
but it also means you will not use php fpm which is alot better then mod_php
cant directadmin apache just listen to port 81 and have nginx listen to 80
and also will you install if i order the license or should i do it myself. Im not an expert on this same as customizing the config
syslint
10-26-2010, 10:12 PM
Hello,
You no need to worry about the installation and other settings for this plugin. Everything is automated. to install it just execute " ./install " , You can enable and disable enginx as you wish using the script " /usr/local/directadmin/scripts/enablenginx and /usr/local/directadmin/scripts/disablenginx . You can also remove the installation using /etc/danginx/uninstall.sh
venon
10-31-2010, 07:07 PM
can this read all rewrite commands for apache?
syslint
10-31-2010, 11:58 PM
can this read all rewrite commands for apache?
Yes it will do all rewrites , everything is automated.
Jesse
11-01-2010, 02:39 AM
So if i buy this one, server would run as it is but more improved?
Would i still be able to run my sites without errors?
Can you offer free installation in case I buy this one?
syslint
11-01-2010, 02:44 AM
So if i buy this one, server would run as it is but more improved?
Would i still be able to run my sites without errors?
Can you offer free installation in case I buy this one?
Yes installation is free.
We also provide one time server optimisation service at an affordable cost. You can check your website from http://www.whatsmyip.org/http_compression/ after installing this plugin and see how much % you improved it.
Jesse
11-01-2010, 03:24 AM
I availed the free trial.
I installed, i don't see any difference?
How will i know it's working as it should be?
syslint
11-01-2010, 03:28 AM
I availed the free trial.
I installed, i don't see any difference?
How will i know it's working as it should be?
Nginx will be in port 80 and apache will be in port 8888
netstat -pant | grep nginx
netstat -pant | grep httpd
can this read all rewrite commands for apache?
Nginx doesnt do rewrites, apache does them. I have my own implementation of simmilar idea, but more functional.
DA-Rff
11-09-2010, 02:19 AM
would this work for freebsd as well?
tnx
iprodua
11-18-2010, 01:48 PM
I have tested your plugin (CentOS x86, latest da software)
For me it doesn't change port 80 to 8888 in /usr/local/directadmin/data/users/_username_/httpd.conf , all sites after installing your plugin show default apache page. (i need manually correct 80 to 8888)
Mikerobenics
11-23-2010, 03:05 AM
Hello, I installed Danginx in my Debian server, but can`t start nginx, I get error:
"[warn]: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/nginx/conf/nginx.conf:2
[emerg]: bind() to 0.0.0.0:80 failed (13: Permission denied)"
Any help appreciated.
Are you logged in as the root user?
Mikerobenics
11-23-2010, 11:33 AM
Are you logged in as the root user?
Yes, scsi. I logged in as the root user. Also there is a code in 2nd line of the nginx.conf file:
user nobody;
I tried with changing it to root, www-data, nginx and etc. too. But no success at all.
nimafire
11-25-2010, 01:22 AM
this line has added on /usr/local/etc/php5/cgi/php.ini :
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
but on installation it show error that ioncube isnt install on server
syslint
12-11-2010, 10:25 PM
this line has added on /usr/local/etc/php5/cgi/php.ini :
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
but on installation it show error that ioncube isnt install on server
You are not installed ioncube loader properly , please use the following command to see ioncube loader ,
# php -v | grep -i ioncube
Also enable it in /usr/local/lib/php.ini
MAke sure you are using the correct 32bit or 64 bit version of ioncube loader
syslint
12-11-2010, 10:29 PM
The log files of nginx is available under /usr/local/nginx/logs/ . So you can debug it easily,
syslint
12-17-2010, 12:09 PM
Hello,
There was a startup script bug in debian/ubuntu installations . A fix for this is available on http://forum.syslint.com/topic/138/solved-debian-direct-admin-nginx-plugins-issue/
This will be fixed from version 1.1 + of danginx plugins
interfasys
02-08-2011, 04:06 PM
Will it be possible in the future to only enable it per domain?
Will you support multiple IPs per domain?
syslint
02-14-2011, 03:17 AM
You can send this feature request to our forum . But enable nginx for one domain is not possible .It need to listen on port 80
nobaloney
02-14-2011, 09:57 AM
But enable nginx for one domain is not possible .It need to listen on port 80
Not exactly. You can run nginx (for example) on port 81, and use an .htaccess redirect to redirect requests for that one domain to port 81.
Jeff
syslint
02-14-2011, 10:09 AM
Not exactly. You can run nginx (for example) on port 81, and use an .htaccess redirect to redirect requests for that one domain to port 81.
Jeff
But here nginx is the front end and apache is on port 8888 in danginx plugin :-D , It is possible to customize for single users , But for as a general plugin I think it is not good.
nobaloney
02-14-2011, 10:16 AM
I should have noticed I was replying in a plugin-specific thread.
Thanks.
Jeff
nimafire
02-18-2011, 10:29 AM
does anyone test this web server (nginx) on share hosting service ?
DA-Rff
02-21-2011, 02:45 AM
Hi, I would really like to see this work on freebsd.
nginx is available as a port on freebsd, so that part should be ok.
How about the plugin, can that be made to work on freebsd?
Any other freebsd users here who would second that?
Oliver
syslint
02-21-2011, 08:36 AM
Hi, I would really like to see this work on freebsd.
nginx is available as a port on freebsd, so that part should be ok.
How about the plugin, can that be made to work on freebsd?
Any other freebsd users here who would second that?
Oliver
It is not tested in bsd. It need init scripts modifications in bsd.
DA-Rff
02-21-2011, 08:50 AM
Thanks syslint,
next question is then how to get these bsd init settings.
Would you know what & how to?
Would you want to give it a try, I could set you up on one of my freebsd servers if you like.
tnx
Oliver
massive
02-21-2011, 02:12 PM
Is apache benchmark tool a good way of testing this product?
mr.applesauce
02-21-2011, 06:08 PM
es no good
syslint
02-24-2011, 01:01 PM
Hello,
Today we released a new version of Danginx , version 2.0 . It have the following features or bug fix.
- Pointer Domain Support :
The pointer domain feature was missing from the previous version. We added this feature to version 2.0
- Improved Debian Support :
We added more support for debian version of directadmin.
Bug fix:
Fixed autoupdate bug . So we request all current danginx users need to manually update to version 2.0 .
How to manually upgrade ?
Download the danginx version 2.0 from https://portal.syslint.com , on the download url and upload to your server . The see the following steps,
# tar -xzf danginx.2.0.tar.gz
# cd danginx/
# ./install
interfasys
02-24-2011, 01:03 PM
Would you know what & how to?r
Just use the ones from ports
OvcaX
03-06-2011, 01:40 AM
Will you provide lifetime licence.
I rather pay more per server than monthly licence
syslint
03-06-2011, 01:45 AM
Will you provide lifetime licence.
I rather pay more per server than monthly licence
yes we provide life time on request . Please contact sales.
PS: We provide free license with our server management plans
DA-Rff
03-06-2011, 04:17 AM
Just use the ones from ports
So to make sure I understand:
- install nginx via ports on freebsd
- install daginx plugin
and it just simply works?
No further settings?
Thanks for the info interfasys!
Yolte
04-04-2011, 04:37 AM
Hello,
I tried to install plugin on some different servers;
CentOS release 5.5 (Final)
with the ionCube PHP Loader v4.0.5,
Checking for Directadmin ..[ YES ]
Checking for previous installation ..
Enter License key :
Checking for supported OS ..[ RHEL/CENTOS ]
Checking for SED ..[ YES ]
Checking for GREP ..[ YES ]
[ YES ]
Checking for Ioncube Loader for php...[ YES ]
Installing Directadmin Nginx Plugin...chmod: cannot access `cgi/danginx/index.html': No such file or directory
[ done ]
Checking for autoupdate cron[ No ]
`updatedanginx.sh' -> `/etc/cron.weekly/updatedanginx.sh'
`/usr/local/lib/php.ini' -> `/etc/danginx/php.ini'
sh: /yum: No such file or directory
sh: /cd: No such file or directory
sh: /rm: No such file or directory
sh: /rm: No such file or directory
sh: /wget: No such file or directory
sh: /tar: No such file or directory
sh: /cd: No such file or directory
Nginx installation failed , Please contact supportNginx installation failed
And why do you need to comment disable_functions?
sed -i 's/disable_functions.*/;disable_functions/g' /etc/danginx/php.ini
johannes
04-20-2011, 03:16 PM
Hi, I want to share the solution if LFD stopped as danginx was installed:
There is a port mismatch, Danginx let Apache run on :8888, and this is the same port which CSF/LFD uses for the Messenger-Service "MESSENGER_HTML = .."
Solution is simple: in csf.conf change the messenger-port from :8888 to something else ... ex. :8886 and restart CSF/LFD.
except:
"# Set this to the port that will receive the HTML message. You should configure this port to be >1023 and different from the TEXT port. Do NOT enable access to this port in TCP_IN"
Blueman
04-27-2011, 09:26 PM
Hello,
I'm interesting in this product but I have to enable "Suhosin" on my server It's very important for me. so can I use this product ?
Thanks
Blueman
syslint
04-27-2011, 09:53 PM
Hello,
I'm interesting in this product but I have to enable "Suhosin" on my server It's very important for me. so can I use this product ?
Thanks
Blueman
yes, you can enable suhosin after the installation of danginx
Forum
05-01-2011, 10:44 AM
will the .htaccess still functioning after we install danginx?
johannes
05-01-2011, 12:29 PM
afaik danginx is a proxy-frontend to apache-backend, so .. yes, htaccess should work
(please confirm, i`m not 100%sure)
Forum
05-01-2011, 10:09 PM
afaik danginx is a proxy-frontend to apache-backend, so .. yes, htaccess should work
(please confirm, i`m not 100%sure)
who will process the php? apache or nginx?
panosru
05-02-2011, 06:32 AM
I have a problem with htaccess files, htaccess files that are located in subfolders of the vhost are not working properly.
For example:
example.com/.htaccess -> processed fine
example.com/subfolder/.htaccess -> completely ignored
example.com:8888/subfolder/.htaccess -> processed fine
It is clearly that there is a trouble in nginx so because I want to continue use both .htaccess in subfolders and nginx I would love to hear a workaround for this issue.
Thanks in advance
ssnet
05-14-2011, 09:00 AM
new version is 100% compatible with Directadmin.
http://www.nginxplugin.com
zEitEr
05-15-2011, 10:40 AM
new version is 100% compatible with Directadmin
You'd better finish your site first :D
syslint
05-16-2011, 10:26 PM
new version is 100% compatible with Directadmin.
http://www.nginxplugin.com
It looks like a clone of the original plugin site http://cpnginx.com , see http://www.nginxplugin.com/index-1.html
syslint
05-16-2011, 10:27 PM
afaik danginx is a proxy-frontend to apache-backend, so .. yes, htaccess should work
(please confirm, i`m not 100%sure)
Yes you are right . Danginx just work fine.
syslint
05-21-2011, 03:47 AM
Hello,
I tried to install plugin on some different servers;
CentOS release 5.5 (Final)
with the ionCube PHP Loader v4.0.5,
Checking for Directadmin ..[ YES ]
Checking for previous installation ..
Enter License key :
Checking for supported OS ..[ RHEL/CENTOS ]
Checking for SED ..[ YES ]
Checking for GREP ..[ YES ]
[ YES ]
Checking for Ioncube Loader for php...[ YES ]
Installing Directadmin Nginx Plugin...chmod: cannot access `cgi/danginx/index.html': No such file or directory
[ done ]
Checking for autoupdate cron[ No ]
`updatedanginx.sh' -> `/etc/cron.weekly/updatedanginx.sh'
`/usr/local/lib/php.ini' -> `/etc/danginx/php.ini'
sh: /yum: No such file or directory
sh: /cd: No such file or directory
sh: /rm: No such file or directory
sh: /rm: No such file or directory
sh: /wget: No such file or directory
sh: /tar: No such file or directory
sh: /cd: No such file or directory
Nginx installation failed , Please contact supportNginx installation failed
And why do you need to comment disable_functions?
sed -i 's/disable_functions.*/;disable_functions/g' /etc/danginx/php.ini
Please check the installation documentation from http://wiki.sysvm.com/DirectAdminNginx
seoguru
10-27-2011, 02:14 PM
Would this work with Apache mpm -worker?
syslint
11-16-2011, 09:40 AM
It will work with any type of apache configurations .
Dromok
01-19-2012, 12:42 AM
Good job!
But after added new domain need disable and again enable plugin. How fix it?
Dromok
01-19-2012, 01:05 AM
Next question. How to make some of the sites were taken completely out of cache nginx without reference to the apache?
syslint
01-19-2012, 07:27 PM
Next question. How to make some of the sites were taken completely out of cache nginx without reference to the apache?
Just to make sure you are using da 1.39 or higher and using danginx 3.2 . If you use old dqa wit hnew danginx which make some issue , because there is a major httpport change settings included in da 1.39
Dromok
01-26-2012, 12:18 PM
No. I mean how used proxy_cache in nginx? I'm added it, but not work.
I have installed it after install by ssh i should enable it?
How i can test quality on web page speed?
quanlycafe
03-23-2012, 03:44 AM
after install danginx, It's has some warning
Warning: Invalid argument supplied for foreach() in /usr/local/directadmin/scripts/danginx/danginxvhost.php on line 0
nginx: [emerg] invalid host in upstream ":8888/" in /usr/local/nginx/conf/vhost.conf:28
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
when I goto website It's show:
Welcome to nginx!
Please help me, what is the next step to completed installation
allbert
03-27-2012, 09:38 PM
i install Danginx plugin
danginx.3.2.tar
now when i open my site it shows this wellcom !
Welcome to nginx!
what change do i need to resolve this ?
syslint
03-28-2012, 08:57 AM
Hello,
Can you open a support ticket on https://portal.syslint.com/ , So our techs will check the reason and fix it.
panosru
05-06-2012, 05:41 AM
@syslint
Hello, I'll be honest with you, Danginx is quite nice plugin, it has some parts that could be improved but other than that it is very nice plugin, but the support team you got, seriously is by far the worst support I ever got by anything.... I create tickets and I'm getting replies that are not related to my question at all!
For example I asked this question:
Hello, as I can see with Danginx I can have custom configurations per domain under /etc/danginx/custom/ so I created a file hostindex.gr under that directory and I put inside the following settings:
location / {
proxy_pass http://hostindex.gr:3001;
}
The problem is that location / is already defined and I try to find a way to accomplish my goal without the need of editing /usr/local/nginx/conf/vhost.conf file
Is there a way to accomplish my need in an elegant way or I have to edit /usr/local/nginx/conf/vhost.conf instead?
Thanks!
So basically I asked if danginx provide a way to override the default location / that it generates on /usr/local/nginx/conf/vhost.conf for the domain, and I got this reply here:
Hello,
We wont provide support for customization of nginx.You may need to do your custom settings by yourself.
So really, what do you think? Is it a professional reply or a reply any kind related to the quality Directadmin provides?
And the above example is not the only one and not the worst one.. I have some tickets that I really printed them and use them as example to avoid...
Now danginx seems to be the only one plugin that provide support of nginx for directadmin but I'm sure that one day more will come and then with so crappy support you'll lose all your clients, I'm just saying, in your shoes I would do something before that happens.
marcovdahosting
05-18-2012, 01:29 AM
@syslint
Could you follow up the question @panosru asked earlier about the rewrite_mod of .htaccess As I experience the same situation.
Downloaded and installed the plugin, activate it, and all websites which are using .htaccess disappeared and were redirected to the main domain of the hostingplan itself.
I prefer the discussion in this forum, so other users can benefit of your knowledge as well.
yours,
Marco
tarsiran
05-21-2012, 09:49 AM
i have a proflem with danginx
i can't use ip deny via htaccess for example when i use this command:
order allow,deny
deny from 146.185.31.44
allow from all
tha't not work for me
but when try to disable danginx working fine with apache
:(
zEitEr
05-21-2012, 10:45 AM
NGINX does not support .htaccess. So if you want to deny access to a directory you can't do that with order allow,deny directive.
tarsiran
05-21-2012, 11:19 AM
NGINX does not support .htaccess. So if you want to deny access to a directory you can't do that with order allow,deny directive.
no dude danginx working with all apache modules
but it's my problem only
please help for resolve this problem
zEitEr
05-21-2012, 12:38 PM
I don't know how danginx works... but officially NGINX does not support .htaccess file.
What is there in the directory with your .htaccess file? Are there static files? Or PHP scripts?
tarsiran
05-21-2012, 12:42 PM
I don't know how danginx works... but officially NGINX does not support .htaccess file.
What is there in the directory with your .htaccess file? Are there static files? Or PHP scripts?
php scripts :( i wanna prevent some ips via .htaccess but code not work with nginx. i sent email to danginx support ther told me danginx working with all apache modules :(
zEitEr
05-21-2012, 12:47 PM
Make sure, that Apache gets your real IP address. Create a php script in public_html
<?php
print $_SERVER["REMOTE_ADDR"];
?>
and see in your browser what IP you've got there.
tarsiran
05-21-2012, 01:48 PM
Make sure, that Apache gets your real IP address. Create a php script in public_html
<?php
print $_SERVER["REMOTE_ADDR"];
?>
and see in your browser what IP you've got there.
i make this file and upload to server
http://arthaschat.org/ip.php
but show me server ip not my ip
zEitEr
05-21-2012, 01:57 PM
Then I guess, you're missing of apache module mod_rpaf. Note, as I don't use danginx, I can only guess. At least when I install nginx as a frontend to apache I add mod_rpaf to apache. So you'd better re-install plugin or ask for help from support team.
Note, I'm also available to fix your issue. Send me a PM for a quote if you want to get my help as a commerce service.
tarsiran
05-21-2012, 02:01 PM
Then I guess, you're missing of apache module mod_rpaf. Note, as I don't use danginx, I can only guess. At least when I install nginx as a frontend to apache I add mod_rpaf to apache. So you'd better re-install plugin or ask for help from support team.
Note, I'm also available to fix your issue. Send me a PM for a quote if you want to get my help as a commerce service.
yes dude but danginx install rpaf while installing. and i have rpaf mod now. when i disable danginx and switch to apache and run your file show me my ip right but when danginx start show server ip :((
zEitEr
05-22-2012, 12:00 AM
As I already told you before, I do not use danginx, but I'm quite enough familiar with Apache+NGINX, so I can check the things from inside of your server and I'll need root access for that. Otherwise you should open a ticket with developers support team, as you might wait for a long time here to get a reply on these forums from them.
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.