← ServerPilot Docs


Available PHP Extensions

The following is a list of PHP extensions enabled by default in ServerPilot's PHP builds. These extensions are available in PHP 5.

How to Install PHP PECL Extensions

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.

How to Remove PHP Extensions

If you no longer need third-party PHP extensions you've installed, you can remove them. In the examples shown, replace "

How to Enable the PHP JIT Compiler

To enable the PHP JIT compiler, SSH into your server as root and edit the following file: /etc/php8.0-sp/conf.d/opcache.ini Add the following line to the end of the file:

How to Downgrade Composer to Version 1

With the release of Composer version 2, ServerPilot now provides this version to all servers by default. However, some applications may not be fully compatible with version 2, and so you may need to use version 1 until they address those incompatibilities.

How to Change the PHP Timezone

This article is about changing the PHP timezone. If you instead need to update PHP's database of timezone information, see how to update timezonedb.

How to Update the PHP timezonedb Version

This article is about updating the internal database of information PHP uses to determine the time based on any given timezone.

How to Use the PHP CLI

PHP's Command Line Interface (CLI) allows you to execute PHP scripts when logged in to your server through SSH.

How to Change PHP Version from 5.4 to 5.5

ServerPilot allows you to change the PHP version under which your App runs after it's already been configured. Simply follow these steps:

How to Change PHP Version from 5.5 to 5.6

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.

How to Change PHP Version from 5.6 to 7.0

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.

How to View PHP Settings with phpinfo

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.

How to Disable the PHP Opcache

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.

How to Install PHP PEAR Libraries

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.

How to Reduce PHP and WordPress Memory Usage

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.

How to Use Composer for PHP Dependency Management

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.

Install Concrete5

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.

How to Update Composer

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.

How to Install phpMyAdmin

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.

How to Install phpMyAdmin on Its Own App

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.

How to Change PHP Settings

You can change PHP settings for your apps by creating a file named .user.ini in your app's web root directory.

How to Change the PHP Memory Limit

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.

How to Change the PHP-FPM max_children Setting

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.

How to Change the Version of the 'php' Command

For each PHP version ServerPilot installs on your server, ServerPilot also installs the PHP command line interface (CLI) for that PHP version.

How to Increase File Upload Limits in PHP

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.

How to Use Clean URLs

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:

How to Install New Relic for Monitoring PHP Apps

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.

Customizing the PHP Configuration

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!

How to Change max_execution_time

The PHP setting max_execution_time is the number of seconds PHP will allow a script to run before PHP terminates the script.

How to Increase max_input_vars

If your PHP app displays the following error: Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.

How to Install Drush

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:

How to Install the PHP MDB2 Library and Its MySQL Driver Using PEAR

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.

How to Perform HTTP Digest Authentication with PHP

HTTP Digest Authentication data sent to your app through request headers is accessible through the $_ENV['HTTP_AUTHORIZATION'] variable in PHP.

How to Read the PHP Slow Request Log

The PHP slow request log is where PHP records information about any request that takes more than five seconds to execute.

How to Reduce PHP and WordPress CPU Usage

Your server's CPU usage is related to the total amount of traffic your apps receive and how CPU-intensive your apps are.

How to Restrict the Directories PHP Can Access Using open_basedir

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.

How to Set Environment Variables

Some PHP applications look for configuration data in environment variables. You can set environment variables for your app using .

Launch your first site in 5 minutes