403 errors
Hey guys,
On my forums site, I uploaded a bunch of new files via root account. Rather than using slow WinSCP to set each file permission individually (to my site's account owner and group), I used SSH. I typed "cd /home/mytechforums" then "chown -R mytechforums:mytechforums public_html" This then screwed with my permissions somehow and I get 403 forbidden when trying to access the site. Please help!
-
Hello, I can see you have root access so I will suggest you please check the Apache error logs to find out the exact cause of this 403 issues. Also update here so that we will check that for you. 0 -
public_html should be mytechforums:nobody You may be ok to just fix that and get the forums working again. You really shouldn't run commands via SSH if you're unsure of what they do. You can wipe out the entire server with a simple typo in a one line command. Assuming no other issues with the "bunch of new files" you were uploading, if you had them in a single zip file, uploaded that via cPanel File Manager, extracted/unpacked on the server, and moved them to where you want them from there, you probably could have avoided using any commands at all. BTW, chown is for setting owner, not permissions. If you were logged in as the user, chown shouldn't have been needed. If your FTP client is not configured to properly set permissions on upload, you should go thru your FTP client settings and change that. /http://winscp.net/eng/docs/ui_transfer_custom GL! 0 -
I tried changing settings to mytechforums:nobody and now I get a 500 error. 0 -
Hello, Please check the log file: /usr/local/apache/logs/error_log
as you view the website to see what errors it is returning.0 -
I decided to go ahead and backup everything, terminate the account, re-make the account, and restore the data. That did the trick. 0
Please sign in to leave a comment.
Comments
5 comments