Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #41  
Old 28th July 2009, 12:00
blackbumer blackbumer is offline
Junior Member
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by eugenesan View Post
Yes, here you right.

But, for example, if next update will include updates to both DB fields and references in code, we may solve the problem.

In addition you may consider adding my changes to next major release.
That way people who wish to evaluate nginx will use trunk or will have to wait for final release.
In future, people willing to move to that release, from older ISPC, will be required to perform minor adaptation to their DB.

Unfortunately I don't recall all changes I've performed and after I'll review final patch I may reply with concrete examples.

What do you think about my proposal?
we are waiting files from you and ready to test it
Reply With Quote
Sponsored Links
  #42  
Old 29th July 2009, 12:47
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,340
Thanks: 810
Thanked 5,171 Times in 4,054 Posts
Default

Quote:
But, for example, if next update will include updates to both DB fields and references in code, we may solve the problem.
As far as I know you changed also ptahs e.g. for satistics. This will mess up everything on update.

The only otion that I see at the moment for an inclusion is to rewrite your addons so that it follows the ispconfig paths and databse field names.

I'am sorry but I really can not include a piece of software even in a next major release that will break thousands of exsiting server installations.

Nevertehless I will review your code and see If it can be made compatible with the released ispconfig versions as it will be less work to chnage your plugin then to cahnge the whole ispconfig code to make it compatible with your plugin.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #43  
Old 5th November 2009, 11:36
Keeper Keeper is offline
Member
 
Join Date: Aug 2009
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This topic is very interesting and I'm glad there is progress in getting nginx support to ISPC3. However, when this gets finalized I hope it does not require php-fpm. php-fpm still requires modifying PHP source manually, which means automatic security updates won't work.
Reply With Quote
  #44  
Old 5th November 2009, 12:46
eugenesan eugenesan is offline
Junior Member
 
Join Date: Dec 2008
Posts: 23
Thanks: 0
Thanked 8 Times in 5 Posts
Default

Actually there is a project that should allow php-fpm as addon to PHP.
http://php-fpm.org/Main_Page

Unfortunately progress is almost stopped, since I am very busy lately.
If someone willing create/rebase patches based on older version, I am ready to release the code.
Reply With Quote
  #45  
Old 15th October 2010, 01:09
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,257
Thanks: 75
Thanked 22 Times in 18 Posts
Default

whats the status with this plugin?
Reply With Quote
  #46  
Old 15th October 2010, 01:59
omega13a omega13a is offline
Junior Member
 
Join Date: Aug 2009
Location: California
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via ICQ to omega13a Send a message via AIM to omega13a Send a message via MSN to omega13a Send a message via Yahoo to omega13a
Default

Quote:
Originally Posted by eugenesan View Post
My intention was eliminate mail server usage (thanks to gmail) and totally replace apache+libphp with nginx+php-fcgi-fpm and not to add nginx as reverse proxy.
Question about the php-fpm part, would we be able to have php-fpm run as a different user for each website because I have php-fpm already set up like that and I don't want to have all the php-fpm processes running as the same user.
__________________
Fish need bicycles!
Reply With Quote
  #47  
Old 15th October 2010, 08:16
eugenesan eugenesan is offline
Junior Member
 
Join Date: Dec 2008
Posts: 23
Thanks: 0
Thanked 8 Times in 5 Posts
Default

About a month ago I've started porting my old patches to latest ISPConfig.
Focus was:
1) Add support of PHP 5.3 in FPM mode. (with PHP-FPM sites of each user runs under their own user and PHP instances number grows dynamically on demand)
2) Update support for Nginx.
3) Refresh support for external mail (GoogleApps) using msmtp.
4) Add support for above in installer, as so called "lite" mode.

Currently code is partially written but still not tested due to time constrains.
I've posted one of the snapshots (Not the latest snapshot) here: http://gitorious.org/ispconfig-lite

Hope to to find some time to finish that soon.
Critics, comments and ideas are welcome.
Reply With Quote
  #48  
Old 29th October 2010, 04:14
hopoo hopoo is offline
Junior Member
 
Join Date: Aug 2010
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default

This is my short Tip of traffic analysis.
debian + Nginx + vlogger + ispconfig3.0.3

]# vi /etc/nginx/conf.d/ispconfig.conf
log_format combined_ispconfig '$server_name $remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent"';
access_log /var/log/nginx/vhost.access.log combined_ispconfig;

]# vi /root/bin/my_nginx_log_analysis.sh
#!/bin/sh

VHOST_LOG_FILE=/var/log/nginx/vhost.access.log
LOG_DIR=/var/log/ispconfig/httpd

/usr/bin/tail -f $VHOST_LOG_FILE | /usr/local/ispconfig/server/scripts/vlogger -s access.log -f 300 -t "%Y%m%d-access.log" -d "/etc/vlogger-dbi.conf" $LOG_DIR

]# vi /etc/logrotate.d/nginx
/var/log/nginx/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
prerotate
/usr/bin/killall tail
endscript
postrotate
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
/usr/bin/nohup /root/bin/my_nginx_log_analysis.sh&
endscript
}

Waiting for feedbacks.

Last edited by hopoo; 30th October 2010 at 02:52.
Reply With Quote
The Following User Says Thank You to hopoo For This Useful Post:
Undo (20th February 2011)
  #49  
Old 27th November 2010, 20:36
Undo Undo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Hi folks,

What's up with this "plugin", or "patch", or any name you would give to this wonderful work ?

I'd like to use it & take part in its development but the code posted on gitorious is just too old and the commit tree too messy (only 3 commits for hundreds of files modified).

Waiting for news for Eungenesan
Reply With Quote
  #50  
Old 20th February 2011, 19:04
Undo Undo is offline
Junior Member
 
Join Date: Nov 2010
Posts: 19
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

Quote:
Originally Posted by hopoo View Post
This is my short Tip of traffic analysis.
debian + Nginx + vlogger + ispconfig3.0.3

]# vi /etc/nginx/conf.d/ispconfig.conf
log_format combined_ispconfig '$server_name $remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent"';
access_log /var/log/nginx/vhost.access.log combined_ispconfig;

]# vi /root/bin/my_nginx_log_analysis.sh
#!/bin/sh

VHOST_LOG_FILE=/var/log/nginx/vhost.access.log
LOG_DIR=/var/log/ispconfig/httpd

/usr/bin/tail -f $VHOST_LOG_FILE | /usr/local/ispconfig/server/scripts/vlogger -s access.log -f 300 -t "%Y%m%d-access.log" -d "/etc/vlogger-dbi.conf" $LOG_DIR

]# vi /etc/logrotate.d/nginx
/var/log/nginx/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
prerotate
/usr/bin/killall tail
endscript
postrotate
[ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
/usr/bin/nohup /root/bin/my_nginx_log_analysis.sh&
endscript
}

Waiting for feedbacks.
I see a problem with your way to handle it : what happens if the tail -f process is being killed for any reason ? Especially, what happens if you reboot your server in the middle of the day ? It will stop logging for half a day ...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 15:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.