How to Increase PHP Limits in cPanel


If you need to increase PHP limits like memory_limit, upload_max_filesize, or max_execution_time to accommodate larger files or more intensive scripts, here’s how you can do it through cPanel:

Method 1: Using MultiPHP INI Editor

  1. Log in to cPanel: Access your account.
  2. Navigate to MultiPHP INI Editor: Find this option in the Software section.
  3. Select Your Domain: Choose the domain you want to modify.
  4. Adjust PHP Settings:
    • Change settings like memory_limit, upload_max_filesize, and max_execution_time to your desired values.
    • For example, set memory_limit to 256M, upload_max_filesize to 50M, and max_execution_time to 300.
  5. Save Changes: Click Apply.

Method 2: Editing the php.ini File Directly

  1. File Manager: In cPanel, go to File Manager.
  2. Find php.ini: Locate this file in your site’s root directory (public_html). If it’s not there, create one.
  3. Edit the File: Add or update lines like:iniCopy codememory_limit = 256M upload_max_filesize = 50M max_execution_time = 300 Save the file after editing.

Method 3: Using .htaccess

  1. File Manager: Go to File Manager.
  2. Locate .htaccess: Find this file in your root directory, or create it if it doesn’t exist.
  3. Edit .htaccess: Add these lines to adjust PHP settings:iniCopy codephp_value memory_limit 256M php_value upload_max_filesize 50M php_value max_execution_time 300 Save the changes.

Leave a Reply

Need Some Help?

Whether you're stuck or just want some tips on where to start, hit up our experts anytime. We're here to help!

Vortex Sales Help

24/7/365 Through the Chat Option

Customer Support Ticket

24/7/365 Through the Panel Option

Customer Support Email

24/7/365 Through the Email Option

HostVortex offers reliable, high-performance web hosting solutions tailored to your needs. With top-notch security, fast speeds, and exceptional support, we help you succeed online

Connect with us

Copyright © 2024 Hostvortex.net