Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Adjust your php.ini settings … perfect flexibility at Servage

Tuesday, May 2nd, 2023 by Helge

hands-coffee-cup-apple-large

The php. ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. You can check your default settings if you create a  php file in your root directory and add this code to that file

<?php

phpinfo()

?>

However, some plugins and themes require different PHP settings than those set by default. Via your Servage account, you have a vast flexibility and you can adjust many settings in accordance to your needs!

In your Servage control panel, you find the PHP config button which allows you to edit some common php.ini settings:

  • log in to your Servage account
  • go to “Domains and websites” and choose “Websites”
  • push the button “PHP config”

Here you can find the option to alter the common php.ini settings:
open_basedir
short_open_tag
display_errors
register_argc_argv
allow_url_fopen
allow_url_include
ignore_repeated_errors
ignore_repeated_source
file_uploads
max_input_vars
expose_php

In addition, it is possible to adjust many other settings as well via a user.ini file!  The .user.ini file is where you declare changes to your PHP settings. You can use the default settings for the server, change specific settings by editing the existing .user.ini, or create a new text file and name it .user.ini. We previously used php.ini, but no longer use it due to updates with some PHP versions.

The server is already configured with standard settings for PHP that have been selected by our administrators to be the most optimal setting for a majority of our customers. Unless you specifically need to change one or more of the settings, there is no need to create or modify a .user.ini file. If the .user.ini file does not exist in your account, then your site will use the default PHP settings defined on the server.

You can place your .user.ini file in your Web Root (domainfolder/public_html).

Some  common examples are :

memory_limit = 128M

upload_max_filesize = 1000M

post_max_size=100M

max_execution_time=120

When you set .user.ini within public_html, the changes are applied to the software that is installed in that particular folder only. Separate .user.ini is necessary for each directory.

If you need any further assistance please reach our 24/7  support Team.

Adjust your php.ini settings ... perfect flexibility at Servage, 5.0 out of 5 based on 1 rating
Categories: Guides & Tutorials
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

No comments yet (leave a comment)

You are welcome to initiate a conversation about this blog entry.

Leave a comment

You must be logged in to post a comment.