# So I get 403 Access denied

**URL:** <https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599>\
**Category:** Hosting Support\
**Created:** [October 1, 2024, 12:06pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599 "2024-10-01T12:06:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 1, 2024, 12:06pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/1 "2024-10-01T12:06:53Z")

</div>

### Website URL

403 Access denied

### Error Message

403 Access denied

### Other Information

I don’t understand how it works here i just follow some youtube tutorial i go to httdocs put all my folders and codes + created new database and set it up then change my db.php into the username, hostname, database name and password but when i reload my website it shows 403 Access denied can u visit my website and tell me what is my wrong doing so i can correct it and have a new learning about connecting my database [http://crudsystem.infinityfreeapp.com/](http://crudsystem.infinityfreeapp.com/)

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 1, 2024, 12:13pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/2 "2024-10-01T12:13:17Z")

</div>

Please read

> [@Redirected to InfinityFree 403 Forbidden page](https://forum.infinityfree.com/docs?topic=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…

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 2, 2024, 12:04am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/3 "2024-10-02T00:04:50Z")

</div>

i dont understand I see the domain name in the file manager I click it then go to httdocs i think and put all the codes and 1 image and 1 css but still not working and the error to me is 403 access denied in a small and top only and the background is white but now i got suspended I dont understand what did I do

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [October 2, 2024, 3:27am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/4 "2024-10-02T03:27:17Z")

</div>

What does the client area say?

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 7, 2024, 11:43am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/5 "2024-10-07T11:43:59Z")

</div>

i just created new account and this shows now i put all my folder inside of htdocs follow the tutorial and change all server name name password and dbname but it still error idk why

 ![image](https://forum-cdn.infinityfree.net/original/3X/3/c/3c4b90500fb7f115eea2d159e8e0eef9ab18ad3f.jpeg)

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 7, 2024, 11:44am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/6 "2024-10-07T11:44:54Z")

</div>

when i type this [crud0system.42web.io](http://crud0system.42web.io) it goes there

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 7, 2024, 11:54am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/7 "2024-10-07T11:54:35Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/3X/2/8/2808b6f1029ccce8a7770ce94ec5dabd88f1bd7a.png)

---

<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:** [October 7, 2024, 11:56am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/8 "2024-10-07T11:56:30Z")

</div>

Can you please show us the content **inside** of `htdocs` so that we can actually tell where is wrong?

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 7, 2024, 12:04pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/9 "2024-10-07T12:04:34Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/3X/c/7/c7061f090407209ab5b1b412b25e93a58564cce0.png)

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 7, 2024, 12:05pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/10 "2024-10-07T12:05:05Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/3X/f/c/fc95222d64a82758fcab2a8e6f1518b754476aef.png)

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 7, 2024, 12:08pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/12 "2024-10-07T12:08:21Z")

</div>

inside the php folder  
 ![image](https://forum-cdn.infinityfree.net/original/3X/f/3/f3d8ec17b09fff4aff555e2f502c4964c475d060.png)

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 7, 2024, 12:40pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/13 "2024-10-07T12:40:37Z")

</div>

i used bootstrap, font awesome there is that ok and 1 image for background

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 7, 2024, 1:17pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/14 "2024-10-07T13:17:47Z")

</div>

i discover that when i use practice folder it doesnt read the index so i create new account and click htdocs then didnt add the folder but instead index and it does show index file into green but now it shows this

 ![image](https://forum-cdn.infinityfree.net/original/3X/8/2/825bf648852a9d731aaaf0247f57beeb41c99507.png)

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 7, 2024, 1:18pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/15 "2024-10-07T13:18:11Z")

</div>

![image](https://forum-cdn.infinityfree.net/original/3X/0/3/039f6ffbe8f4c8132706954160dd07bb9a86b0c9.png)

---

<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:** [October 7, 2024, 1:34pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/16 "2024-10-07T13:34:22Z")

</div>

> [@Http error 500](https://forum.infinityfree.com/t/http-error-500/49352):
>
> When trying to access your website, you may see a page which returns the status code “500”. In Google Chrome, you’ll see a page with the error code HTTP ERROR 500. There are typically two reasons which can cause this error: The PHP code has crashed. The .htaccess file contains invalid rules. Here are some things you can try to debug and fix this. Fixing crashing PHP code A HTTP ERROR 500 simply tells you that the PHP code has crashed, but gives no information as to why it has crashed. Gett…

Also, you just screenshotted your account password to a public forum. Change your hosting account password ASAP.

And you are getting a 403 because your index is not in the htdocs folder, it’s in a folder called practice.

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 8, 2024, 7:34am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/17 "2024-10-08T07:34:31Z")

</div>

i just entered random numbers before sending it so its ok thanks for telling me so i just need to find something that crash my php which is error in my code? btw is it ok to use bootstrap and font awesome here with js

---

<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:** [October 8, 2024, 8:43pm UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/18 "2024-10-08T20:43:33Z")

</div>

> [@NM0013](#):
>
> i just entered random numbers before sending it so its ok thanks for telling me so i just need to find something that crash my php which is error in my code?

A HTTP ERROR 500 means the code crashed. As to why it’s crashed is impossible to say without more information, so the next step is to try and find out more, by enabling error messages. Once you have the error message, you can try to fix it.

> [@NM0013](#):
>
> btw is it ok to use bootstrap and font awesome here with js

Yes, that’s OK. You can upload your own website code, so you can use basically any UI, CSS or Javascript framework ever developed without no restrictions here.

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 10, 2024, 3:23am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/19 "2024-10-10T03:23:57Z")

</div>

Hello. Sir/Ma’am may i ask how to enable error message in my infinity free so that i can try to fix and update it . Thank you very much for help

---

<div class="post-metadata">

**Author:** ![wasik405](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wasik405/32/55080_2.png) [@wasik405](https://forum.infinityfree.com/u/wasik405)\
**Post date:** [October 10, 2024, 5:51am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/20 "2024-10-10T05:51:18Z")

</div>

1. Go to control panel.
2. Go to Alter PHP Config.
3. Select the domain name and click Alter PHP Directives.
4. Set “Display Errors” to ‘On’ and click the Alter php Directives.

---

<div class="post-metadata">

**Author:** ![NM0013](https://forum.infinityfree.com/letter_avatar/nm0013/32/5_5575768a8748004e209b776fc1b2916d.png) [@NM0013](https://forum.infinityfree.com/u/NM0013)\
**Post date:** [October 11, 2024, 9:01am UTC](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599/21 "2024-10-11T09:01:32Z")

</div>

i search it on google but thanks for the help anyways

[Next page](https://forum.infinityfree.com/t/so-i-get-403-access-denied/99599.md?page=2)
