HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Apache + ISPconfig = ? (http://www.howtoforge.com/forums/showthread.php?t=55963)

SamTzu 28th January 2012 13:43

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)

pititis 28th January 2012 16:34

Sure SamTzu, with suEXEC + fastcgi

SamTzu 28th January 2012 18:29

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

erosbk 28th January 2012 18:57

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

pititis 28th January 2012 21:10

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

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


Cheers

SamTzu 28th January 2012 23:24

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

till 29th January 2012 15:51

Quote:

Originally Posted by SamTzu (Post 272550)
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.

SamTzu 31st January 2012 12:34

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.

till 31st January 2012 12:41

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.


All times are GMT +2. The time now is 06:22.

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