PHP

Here you will find information about PHP, how to change the PHP version, and troubleshooting

Change PHP version
Where can you find phpinfo() ?
Custom PHP environment (php.ini)

Change PHP version

  1. Log in to https://my.servetheworld.net/
  2. Click on Products
  3. Click on My Products
  4. Click on Manage next to the relevant web hosting
  5. Click on Advanced Settings
  6. Find and click on the relevant domain name in Websites & Domains
  7. Click on the icon named PHP
  8. Change to the desired version and click OK to save the change.
       
  plesk_website_php_icon plesk-php-select

Where can you find phpinfo() ?

  1. Log in to https://my.servetheworld.net/
  2. Click on Products
  3. Click on My Products
  4. Click on Manage next to the relevant web hosting
  5. Click on Advanced Settings 6. Find and click on the relevant domain name
  6. Click on PHP Settings
  7. Click on View the phpinfo() page to display details about the PHP environment for your website

Custom PHP environment (php.ini)

You can change certain PHP settings exclusively for your website. This involves publishing a file named .user.ini in the web folder of your domain name, e.g., via FTP.

In the example below, we show how to increase the upload limit in PHP for your website.

1) Open a text program, e.g., Notepad, on your computer.
2) Enter the following or copy/paste:

upload_max_filesize = 128M;
post_max_size = 128M;

The values above set a custom upload limit of 128 MB; set another desired size if needed. A list of php.ini directives is available at http://php.net/manual/en/ini.list.php

3) Save the file on your computer (note both periods in the filename):

.user.ini

4) Upload the file via FTP into the relevant domain folder.

5) Verify the changes by checking phpinfo(), see Where can you find phpinfo() ?