• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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