PHP offers many configuration parameters that influence the properties and behavior of the interpreter. You can supplement the defaults and adjust individual values so they meet your preferences and the requirements of your applications.
1. PHP Interpreter
Our servers use a special module to integrate PHP as FPM, FastCGI, or CGI into the web server. Your scripts are executed with the rights of your own user instead of an anonymous user like «www» or «nobody».
This offers an advantage over the commonly used module «mod_php» because all files belong to your user—regardless of whether they were created by your PHP applications or uploaded via FTP.
This also gives you the opportunity to adjust the configuration in the form of so-called PHP profiles for individual directories or your entire hosting.
2. Choose PHP Version
You can specify the PHP version for a website or for a single directory.
You can find the options under:
- «Websites & Domains» > «Dashboard» > «PHP» at the corresponding website
3. Adjust Configuration
- Log in to the Plesk Control Panel.
- Click on «Websites & Domains» > «Dashboard» > «PHP».
→ Here you can change the PHP version. This may be necessary if you are running an older website.
3.1 Frequently Used Options
- memory_limit
- Size of the memory allocated to this website. Please note that this can impact your other websites if a value that is too high is set. Be sure to enter the desired value with a capital M at the end, e.g., «memory_limit = 256M».
- upload_max_filesize
- Maximum file size that can be uploaded via a CMS (e.g., WordPress). Be sure to enter the desired value with a capital M at the end, e.g., «upload_max_filesize = 128M».
- post_max_size
- Size of a post request from your website, often related to «upload_max_filesize» and «max_execution_time». Be sure to enter the desired value with a capital M at the end, e.g., «post_max_size = 128M».
- max_execution_time
- Time in seconds (e.g., «max_execution_time = 300») before a process times out (e.g., when uploading larger files via your CMS).
4. Available Modules for PHP
The following extensions are generally installed:
- bcmath
- calendar
- Core
- ctype
- curl
- date
- dom
- exif
- FFI
- fileinfo
- filter
- ftp
- gd
- gettext
- gmp
- hash
- iconv
- igbinary
- imap
- intl
- json
- ldap
- libxml
- mbstring
- mysqli
- mysqlnd
- openssl
- pcntl
- pcre
- PDO
- pdo_mysql
- Phar
- posix
- readline
- redis
- Reflection
- session
- shmop
- SimpleXML
- soap
- sockets
- sodium
- SPL
- standard
- sysvmsg
- sysvsem
- sysvshm
- tokenizer
- xml
- xmlreader
- xmlwriter
- xsl
- Zend OPcache
- zip
- zlib