suPHP insists to work on /usr/share

Discussion in 'Server Operation' started by emad, Oct 30, 2016.

  1. emad

    emad New Member

    Hello,

    I'm trying to symbolic link "/usr/share/squirrelmail" to "/var/www/webmail_lnk", but suPHP prevents it from work.
    Although the config file "/etc/apache2/mods-available/suphp.conf" tells suPHP to be disabled on "/usr/share",

    Code:
      <Directory /usr/share>
      suPHP_Engine off
      </Directory>
    The script not working, and I got error 500 and these lines in the log files.

    /var/log/suphp/suphp.log
    Code:
    [warn] File "/usr/share/squirrelmail//index.php" is not in document root of Vhost "/var/www"

    /var/log/apache2/error.log
    Code:
    [error] SoftException in Application.cpp:221: File "/usr/share/squirrelmail//index.php" is not in document root of Vhost "/var/www"
    I know it's not required in this case, but I tried to add the directory "/usr/share/squirrelmail" to suPHP docroot but nothing changed.
    Code:
    docroot=/var/www:${HOME}/public_html:/usr/share/squirrelmail
    There is another server with the same configuration works properly as expected. I've compared the suPHP config files "/etc/apache2/mods-enabled/suphp.conf" and "/etc/suphp/suphp.conf"
    on both servers, the files are identical.

    It works only if I disabled the "check_vhost_docroot" which isn't an option.

    Why would suPHP behave like this, is there anything missed ?

    Note: The server is perfect ISPConfig installation, ubuntu 12.04.

    Thank you,
     

Share This Page