Max execution time exceeded ERROR

Max execution time exceeded ERROR

by Samantha Ciurlej -
Number of replies: 0

Hello! 

I'm trying to restore a course into moodle and since it is 30MB my server is not taking it. Every time i want to restore I get this fatal error:


Fatal error: Maximum execution time of 30 seconds exceeded in /home/username/public_html/site.url/lib/filestorage/zip_archive.php on line 247


I am running Moodle as a subdomain on my server. I have added the code in my main domain php.ini file, but nothing seems to work:

extension=pdo.so

extension=pdo_mysql.so

max_execution_time=300


Am I supposed to be changing the htaccess. file instead? or the php.ini file located in the subdomain folder? or is my coding wrong? 

 Can anyone help?


Thanks!

Average of ratings: -