MyBB Community Forums

Full Version: max_execution_time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Where can I change this setting within MyBB?
That's a PHP setting in the php.ini file. You can set it using .htaccess if your webserver allows it though.
Yes I can access everything on my server. Sorry for sounding like an idiot but where is the php.ini file located?
If your on shared hosting, you will probably not be able to see it. Contact your host to find out where it can be found.
@Shukaku He has a dedicated server.

It depends where you installed PHP. The two most common locations are ./etc/ and ./usr/bin/php/.
CentOS
4
/usr/local/lib/php.ini.
5
/etc/php.ini
Ubuntu server
etc/php5/apache2/php.ini (At times)
Fedora
/etc/php.ini
Gentoo
/etc/php/cli-php5/php.in
Debian
etc/php5/apache/php.ini
Suse
/usr/local/php/lib/php.ini
Slackware
/usr/local/lib/php.ini
Arch
/etc/php/php.ini


That should be it.
If you create a file with the following code it will tell you where your server is loading the php.ini file from:

<?php
phpinfo()
?>
just click the View PHP Info link in the ACP > Tools and Maintenance
<?php

echo ini_get('max_execution_time');

ini_set('max_execution_time',0)

?>
Use
locate php.ini

Or just use what Mark said, Then control + F (If using a editor) for Resource Limits, It should be right below that, If it isn't add it
max_execution_time = x

Replace x with what you want.

(If using putty it's around line 230 more or less depending what's complied)