Customizing php values

Posted:  May 14th, 2018

 

You can easily display and customize php values for a Managed Cloud server.

 

Display default php values

 

Before customizing the php values, you can display the default values by first creating a phpinfo page in your website directory:

 

1) Create a phpinfo.php file containing the following code: <?php phpinfo(); ?>

 

2) Upload it to your server in the /var/www/vhosts/yourdomain.com/ directory

 

3) Browse http://yourdomain.com/phpinfo.php to visualize the current php values

 

Customize php values

 

1) Create a file named '.htaccess' in your website directory (/var/www/vhosts/yourdomain.com/)

 

    # Format

 

    php_value value_name setting_value

 

    # Example

 

    php_value memory_limit 256M