error 403 forbidden

Discussion in 'Installation/Configuration' started by Xzave, Jun 15, 2019.

  1. Xzave

    Xzave New Member

    Hi, All,

    i install a web site "bestrad . be" at my own server debian 9 stretch with ispconfig3.
    i would like to execute a .cgi script . On command line "perl hello.cgi" is ok.
    i install this cgi in another directory of cgi-bin.
    then i configure apache2.conf with this line:

    Code:
    <Directory "/var/www/clients/client2/web3/web/cgibin/">
        Options +ExecCGI
        AddHandler cgi-script .cgi
    </Directory>

    effectively, the hello.cgi is in that directory (and no in cgi-bin)

    i do the command line for permission
    Code:
    chmod 755 hello.cgi
    but when i navigate in "bestrad .be/cgibin/hello.cgi", i have an error code 403 forbidden.

    thanks in advance for your help.

    Xzave
     

Share This Page