1. Home
  2. Cloud and Servers
  3. Virtual Servers (VPS)
  4. PHP settings on the virtual server

PHP settings on the virtual server

In a short time we will show you, how to change the PHP settings on your virtual server. If you need to change parameters memory_limit , open_basedir , safe_mode and many others, you can do it in the configuration file:

/etc/php5/apache2/php.ini

If you change the settings for command line:

/etc/php5/cli/php.ini

Subdirectory conf.d contains configuration files for each module.

If you have installed APC via package php-apc, you can change its parameters in:

/etc/php5/conf.d/apc.ini

if specifically for Apache2, then in:

/etc/php5/apache2/conf.d/apc.ini

For new configuration to load, you need to call:

apache2ctl graceful

Tip: Before the apache reload it is recommended to call test of configuration via apache2ctl -t.

Updated on January 3, 2025

Was this article helpful?

Related Articles