How to change PHP settings (php.ini)

Changes to PHP must be written to a local php.ini file placed on your website.

If you for example wants to change the maximum size for uploaded files, you will have to create a php.ini file with the following content. You can place the file where ever needed - usually in the website root (/web/) on the FTP-server.

upload_max_filesize = 256M

In this case the maximum file upload size is changed to 256 MB.

NB. Changes to php.ini has a TTL (time to live/cache) on five minutes. This means that changes will take effect within five minutes.

  • php.ini
  • 12 Users Found This Useful
Was this answer helpful?

Related Articles

How do I check traffic and quota in the Control Panel?

You can find the traffic usage in the Control Panel at Email -> Mailbox traffic.The statistics...

I already have a database - how do I import it?

If you have an database created, you can log in to it at RemoteMySQL. Then you click the empty...

How do I change the password for my FTP account?

First you'll need to log in to your Control Panel and access the tab Sites -> FTP-Accounts....

How do I create a new FTP user?

First you'll need to log in to your Control Panel and access the tab Sites -> FTP-Accounts....

My web hosting plan has gone over quota, what do I do?

If a website has gone over quota, it is possible to resolve the issue in one of the following...