PHP Configuration Overrides (php.ini & .user.ini) Print


You can customize PHP settings like memory limit or max upload size without needing root access.

Using .user.ini:

  1. Navigate to your website root folder via File Manager.
  2. Create a file called .user.ini if it doesn’t exist.
  3. Add overrides like:
    memory_limit = 512M
    upload_max_filesize = 128M
  4. Save and allow 5 minutes for the changes to apply.

These settings override the server’s default PHP configuration only for your site.


Was this answer helpful?

Related Articles

How to Use SSH Access on Shared Hosting SSH (Secure Shell) provides encrypted command-line access to your hosting account — ideal for... Managing Cron Jobs in cPanel Cron Jobs allow you to automate repetitive tasks like running scripts at set intervals. Steps to... Custom .htaccess Rules for Advanced Configuration The .htaccess file allows you to control many Apache settings for your site. Common Uses:... Using Git Version Control in cPanel Track changes and deploy code efficiently using Git from your Aviumshost cPanel. Create a Git... How to Enable Two-Factor Authentication for cPanel Two-Factor Authentication adds an extra layer of security to your hosting account, preventing...
« Back