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.
Table of Contents
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_ALLPHP_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.