403 Error

It looks like it is working now! Thank you very much! I will contact you on here if I have anymore problems.

New Issue:

When uploading files via FTP it says this:

Error: Critical file transfer error

Then all files fail to upload.

Hmm, do you see any other messages or errors?

FTP typically works by default on most systems, so it’s difficult to know why it’s not working with the error message it’s giving you there.

You could always try the idea in the “FTP Service isn’t working” article at the end of the URL here:

https://www.virtualmin.com/documentation/web/faq

Sadly that didn’t work. Also, this is what I fully get:

Status: Connected
Status: Starting upload of C:\Users\Jared\AppData\Local\Temp\Rar$DRa0.263\upload\admincp\vbshout.php
Command: CWD /public_html/community/admincp
Response: 250 CWD command successful
Command: PWD
Response: 257 “/public_html/community/admincp” is the current directory
Status: Retrieving directory listing…
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (50,115,165,122,224,109).
Command: MLSD
Response: 150 Opening ASCII mode data connection for MLSD
Response: 226 Transfer complete
Command: TYPE A
Response: 200 Type set to A
Command: PASV
Response: 227 Entering Passive Mode (50,115,165,122,170,51).
Command: STOR vbshout.php
Response: 550 vbshout.php: Permission denied
Error: Critical file transfer error

Ah, the “Permission denied” is the relevant error there – that means that the user you’re using doesn’t have permission to write to that directory.

Are you using the owner of that particular Virtual Server while performing the uploads?

-Eric

Yes, the account it makes.

What is the username you’re using?

And then, if you log into your server over SSH as root, what output do you get when running this command:

ls -l /home/USERNAME/public_html/community/admincp/

(where “USERNAME” is the user you’re logging in as)

Thanks!

-Eric

Hello TechSpaz,

My site has got 403 forbidden error and after submitting my site in different sites , i realized that its in problem? Is there any problem with that submissions? ( Doing SEO for my site - link building )
Is there any issue if i continue submitting the site today also…

How to resolve the problem?

Please help me in this regard.
Thanks in advance :slight_smile:

What I get:

[root@ultra /]# ls -l /home/techspaz/public_html/community/
total 2164
drwxr-xr-x 3 root root 4096 Jul 9 08:07 admincp
-rw-r–r-- 1 root root 23845 Jul 9 08:07 ajax.php
-rw-r–r-- 1 root root 75511 Jul 9 08:07 album.php
-rw-r–r-- 1 root root 17146 Jul 9 08:07 announcement.php
drwxr-xr-x 2 root root 4096 Jul 9 08:07 archive
-rw-r–r-- 1 root root 18309 Jul 9 08:07 attachment.php
-rw-r–r-- 1 root root 75327 Jul 9 08:07 calendar.php
-rw-r–r-- 1 root root 43 Jul 9 08:07 clear.gif
drwxr-xr-x 4 root root 4096 Jul 9 08:07 clientscript
-rw-r–r-- 1 root root 14936 Jul 9 08:07 converse.php
drwxr-xr-x 7 root root 4096 Jul 9 08:07 cpstyles
-rw-r–r-- 1 root root 3318 Jul 9 08:07 cron.php
drwxr-xr-x 3 root root 4096 Jul 9 08:07 customavatars
drwxr-xr-x 3 root root 4096 Jul 9 08:07 customgroupicons
drwxr-xr-x 2 root root 4096 Jul 9 08:07 customprofilepics
-rw-r–r-- 1 root root 47766 Jul 9 08:07 editpost.php
-rw-r–r-- 1 root root 29495 Jul 9 08:07 external.php
-rw-r–r-- 1 root root 9787 Jul 9 08:07 faq.php
-rw-r–r-- 1 root root 10134 Jul 9 08:07 favicon.ico
-rw-r–r-- 1 root root 36004 Jul 9 08:07 forumdisplay.php
-rw-r–r-- 1 root root 39831 Jul 9 08:07 global.php
-rw-r–r-- 1 root root 24920 Jul 9 08:07 group_inlinemod.php
-rw-r–r-- 1 root root 138204 Jul 9 08:07 group.php
-rw-r–r-- 1 root root 10522 Jul 9 08:07 groupsubscription.php
-rw-r–r-- 1 root root 9048 Jul 9 08:07 image.php
drwxr-xr-x 16 root root 4096 Jul 9 08:07 images
drwxr-xr-x 6 root root 12288 Jul 9 20:57 includes
-rw-r–r-- 1 root root 19742 Jul 9 08:07 index.php
-rw-r–r-- 1 root root 43929 Jul 9 08:07 infraction.php
-rw-r–r-- 1 root root 183126 Jul 9 08:07 inlinemod.php
drwxr-xr-x 2 root root 4096 Jul 9 20:59 install
-rw-r–r-- 1 root root 10342 Jul 9 08:07 joinrequests.php
-rw-r–r-- 1 root root 17862 Jul 9 08:07 LICENSE
-rw-r–r-- 1 root root 10223 Jul 9 08:07 login.php
-rw-r–r-- 1 root root 15932 Jul 9 08:07 member_inlinemod.php
-rw-r–r-- 1 root root 35948 Jul 9 08:07 memberlist.php
-rw-r–r-- 1 root root 17064 Jul 9 08:07 member.php
-rw-r–r-- 1 root root 23867 Jul 9 08:07 misc.php
drwxr-xr-x 2 root root 4096 Jul 9 08:07 modcp
-rw-r–r-- 1 root root 63324 Jul 9 08:07 moderation.php
-rw-r–r-- 1 root root 6757 Jul 9 08:07 moderator.php
-rw-r–r-- 1 root root 18477 Jul 9 08:07 newattachment.php
-rw-r–r-- 1 root root 38382 Jul 9 08:07 newreply.php
-rw-r–r-- 1 root root 18912 Jul 9 08:07 newthread.php
-rw-r–r-- 1 root root 19634 Jul 9 08:07 online.php
-rw-r–r-- 1 root root 7697 Jul 9 08:07 payment_gateway.php
-rw-r–r-- 1 root root 11911 Jul 9 08:07 payments.php
-rw-r–r-- 1 root root 25307 Jul 9 08:07 picturecomment.php
-rw-r–r-- 1 root root 22040 Jul 9 08:07 picture_inlinemod.php
-rw-r–r-- 1 root root 7890 Jul 9 08:07 picture.php
-rw-r–r-- 1 root root 27412 Jul 9 08:07 poll.php
-rw-r–r-- 1 root root 9513 Jul 9 08:07 posthistory.php
-rw-r–r-- 1 root root 74368 Jul 9 08:07 postings.php
-rw-r–r-- 1 root root 6594 Jul 9 08:07 printthread.php
-rw-r–r-- 1 root root 70684 Jul 9 08:07 private.php
-rw-r–r-- 1 root root 152328 Jul 9 08:07 profile.php
-rw-r–r-- 1 root root 39752 Jul 9 08:07 register.php
-rw-r–r-- 1 root root 5688 Jul 9 08:07 report.php
-rw-r–r-- 1 root root 13719 Jul 9 08:07 reputation.php
-rw-r–r-- 1 root root 124728 Jul 9 08:07 search.php
-rw-r–r-- 1 root root 20947 Jul 9 08:07 sendmessage.php
-rw-r–r-- 1 root root 10072 Jul 9 08:07 showgroups.php
-rw-r–r-- 1 root root 12399 Jul 9 08:07 showpost.php
-rw-r–r-- 1 root root 73537 Jul 9 08:07 showthread.php
drwxr-xr-x 2 root root 4096 Jul 9 08:07 signaturepics
-rw-r–r-- 1 root root 32877 Jul 9 08:07 subscription.php
-rw-r–r-- 1 root root 13366 Jul 9 08:07 tags.php
-rw-r–r-- 1 root root 8692 Jul 9 08:07 threadrate.php
-rw-r–r-- 1 root root 12415 Jul 9 08:07 threadtag.php
-rw-r–r-- 1 root root 34508 Jul 9 08:07 usercp.php
-rw-r–r-- 1 root root 19106 Jul 9 08:07 usernote.php
-rw-r–r-- 1 root root 27377 Jul 9 08:07 visitormessage.php

Ah, there’s the problem… did you by chance copy files into that directory using the root user?

That would have caused the files and folders to be owned as root, rather than as the Virtual Server owner… and that would prevent you from being able to write new files or edit existing ones.

You can correct that by running this command as root:

chown -R techspaz:techspaz /home/techspaz/public_html

All has been going well until I uploaded some files via FTP. I uploaded like 2k files because I was upgrading the forum software and now the directory won’t load properly.

For example: test1.com/forum - Won’t load
test1.com/forum/admincp - Loads

:\

To determine what’s going on there, you may want to review your website error logs to determine what’s going on.

You can find those in $HOME/logs/error_log.

-Eric