1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

suexec -

Discussion in 'Plesk for Linux - 8.x and Older' started by doci, Apr 14, 2005.

  1. doci

    doci Guest

    0
     
    Hallo

    I have probs with suexec and cgi

    log suexec :
    uid: (10008/sambatec) gid: (10001/10001) cmd: hello.cgi
    command not in docroot (/usr/local/php5/bin/php)

    Who is the directory to allow, or user rights?

    sorry my Engl. is not good.

    thx for help

    by DOCI
     
  2. hardweb

    hardweb Guest

    0
     
    Can you post the first lines of the script here? It's a PHP script?
     
  3. doci

    doci Guest

    0
     
    Hallo

    its a CGi and a PHP Sctipt

    Cgi Script

    #!/usr/bin/perl -w
    print "Content-type: text/html\n\n";
    print <<"EOF";
    <HTML>
    <HEAD>
    <TITLE>Hello, world!</TITLE>
    </HEAD>
    <BODY>
    <H1>Hello, world!</H1>
    </BODY>
    </HTML>
    EOF

    And the PHP5 Script over CGI
    <?php
    echo phpinfo();
    ?>

    thx

    DOCI
     
  4. hardweb

    hardweb Guest

    0
     
    It's normal for suexec to deny access, because you try to execute a command outside the permitted directories. Looking at the script above... Why do you want to do this?
     
  5. pwgen

    pwgen Guest

    0
     
    Hi there!

    in what directory the scripts are located exactly? Plesk has it's own suexec that allows to execute scripts that are in /home/http/vhosts (or /usr/local/psa/home/vhosts for FreeBSD) only.
    Also please note that symbolic links to cgi scripts don't work for security reasons..
     
Loading...