1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

domains created on command line giving 403 errors

Discussion in 'Plesk for Linux - 8.x and Older' started by benbroad, Jan 10, 2006.

  1. benbroad

    benbroad Guest

    Hi, I have a script that runs a sudo command to create domains on one of our servers. It all works fine except when the domain is created I get forbidden errors when I try to access any file.

    I create the domains with:
    sudo /usr/local/psa/bin/domain.sh -c '$domain.printless-publishing.com' -ip '$ip' -www false -hosting true -login $user -passwd '$password' -php true -template 'magomat' -clogin 'benbroad'
    I then do a --reconfigure-vhost and restart the httpd.

    Does anyone have any ideas as this is driving me nuts.

  2. benbroad

    benbroad Guest

    It wasn't working because I am as dumb as a stick. I was creating a .htaccess file and copying it in, changing the owner but I forgot to chmod it, so the server was always trying to get this file first and failing.