PHP Cloud Hosting

PHP is the easiest to use server-side scripting languages. Its usage currently reached 78.9% popularity and is steadily growing. Togglebox has partnered with Jelastic to provide PHP Cloud Hosting as almost 50% of all web servers are run on top of PHP.

PHP Versions

We supports the latest PHP Cloud Hosting engine versions. The up-to-date list of the releases available is updated weekly: Software Stack Versions.

Choose the engine version you need and easily switch between them using Togglebox UI.php topology wizard

PHP Application Servers

Two PHP Cloud Hosting servers are provided by default and supported by Togglebox:

Read this document on details for Configuration: PHP App Server Configuration.

php file manager

PHP Application Deployment

Zero downtime deployment provides the ability to run any cloud-native or legacy application.

Choose one of the available deployment options: via Archive/URL, GIT/SVN, Bitbucket project, etc.

Configure an automatic periodic re-deployment from the repository.

php application deployment

Use the Composer dependency manager to quickly install all the required packages for the deployed project and keep them up-to-date.

Domains Management

Bind an external domain name to your application instead of the default using these custom domains instructions.

Using the swapping domains feature, end-users of your application won’t experience any downtime.

View the newer version in a test environment and swap URLs with a production environment with just in a few clicks.php custom domains

Increase usability, efficiency, and scalability using multiple domains on a single PHP server saving the costs on set up.

Automatic Vertical Scaling

Automatic vertical scaling changes the number of allocated resources (RAM and CPU) according to its current demands, with no manual intervention.

Never overpay for unused resources and eliminate the necessity of handling the load-related adjustments.

Your application will work within these limits reducing resource consumption.

Open the environment topology wizard and specify the upper scaling limit of cloudlets (each equals to 128 MiB and 400 MHz) with the slider:php vertical scaling

 

Manual Horizontal Scaling

  1. Click Change Environment Topology to add PHP servers manually.
  2. Then press the “+” button to add the required number of instances.

php horizontal scaling

When you add extra servers, load balancing is enabled automatically.

For more formation on horizontal scaling check out its documentation.

Automatic Horizontal Scaling

Automatic horizontal scaling uses tunable triggers that monitor changes in the application load.

Configure a trigger by opening Settings > Monitoring > Auto Horizontal Scaling section and press Add button.

Configure the triggers for specific stacks and resources (CPU, RAM, Network, Disk) when you specify the conditions of scaling and apply changes.

auto horizontal scaling

Find more details about automatic horizontal scaling here.

PHP Clustering

PHP sessions clustering can highly increase its availability and failover capabilities using the sticky sessions.

A Memcached node should be added to your environment and used as storage for the sessions’ backups.

Clone an exact copy of your PHP server with all the same configurations and files inside using built-in data synchronization.

Use pre-packaged auto-scalable WordPress Cluster and Magento Cluster available for one-click installation.

You can package any PHP application in this way to automate its clustered installation.php cloud server

Database Connection to PHP Application

Easily install and operate scalable and fully manageable database servers within the PHP environment.

Adjust your application following these instructions:

Modules and Accelerators

Extend the functionality of the environment through setting different PHP extensions at the appropriate application servers.

Select one of the default extensions and activate it.

Or upload your own custom one – both these operations are described in the PHP Modules instruction.

PHP accelerators are used for enlarging your application efficiency through caching the already compiled parts of PHP code.

Apache PHP and NGINX servers have a set of the inbuilt modules.

Here are tutorials for configuring the various modules:

PHP Security

SSL / TLS (Secure Sockets Layer / Transport Layer Security) is the industry standard security technology.

This feature allows an encrypted connection between a web server and a browser.

This technology ensures that all passed data remains private and confidential.

Security of your application can be increased through customizing the main PHP configuration file, named php.ini.

Edit the number of default settings it contains or add your own in based on the needs of your application.

Here is documentation for more information on particular configurations:

Ensure the application protection by using a container firewall feature which lets you control the nodes’ availability both from inside and outside of the platform.php firewall