Cannot increase PHP max_execution_time on OVH Perso Hosting

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

I have hosted my codeIgniter application on OVH Perso Hosting but when people are trying to fill a form with multiple files, the page expires before the end of uploading and becomes a blank page. i have tried to change the MAX_EXECUTION_TIME by using .htaccess or ini_set directly in the code but it doesn't work. i need your help to know what i can do to allow people to submit their forms without any trouble. Thank you.

profilepic.png
manpreet 2 years ago

Try to add this code in controller construct

public function __construct() {
 parent::__construct();
 ini_set('max_execution_time', 900);
 ini_set('memory_limit','1024M');
}

if not working try to create a file .ovhconfig and paste this code

app.engine=php
app.engine.version=7.1
http.firewall=none
environment=production

0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.