Apache + ISPconfig = ?

Discussion in 'General' started by SamTzu, Jan 28, 2012.

  1. SamTzu

    SamTzu Active Member

    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?

  2. pititis

    pititis Member

    Sure SamTzu, with suEXEC + fastcgi
  3. SamTzu

    SamTzu Active Member


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

    erosbk New Member

    If you are using postfix, you could try this:

    Create this file:
    echo "[email protected] [email protected]" >> /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.

  5. pititis

    pititis Member

  6. SamTzu

    SamTzu Active Member

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

    till Super Moderator Staff Member ISPConfig Developer

    I run all joomla sites ih fastcgi, it works great. Running joomla with mod php is a high security risk by the way.
  8. SamTzu

    SamTzu Active Member


    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.
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    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.

Share This Page