BackupPC "500 server error" and "command not in docroot "

Discussion in 'Installation/Configuration' started by haluk yildirim, Apr 4, 2012.

  1. haluk yildirim

    haluk yildirim New Member

    Hi,

    I have several ISPConfig 3 on Fedora 14 installations at my customer base. All works very nicely. Recently I have started to install BackupPC which I have used with fedora installations without any problem. But now, after clean ISPConfig 3 Install I get "500 Internal Server Error" with "command not in docroot (/usr/share/BackupPC/sbin/BackupPC_Admin)" error in suexec.log

    suexec -V
    -D AP_DOC_ROOT="/var/www"
    -D AP_GID_MIN=100
    -D AP_HTTPD_USER="apache"
    -D AP_LOG_EXEC="/var/log/httpd/suexec.log"
    -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
    -D AP_UID_MIN=500
    -D AP_USERDIR_SUFFIX="public_html"

    suexec.log....

    [2012-04-04 16:57:05]: uid: (5004/web1) gid: (5005/client1) cmd: BackupPC_Admin
    [2012-04-04 16:57:05]: command not in docroot (/usr/share/BackupPC/sbin/BackupPC_Admin)


    Not much luck from google. what am I doing wrong?
     
    Last edited: Apr 4, 2012
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You receive the error because the site that you use to access backuppc uses suexec and the backuppc installation is outside of the apache docroot. Your other servers must have used mod_php or a similar setup without security checks if you did not had that problem before. Try to switch the php mode to mod_php in the website of the domain that you use to access backupPC.
     
  3. haluk yildirim

    haluk yildirim New Member

    (SOLVED)

    Hi Till,

    Thank you for your quick reply.

    I have disabled the suexec and enabled the MOD-PHP in ispconfig sites tab. and fixed the problem.

    Again.. Thank you very much.

    Haluk
     
  4. Emiliano Avendano

    Emiliano Avendano New Member

    --------------------
    Thanks for your reply Mr Till Brehm, this resolve the BackupPC url access, but the PhpMyadmin it is damaged, when try to acces to normal url: /phpMyadmin appears this message:
    Warning: Unknown: open_basedir restriction in effect. File(/usr/share/phpMyAdmin/index.php) is not within the allowed path(s): (/var/www/clients/client1/web7/web:/var/www/clients/client1/web7/private:/var/www/clients/client1/web7/tmp:/var/www/bk.b2cglobal.com/web:/srv/www/bk.b2cglobal.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom) in Unknown on line 0

    Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
     

Share This Page