Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th January 2012, 14:43
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default Apache + ISPconfig = ?

Has anyone figured out a way to get the syslog more intuitive?
Now all we can see from the log is that something happened with Apache. This will not tell us who did it. And yet almost all our sites all ready use ISPConfig3's suPHP and suExec. Any way to replace the www-data with webNR?

Quote:
Jan 28 05:00:02 www1 postfix/pickup[23426]: C9E25B0E477: uid=33 from=<www-data>
Jan 28 05:00:02 www1 postfix/cleanup[25029]: C9E25B0E477: message-id=<20120128030002.C9E25B0E477@www1.internet-content.net>
Jan 28 05:00:02 www1 postfix/qmgr[596]: C9E25B0E477: from=<www-data@www1.internet-content.net>, size=899, nrcpt=1 (queue active)
Jan 28 05:00:02 www1 postfix/local[25031]: C9E25B0E477: to=<www-data@www1.internet-content.net>, orig_to=<www-data>, relay=local, delay=0.04, delays=0.03/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
Sponsored Links
  #2  
Old 28th January 2012, 17:34
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts
Default

Sure SamTzu, with suEXEC + fastcgi
Reply With Quote
  #3  
Old 28th January 2012, 19:29
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default FastCGI

FastCGI does not work well with Joomla and Joomla is what we mostly use.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #4  
Old 28th January 2012, 19:57
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

If you are using postfix, you could try this:

Create this file:
echo "www-data@www1.internet-content.net no-reply@internet-content.com.ar" >> /etc/postfix/sender_canonical

Next, run the following commands:

postmap hash:/etc/postfix/sender_canonical
postconf -e "sender_canonical_maps=hash:/etc/postfix/sender_canonical"

Finally, restart postfix
/etc/init.d/postfix restart

Try to send mail and post results here.

This will change www-data for no-reply, but it will work for every site in the same way...

If you want to have a different behavior per site, you must declare a path por sendmail in php.ini, create a script to intercept mail, validate from direction, if it is "www..." you must consult which domain is seding mail (I don't know is the are available variables for this in sendmail, but I think you can get path of file sending mail and with that get the sender domain) and as a final step, replace to "from" of the mail.

Regards
Reply With Quote
  #5  
Old 28th January 2012, 22:10
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts
Default

An easy way is enable mail.log in php.ini:

http://www.howtoforge.com/forums/showthread.php?t=53617


Cheers
Reply With Quote
  #6  
Old 29th January 2012, 00:24
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default

I like that solution.
How ever we have decided to block all php based email in the firewall.
So still not quite there.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #7  
Old 29th January 2012, 16:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
Default

Quote:
Originally Posted by SamTzu View Post
FastCGI does not work well with Joomla and Joomla is what we mostly use.
I run all joomla sites ih fastcgi, it works great. Running joomla with mod php is a high security risk by the way.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 31st January 2012, 13:34
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 438
Thanks: 34
Thanked 56 Times in 39 Posts
Send a message via Skype™ to SamTzu
Default suPHP

We prefer suPHP for Joomla.
Not so many problems with 3rd party Extensions and quite many setup's fail with FastCGI but not with suPHP.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #9  
Old 31st January 2012, 13:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,001
Thanks: 840
Thanked 5,650 Times in 4,460 Posts
 
Default

Quote:
We prefer suPHP for Joomla.
Not so many problems with 3rd party Extensions and quite many setup's fail with FastCGI but not with suPHP.
Suphp is very slow and wastes resources by starting a new php interpreter for each request. If you enable suexec, then fastcgi behaves similar to suphp an no extension should fail. I guess your customers will appreaciate it when their sites get much faster and you need less servers to serve the same amount of pages. You should give it a try.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
apache, ispconfig, syslog

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
sessions not being saved gavimobile General 6 15th January 2012 16:05
Version 1.3 of the ISPConfig 3 Manual is finally available! falko General 44 2nd December 2011 13:04
Possible httpd server attack, may need to harden ISPCONFIG or apache isn Server Operation 6 7th December 2010 12:56
Fixing 404 Not Found Errors on Apache on Centos 5 x86_64 Dedi LinuxOnMyMac HOWTO-Related Questions 11 16th October 2010 05:29
ISPconfig and apache on centos 5.5 Hamra Installation/Configuration 4 9th October 2010 02:16


All times are GMT +2. The time now is 02:36.


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