chrmina Posted December 15, 2017 Posted December 15, 2017 Hello people! I was in the process of modifying the attributes of some php files (changing from 664 to 644) I have recently uploaded and suddenly was disconnected from the server. When I tried to access my site it gave me "403 Forbidden" error. I am also not able to connect to CPanel (it gives me some warning and a fatal error). Can you please check what's going on and help me regain access to my site? Here is the error: ForbiddenYou don't have permission to access / on this server.Server unable to read htaccess file, denying access to be safeAdditionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. username: christosserver: Tommy Thank you! Chris
wolstech Posted December 15, 2017 Posted December 15, 2017 Can you try to rename or delete your htaccess file using FTP since cpanel won't work? I just checked and you're not blocked or suspended or anything. If need be, try resetting your password too.
chrmina Posted December 15, 2017 Author Posted December 15, 2017 I've tried but access was denied. Directory listing denied. here is the output from my FTP Client (FileZilla): Status: Resolving address of christos.heliohost.orgStatus: Connecting to 65.19.143.6:21...Status: Connection established, waiting for welcome message...Status: Logged inStatus: Retrieving directory listing...Command: PWDResponse: 257 "/" is your current locationCommand: TYPE IResponse: 200 TYPE is now 8-bit binaryCommand: PASVResponse: 227 Entering Passive Mode (65,19,143,6,206,118)Command: MLSDResponse: 150 Accepted data connectionResponse: 421-Sorry, we were unable to read [.]Response: 421-Options: -a -lResponse: 421-0 matches totalResponse: 421 chdir: Permission deniedError: Failed to retrieve directory listingStatus: Connection closed by server
chrmina Posted December 16, 2017 Author Posted December 16, 2017 Nope. It fails when tries to retrieve the Directory Listing: Status: Resolving address of christos.heliohost.orgStatus: Connecting to 65.19.143.6:21...Status: Connection established, waiting for welcome message...Status: Initializing TLS...Status: Verifying certificate...Status: TLS connection established.Status: Logged inStatus: Retrieving directory listing...Command: PWDResponse: 257 "/" is your current locationCommand: TYPE IResponse: 200 TYPE is now 8-bit binaryCommand: PASVResponse: 227 Entering Passive Mode (65,19,143,6,241,187)Command: MLSDError: Connection timed out after 20 seconds of inactivityError: Failed to retrieve directory listingStatus: Disconnected from serverStatus: Resolving address of christos.heliohost.orgStatus: Connecting to 65.19.143.6:21...Status: Connection established, waiting for welcome message...Status: Initializing TLS...Status: Verifying certificate...Status: TLS connection established.Status: Logged inStatus: Retrieving directory listing...Command: PWDResponse: 257 "/" is your current locationCommand: TYPE IResponse: 200 TYPE is now 8-bit binaryCommand: PASVResponse: 227 Entering Passive Mode (65,19,143,6,251,187)Command: MLSDError: Connection timed out after 20 seconds of inactivityError: Failed to retrieve directory listing And here is the log trying to connect via SFTP:Status: Connecting to christos.heliohost.org...Response: fzSftp started, protocol_version=8Command: open "christos@christos.heliohost.org" 22Error: Network error: Connection refusedError: Could not connect to serverStatus: Waiting to retry...Status: Connecting to christos.heliohost.org...Response: fzSftp started, protocol_version=8Command: open "christos@christos.heliohost.org" 22Error: Network error: Connection refusedError: Could not connect to server
Krydos Posted December 16, 2017 Posted December 16, 2017 The first log is FTPS which definitely won't work, and you're using the wrong settings for SFTP Host: tommy.heliohost.org Port: 1342 Protocol: SFTP Logon type: Normal User: christos Password: <same as cpanel>
chrmina Posted December 16, 2017 Author Posted December 16, 2017 Thank you. Managed to connect but there are no files in my directory! What happened? Status: Connecting to tommy.heliohost.org:1342...Status: Connected to tommy.heliohost.orgStatus: Retrieving directory listing...Status: Listing directory /home/christosStatus: Directory listing of "/home/christos" successful
Krydos Posted December 16, 2017 Posted December 16, 2017 There must be something wrong with your FTP client. I see files dating back to January 2017 (when you created your account.) Are things working better now? I think you managed to change the permission of your home folder to 644. It's supposed to be 755.
chrmina Posted December 16, 2017 Author Posted December 16, 2017 Yes, everything is working fine now! Thank you for your kind help and your patience!I think you managed to change the permission of your home folder to 644. It's supposed to be 755.I don't even know how I managed to do that! I uploaded a CakePHP app to test it but somehow the directories were uploaded as 775 and the files as 664. I was manually changing them (directories and files) to 755 and 644 manually using the CPanel file manager and that's when the problem occurred. Once again, thanks! Chris
wolstech Posted December 16, 2017 Posted December 16, 2017 Yeah, the file and folder permissions do that when uploaded over SFTP, and they indeed need to be fixed to get the software working. You get 500 errors when stuff is writable by the group.
chrmina Posted December 18, 2017 Author Posted December 18, 2017 Yeah, the file and folder permissions do that when uploaded over SFTP, and they indeed need to be fixed to get the software working. You get 500 errors when stuff is writable by the group.Yes, I found out from another post. Thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now