Customizing php values

Expertise level: Easy

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

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk