Page 1 of 1

Permission problem

Posted: Sun Feb 08, 2015 11:13 pm
by alex809
Hey guys,
So i setup VestaCP to my VPS yesterday, Everything works great.

Got my domain setup, Can connect and everything.

Problem is, I go into FTP and create a folder (which works fine), But if i try to access that folder from the web (ie. mydomain.net/test) it says http://prntscr.com/62sb47

So i checked the permissions.
CHMOD permissions on every folder that was uploaded are: 775
CHMOD permissions on every file that was uploaded are: 664

When i created the folder "test" the default CHMOD permissions are: 775

I created the folder from the FTP account that i have setup to that domain through VestaCP.

This is driving me nuts because i don't believe that my database uploaded properly into PhpMyAdmin so i wanted to upload it using a web script and then delete the script after but i noticed this problem so i deleted the php file (php file is the script) and tried creating other folders only to notice that every folder i create I'm not allowed to access.

And when there are no files whatsoever in public_html for this domain i just get a forbidden error that I'm not allowed to access / on this server. Which is fine, Whatever. Most websites just end up displaying an empty directory listing but i get a forbidden page instead.

How can i fix this?
I need to fix this ASAP so i can work on getting my backup back online.
Everything is ready for it except the permission problems.

VPS is running
CentOS 6.6 64bit

Thanks guys
Any and all help is appreciated

Re: Permission problem

Posted: Mon Feb 09, 2015 8:45 am
by alex809
Update: I just realized this is a security based feature.
It does this if there is no index.html or index.php file in the directory, It won't list empty directories because it could be a potential security issue.

Never new that, Just discovered it after hours of searching.
Now to figure out how the hell to fix FTP... Stupid insecure server: it does not support FTP over TLS