# Is there anyone knows how to change the chmod of files and folder?

**URL:** <https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058>\
**Category:** Hosting Support\
**Created:** [July 14, 2023, 6:52pm UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058 "2023-07-14T18:52:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghost091287](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/ghost091287/32/37959_2.png) [@ghost091287](https://forum.infinityfree.com/u/ghost091287)\
**Post date:** [July 14, 2023, 6:52pm UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/1 "2023-07-14T18:52:11Z")

</div>

site: [http://webinvoice.rf.gd](http://webinvoice.rf.gd)  
I had some excutable scripts inside children files (parent/example.php) and their are anchors on my home page to execute those scripts.  
But whenever i am clicking, it gets redirected to #403 error page instead.

Thanks Nerds!

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [July 14, 2023, 7:30pm UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/2 "2023-07-14T19:30:02Z")

</div>

A 403 response is not caused by file permissions (chmod). Unless you broke the file permissions and make the file unreadable, it’s not going to fix it. So if you didn’t touch the file permissions before, please don’t touch them now. At best it will do nothing, at worst you’ll break your account.

These are common reasons why people actually get 403 errors while using our hosting:

> [@Redirected to InfinityFree 403 Forbidden page](https://forum.infinityfree.com/t/redirected-to-infinityfree-403-forbidden-page/58664):
>
> Getting a 403 error means the server is refusing to show your webpage. Here are the most common causes and how to fix them: 1. Website Files Are in the Wrong Location The Issue: Your domain might be pointing to an empty or non-existent folder. How to Check: Log into your [InfinityFree client area](https://dash.infinityfree.com) Go to Accounts → [Select your account] → Domains → [Find your domain] → Manage Find the Directory Status card, and look at the Directory displayed there Understanding the folder structure: Your fi…

If that article doesn’t answer your question, can you please point out which exact URLs cause this issue, or how we can reproduce this issue?

---

<div class="post-metadata">

**Author:** ![ghost091287](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/ghost091287/32/37959_2.png) [@ghost091287](https://forum.infinityfree.com/u/ghost091287)\
**Post date:** [July 14, 2023, 9:30pm UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/3 "2023-07-14T21:30:22Z")

</div>

Thanks

But i have not chaged any settings everything is default

In the top directory(htdocs/index.php)  
I have an iframe which execute the script from htdocs/incudes/inner.php and shows the output into the iframe over index.php

I guess php is not allowed to run the scripts but i don’t know how where to change the chmod, chmod button on file is not working.

Any guesses?

---

<div class="post-metadata">

**Author:** ![anon42008019](https://forum.infinityfree.com/letter_avatar/anon42008019/32/6_449c533f586939b6e5f246632a46421f.png) [@anon42008019](https://forum.infinityfree.com/u/anon42008019)\
**Post date:** [July 14, 2023, 9:45pm UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/4 "2023-07-14T21:45:18Z")

</div>

Does it work if you rename the `includes` folder to something else?

---

<div class="post-metadata">

**Author:** ![ghost091287](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/ghost091287/32/37959_2.png) [@ghost091287](https://forum.infinityfree.com/u/ghost091287)\
**Post date:** [July 14, 2023, 10:02pm UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/5 "2023-07-14T22:02:50Z")

</div>

No, i haven’t changed, there are a bunch of files inside /includes and lot of links from outside here and there.

I am able to include files from /includes normally. it cracks when i tried to execute one but since it is being executed internally their should not be any error but who knows

everything is perfectly running at localhost  
and i had done some projects with same situation where ideally i had to give execution permission to some files

no solution yet  
but Thanks Ziverre

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [July 14, 2023, 11:12pm UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/6 "2023-07-14T23:12:25Z")

</div>

Try renaming the “includes” folder to something else. “includes” is a reserved directory name on free hosting, and some operations may not work right for files within it it.

---

<div class="post-metadata">

**Author:** ![ghost091287](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/ghost091287/32/37959_2.png) [@ghost091287](https://forum.infinityfree.com/u/ghost091287)\
**Post date:** [July 15, 2023, 3:20am UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/7 "2023-07-15T03:20:09Z")

</div>

If this is true, admin should add the setup readme file inside every /htdocs for clarity, because as a convention we use /includes all the times and sometimes files under /includes do get executed by the php.  
At last tell me if i can change the chmod of any file or not?  
Thanks 👍

---

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [July 15, 2023, 3:50am UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/8 "2023-07-15T03:50:18Z")

</div>

> [@ghost091287](#):
>
> At last tell me if i can change the chmod of any file or not?

Yes you can, but that’s generally not recommended. Simply use the chmod function shows up in the file manager.

---

<div class="post-metadata">

**Author:** ![SpookyKipper](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/spookykipper/32/27461_2.png) [@SpookyKipper](https://forum.infinityfree.com/u/SpookyKipper)\
**Post date:** [July 15, 2023, 4:28am UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/9 "2023-07-15T04:28:06Z")

</div>

Add on to that, make sure your permissions are **always** above 600, or else you are screwed.

---

<div class="post-metadata">

**Author:** ![ghost091287](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/ghost091287/32/37959_2.png) [@ghost091287](https://forum.infinityfree.com/u/ghost091287)\
**Post date:** [July 15, 2023, 4:45am UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/10 "2023-07-15T04:45:24Z")

</div>

Thanks for the suggestions  
at the end i renamed /includes , now everything is working so far.

👍👍🥳 have a great day

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [July 15, 2023, 9:42am UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/11 "2023-07-15T09:42:45Z")

</div>

> [@ghost091287](#):
>
> admin should add the setup readme file inside every /htdocs for clarity

I pointed you towards an article that clearly says that using `includes` as the directory name results in a 403 error. That’s an article I selected specifically for you and the question you are having regarding your website.

If you somehow missed that, do you think that having a readme file that’s supposed to avoid every issue for every site (which means it would have a lot of information, most of which is not relevant to you) would help avoid this?

> [@ghost091287](#):
>
> as a convention we use /includes all the times

The common convention is to use the “includes” folder to store PHP files that are loaded into other files with the `include` directive (hence the name). In those cases, you specifically do not want those files to be accessed directly, especially if you haven’t take precautions to make sure that those files don’t expose sensitive information when accessed directly.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [July 22, 2023, 9:43am UTC](https://forum.infinityfree.com/t/is-there-anyone-knows-how-to-change-the-chmod-of-files-and-folder/79058/12 "2023-07-22T09:43:44Z")

</div>

Closed on July 22, 2023, 9:43am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
