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

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

    0
     
    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:
    Code:
    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.

    ta,
    b.
     
  2. benbroad

    benbroad Guest

    0
     
    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.
     
Loading...