The following is a list of PHP extensions enabled by default in ServerPilot's PHP builds. These extensions are available in PHP 5.
PECL extensions are third-party extensions for PHP. These extensions often add new built-in functions to PHP that do not exist in the core PHP language.
If you no longer need third-party PHP extensions you've installed, you can remove them. In the examples shown, replace "
PHP's Command Line Interface (CLI) allows you to execute PHP scripts when logged in to your server through SSH.
ServerPilot allows you to change the PHP version under which your App runs after it's already been configured. Simply follow these steps:
ServerPilot allows you to easily change your app's PHP version. This is a simple and powerful way to develop and test your WordPress, Drupal, Laravel, and other applications with PHP 5.
ServerPilot allows you to easily change your app's PHP version. This is a simple and powerful way to develop and test your WordPress, Drupal, Laravel, and other applications with PHP 7.
PHP includes a built-in function called phpinfo() for viewing PHP settings. This can be useful to check default PHP settings or to see if the changes to PHP settings you've made were done correctly.
PHP 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, and 7.4 have a built-in opcache that is enabled by default. The entire purpose of PHP's opcache is to speed up your scripts and save CPU by storing compiled PHP scripts in memory.
PEAR is a command line PHP library manager that simply downloads PHP libraries hosted at http://pear.php.net. PEAR itself is already installed by ServerPilot.
Every server has a limited amount of memory, also known as RAM. The amount of memory your server has is determined by the type of server you're paying for at your server provider.
Composer is a popular PHP dependency manager. Composer is installed by ServerPilot. However, because ServerPilot makes available multiple versions of PHP, you should invoke the correct Composer command for your app's version of PHP.
In this tutorial, we'll show you how to use ServerPilot to install concrete5 on your server. Connecting your server First, you'll need to get yourself a server running 64-bit Ubuntu 16.
In the examples shown, replace X.Y with your app's PHP version (for example, 7.2). ServerPilot will automatically update Composer on your servers.
In this tutorial, we'll show you how to install phpMyAdmin. This tutorial assumes you have already connected your server to ServerPilot and that you have created at least one app on the server.
One copy of phpMyAdmin installed on a single app on your server will allow you to access all of your apps' databases; however, if you don't want phpMyAdmin installed on one of your existing apps, you can install it on its own with the same result.
You can change PHP settings for your apps by creating a file named .user.ini in your app's web root directory.
You can change the amount of memory PHP allots to each request by using a .user.ini file. Using .user.ini does not change the WordPress memory limit.
The max_children setting limits the maximum number of simultaneously executing PHP requests an app is allowed to have. This limit provides a safeguard against slow or buggy PHP scripts causing your server to run out of memory.
For each PHP version ServerPilot installs on your server, ServerPilot also installs the PHP command line interface (CLI) for that PHP version.
If you receive errors when uploading files or images to your app, you can increase the file size upload limit by changing your app's PHP settings.
Many developers prefer to use clean URLs like these in their apps: http://example.com/profiles/foo rather than URLs like the following that include the PHP script filename in the URL:
In this tutorial, we'll show you how to install and configure New Relic for monitoring PHP apps. You need to follow this tutorial rather than the standard New Relic instructions because ServerPilot installs its own builds of PHP on your servers.
Careful! We can't provide support for customizations or for any errors, downtime, or vulnerabilities you introduce through customizations. Unless you're absolutely sure about what you're doing, you should stop now!
The PHP setting max_execution_time is the number of seconds PHP will allow a script to run before PHP terminates the script.
The default timezone for PHP is UTC regardless of your server's timezone. This is the timezone used by all PHP date/time functions in your scripts.
If your PHP app displays the following error: Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.
Drush is a command-line shell and scripting interface for Drupal. Installing Drush To install Drush, SSH in to your server as root and run the following commands:
In the examples shown, replace "X.Y" with your app's PHP version (for example, "5.6" or "7.0"). MDB2 is a merge of the PEAR DC and the Metabase PHP database abstraction layers.
HTTP Digest Authentication data sent to your app through request headers is accessible through the $_ENV['HTTP_AUTHORIZATION'] variable in PHP.
The PHP slow request log is where PHP records information about any request that takes more than five seconds to execute.
Your server's CPU usage is related to the total amount of traffic your apps receive and how CPU-intensive your apps are.
By default, PHP does not restrict which files and directories your PHP scripts can access. To restrict the directories that can be accessed, you can use PHP's open_basedir setting.
Some PHP applications look for configuration data in environment variables. You can set environment variables for your app using .