• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

domains created on command line giving 403 errors

B

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:
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.
 
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.
 
Back
Top