user979331
user979331

Reputation: 11871

How do I change upload_max_filesize and max_execution_time in php.ini?

I am trying to change my upload_max_filesize and max_execution_time in my php.ini

I've tried

upload_max_filesize = 80M
max_execution_time = 300

and

ini_set('max_execution_time', '45')
ini_set('upload_max_filesize', '80M')

I ran phpinfo and none of them changed...what gives?

thanks, J

Upvotes: 0

Views: 6620

Answers (2)

SysAdmin Steve
SysAdmin Steve

Reputation: 1

You dont need to restart the computer/server after making a php change such as this. You could make the changes directly to the php.ini and not reboot.

You'll likely need to have your provider allow this, or set it in an .htaccess file.

Upvotes: 0

Naftali
Naftali

Reputation: 146310

Remember to restart the server before you check the phpinfo()

Upvotes: 4

Related Questions