Skip to content
mybox Help Center

Help sections

  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online
mybox.com All services operational
/

Language

  • English
  • Română
  • mybox panel
  • Webmail
Start free
/
  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online
  • Help Center
  • mybox.com
  • English
  • Română
All services operational Start free
  1. Help Center
  2. Account & Billing
  3. Service & Resource Management
How-to Account & Billing

How to change PHP parameters and limits

Updated May 31, 2026 2 min read
On this page
  1. How to check current PHP settings
  2. How PHP parameter changes work
  3. Default PHP values (example)
  4. Examples of PHP configuration changes
  5. Increase memory limit
  6. Increase maximum upload size
  7. Increase maximum POST size
  8. Increase script execution time
  9. Where to apply these changes
  10. Important limitations
  11. Practical implications
  12. Summary

PHP parameters define how your website behaves at the server level. They control limits such as memory usage, file upload size, and script execution time.

In mybox hosting, these settings can be adjusted using the .htaccess file in your website’s main directory.

How to check current PHP settings

You can view your current PHP configuration using the phpinfo() function. Learn how to do it HERE.

How PHP parameter changes work

PHP settings can be overridden by adding directives to the .htaccess file located in the main directory of your website (usually public_html).

Each setting uses the following structure:

php_value parameter_name value

For example:

php_value memory_limit 8192M

Default PHP values (example)

Typical default values in a hosting environment may include:

memory_limit 8192M
post_max_size 8192M
upload_max_filesize 2048M
max_execution_time 3000

These values determine how much server resource your PHP scripts can use.

Examples of PHP configuration changes

Increase memory limit

php_value memory_limit 1024M

Increase maximum upload size

php_value upload_max_filesize 512M

Increase maximum POST size

php_value post_max_size 512M

Increase script execution time

php_value max_execution_time 300

Where to apply these changes

Edit the .htaccess file located in your website root directory:

public_html/.htaccess

If the file does not exist, you can create it manually.

Important limitations

Not all PHP directives can be changed using .htaccess.

Only settings belonging to:

  • PHP_INI_ALL
  • PHP_INI_PERDIR

can be modified this way.

Some system-level settings are restricted and cannot be overridden at the hosting level.

Practical implications

Incorrect configuration in .htaccess may cause your website to stop working.

If this happens, you can restore functionality by removing or correcting the added PHP directives.

Changes take effect immediately after the .htaccess file is saved.

Summary

PHP parameters in mybox can be adjusted using .htaccess directives in the website root directory. These settings allow you to control memory limits, upload sizes, and execution time, within the limits allowed by the server configuration.

Was this article helpful?

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.

Helpdesk 24/7 Open a ticket in the mybox panel mybox panel Log in and manage your services

On this page

  1. How to check current PHP settings
  2. How PHP parameter changes work
  3. Default PHP values (example)
  4. Examples of PHP configuration changes
  5. Increase memory limit
  6. Increase maximum upload size
  7. Increase maximum POST size
  8. Increase script execution time
  9. Where to apply these changes
  10. Important limitations
  11. Practical implications
  12. Summary

Related articles

All in Service & Resource Management
How-to Getting Started with mybox How to order a website to be transferred from another hosting At mybox, we provide comprehensive assistance with the transfer of websites and mailboxes from your current hosting provider. This migration process is… 2 min read How-to Getting Started with mybox Ordering a website and email migration to mybox The mybox team can migrate your website and email from your current hosting provider. To request a migration, you need to activate… 1 min read How-to Getting Started with mybox How to migrate a website to mybox Migrating a website to mybox means copying your files, database, and email content from your current hosting provider and pointing your domain… 2 min read
mybox

Modular web hosting – free out of the box, modular to grow.

Help sections

  • Getting Started
  • Account & Billing
  • Domains & DNS
  • Hosting & Servers
  • Email
  • Security & SSL
  • WordPress & CMS
  • Grow Online

mybox

  • mybox.com
  • mybox panel
  • Webmail
  • Helpdesk 24/7
© 2026 mybox 1,680 articles