# PHP resource warning

**URL:** <https://forum.infinityfree.com/t/php-resource-warning/58891>\
**Category:** Hosting Support\
**Created:** [March 7, 2022, 11:13pm UTC](https://forum.infinityfree.com/t/php-resource-warning/58891 "2022-03-07T23:13:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon66680683](https://forum.infinityfree.com/letter_avatar/anon66680683/32/6_449c533f586939b6e5f246632a46421f.png) [@anon66680683](https://forum.infinityfree.com/u/anon66680683)\
**Post date:** [March 7, 2022, 11:13pm UTC](https://forum.infinityfree.com/t/php-resource-warning/58891/1 "2022-03-07T23:13:39Z")

</div>

So when using PHP on the free hosting plan after a certain amount of resources you can no longer use it and it pops up with this default page saying that all of the PHP resources have been used. Is there any way possible that before it gets to this point that all the resources are used that it shuts off the PHP and redirects you to a different page?

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [March 7, 2022, 11:27pm UTC](https://forum.infinityfree.com/t/php-resource-warning/58891/2 "2022-03-07T23:27:55Z")

</div>

Yes, there is. With what you described, I wouldn’t be surprised if you hit the EP limit or the CPU limit.

What you described is temporary, it only lasts around 5 minutes. However, if you continue on that trend of every five minutes hitting the limit, you may be temporarily suspended.

Read more about the limits I talked about:

> [@What is an Entry Process and what does the limit mean](https://forum.infinityfree.com/t/what-is-an-entry-process-and-what-does-the-limit-mean/49329):
>
> One of the limits InfinityFree enforces is the Entry Process Failures limit, also abbreviated to Entry Process limit or EP limit. This article explains what an entry process is, what the limit means and how you can control it. What is an entry process? Every time a request to a URL on your website is made, a new program is started to retrieve the content of that URL. This process then executes your code, sends the response to the visitor, and finally quits. Note that one entry process is creat…

> [@What does the CPU limit mean](https://forum.infinityfree.com/t/what-does-the-cpu-limit-mean/49328):
>
> One of the limits InfinityFree enforces is the CPU limit. This article explains what the CPU limit means and how you can control it. What does CPU usage mean and why is it limited In the computer you’re reading this on (regardless of whether that’s a PC, laptop, tablet, phone or something else), there is a processor. This processor, or CPU, does all the calculations for all the programs running on your computer. If these programs use too much processor power, your computer will slow down, possi…

---

<div class="post-metadata">

**Author:** ![anon66680683](https://forum.infinityfree.com/letter_avatar/anon66680683/32/6_449c533f586939b6e5f246632a46421f.png) [@anon66680683](https://forum.infinityfree.com/u/anon66680683)\
**Post date:** [March 7, 2022, 11:31pm UTC](https://forum.infinityfree.com/t/php-resource-warning/58891/3 "2022-03-07T23:31:45Z")

</div>

I understand that I’ve read these articles before but how can I create a redirect for when the limit of php is hit

---

<div class="post-metadata">

**Author:** ![wackyblackie](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/wackyblackie/32/43350_2.png) [@wackyblackie](https://forum.infinityfree.com/u/wackyblackie)\
**Post date:** [March 7, 2022, 11:33pm UTC](https://forum.infinityfree.com/t/php-resource-warning/58891/4 "2022-03-07T23:33:25Z")

</div>

You can’t, that’s the point of being suspended.

---

<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:** [March 7, 2022, 11:33pm UTC](https://forum.infinityfree.com/t/php-resource-warning/58891/5 "2022-03-07T23:33:43Z")

</div>

I agree with @wackyblackie, since the entire point of the limit is to punish your website, not allow you the chance to redirect your visitors elsewhere.

This article explains more:

> [@This site/page has used all available php / apache processes](https://forum.infinityfree.com/t/this-site-page-has-used-all-available-php-apache-processes/49336):
>
> Some people see an error page on their website with the following contents: This site / page has used all avaialble php / apache processes allowed on free hosting. Refreshing the page once the amount of apache / php processes are reduced will cause the site to work We would recommend upgrading your hosting account at IFastNet Premium hosting accounts, premium hosting accounts have MUCH higher resources dedicated to them. This article explains why you may see this page, and what you can do …

---

<div class="post-metadata">

**Author:** ![anon66680683](https://forum.infinityfree.com/letter_avatar/anon66680683/32/6_449c533f586939b6e5f246632a46421f.png) [@anon66680683](https://forum.infinityfree.com/u/anon66680683)\
**Post date:** [March 7, 2022, 11:36pm UTC](https://forum.infinityfree.com/t/php-resource-warning/58891/6 "2022-03-07T23:36:13Z")

</div>

So it is impossible to redirect and stop people from using PHP even before the limit is hit?

---

<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:** [March 7, 2022, 11:37pm UTC](https://forum.infinityfree.com/t/php-resource-warning/58891/7 "2022-03-07T23:37:06Z")

</div>

Correct. Because preventing it would use more PHP, witch would again lead to the message. It all kind of comes back to PHP.

---

<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:** [March 17, 2022, 9:19pm UTC](https://forum.infinityfree.com/t/php-resource-warning/58891/8 "2022-03-17T21:19:02Z")

</div>

Closed on March 17, 2022, 9:19pm UTC


