Modify the php.ini of your Simple Hosting instance

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.

Changes to the PHP.INI are possible if your instance is running version php-5.4 or greater. View the changelog here

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.

Unmodifiable Parameters

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

log_errors = On
ignore_repeated_errors = On
ignore_repeated_source = On

always_populate_raw_post_data = 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

[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.stat = 1
apc.stat_ctime = 1
apc.max_file_size = 10M

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

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

[pdo_mysql]
pdo_mysql.default_socket="/var/run/mysqld/mysqld.sock"
上一次變更: 2016/05/31 10:23 (外部編輯)