Modifying php.ini

If you need to modify the configuration file of your PHP instance, to a certain extent it is possible to do so.

Some parameters can’t be changed. The list of these unmodifiable parameters is below.

How to modify your php.ini

Access your instance with SFTP and download the file /lamp0/etc/php/php-custom.ini Locally edit the file, putting in the values you want to change. Values that remain unmodified will remain at the defaults.​ ​(See default phpinfo). When you are satisfied with your version of the file, upload it to your instance, replacing the original (lamp0/etc/php/php-custom.ini).

To make your changes effective, you need to reboot your instance.

Bemerkung

Alternatively you can modify the php-custom.ini file from within your instance’s Control Panel under the „Edit PHP Configuration“ section.

Unmodifiable Parameters

Here is the list of unmodifiable parameters and their default values. Entries in your php-custom.ini for one of these settings will be ignored:

log_errors = On
ignore_repeated_errors = On
ignore_repeated_source = On

memory_limit = 128
# memory_limit = 256 for a XXL size Simple Hosting
realpath_cache_size = "1M"
memory_limit = 128M
max_execution_time = 120

upload_tmp_dir = "/srv/data/tmp"
upload_max_filesize = 128M
post_max_size = 128M

include_path = ".:/usr/share/php:/srv/data/web/includes"

variables_order = GPCS

output_buffering = 8192

mail.log = "/srv/data/var/log/www/phpmail.log"

[apc]
apc.gc_ttl = 1200
apc.ttl = 0
apc.user_ttl = 0
apc.slam_defense = 0
apc.write_lock = 1
apc.file_update_protection = 0
apc.max_file_size = 10M

[opcache]
opcache.max_file_size = 10M
opcache.lockfile_path = "/srv/run/php"

[session]
session.save_path = "/srv/data/var/php/www"

[mysql]
mysql.default_socket="/srv/run/mysqld/mysqld.sock"
mysql.default_user="root"
mysql.default_pw=""

[mysqli]
mysqli.default_socket="/srv/run/mysqld/mysqld.sock"
mysqli.default_user="root"
mysqli.default_pw=""

[pdo_mysql]
pdo_mysql.default_socket="/srv/run/mysqld/mysqld.sock"