Page 1 of 1

Access Forbidden

Posted: 04 Jan 2023, 02:01
by Archigos
I'm running the latest TOS 5.0.176 and have the Webserver 2.2.6 installed. About a week or two I created a folder in the root of the server and put some files in it. When I gave the link to a friend it showed the directory listing of that folder (which is what I wanted), they were able to download the files so I deleted the folder. I have since rebooted the server, but now when I create a folder in the root, no matter what link I give them (for the folder) I get access forbidden. I tried creating an .htaccess file inside that folder with the following:

Code: Select all

Options +Indexes
and I get the same error. Just to test it, I tried creating an .htaccess with the same info in the root folder and that changed from showing my page to the same access forbidden error.

Ideally, I do NOT want to deal with .htaccess at all and allow any directory without an index.php to just show the directory listing by default. I have no idea where the httpd.conf file is or any other way to configure the server. Any help would be appreciated.

Re: Access Forbidden

Posted: 04 Jan 2023, 17:59
by RyanYang
You can edit the permissions of the media user group for this shared folder. If you set open_basedir for php, you can try none instead.

Re: Access Forbidden

Posted: 04 Jan 2023, 18:35
by Archigos
I already have the settings you mentioned and nothing changed.

Re: Access Forbidden

Posted: 04 Jan 2023, 18:41
by Archigos
Nevermind, I rebooted and it fixed it... (I had just checked the settings you mentioned, changed away from what you said and changed back to make sure they matched and it worked.)

I think the issue came from the fact that the Media group didn't have permissions to Public cause that's the only thing that changed.


:: Sorry, couldn't find an edit for my last post

Re: Access Forbidden

Posted: 12 Jan 2023, 16:35
by Archigos
It's done it a few times since... to solve it, I have to Control Panel -> User Group click to edit media click Permissions not change anything and hit Apply and wait... once it's done I can refresh the webpage and have it work.