PHP Cloud Hosting on FullHost.Cloud: Code, Deliver, Optimize
PHP stands as one of the most user-friendly server-side scripting languages, dominating the web with its adoption in over 78.9% of the top 10 million websites by Alexa rank. At FullHost.Cloud, PHP's popularity is unmistakable, as nearly half of all servers deployed use PHP, reflecting its widespread preference among our customers.
Embark on a seamless journey with PHP cloud hosting at FullHost.Cloud, exploring the distinct advantages and extensive features our platform offers for the effective management and scaling of your applications.
PHP Version
FullHost.Cloud supports the latest stable PHP versions to ensure compatibility and performance for your applications. Currently, we offer:
- PHP 8.0.30
- PHP 8.1.30
- PHP 8.2.24
- PHP 8.3.12
You can easily select the PHP version you need when creating an environment and switch between versions anytime through the simple FullHost.Cloud user interface. The available versions are regularly updated in our Software Stack Versions document.
PHP Application Servers
FullHost.Cloud provides three PHP application servers by default, each receiving regular updates and security patches:
- Apache
- NGINX
- LiteSpeed
For detailed configuration options and a list of editable config files for each server, refer to our PHP App Server Configuration document.
PHP Application Deployment
Zero-downtime deployment ensures smooth operation for both cloud-native and legacy applications. To deploy your PHP projects on FullHost.Cloud, you can select from several deployment options, including via Archive/URL, GIT/SVN, or Bitbucket.
Additionally, you can set up automatic periodic re-deployment from a repository, which will trigger only when new code changes are detected.
All FullHost.Cloud-certified PHP nodes come with the pre-installed Composer dependency manager, allowing you to quickly install required packages for your projects and easily keep them up-to-date.
Domains Management
For production environments, you can bind an external domain name to your application, replacing the default environment domain. Refer to the custom domains guide for detailed instructions.
With the domain swapping feature, you can deploy new application versions without any downtime for end-users. Stage your updates in a test environment, then swap the URLs with the production environment in just a few clicks.
Using multiple domains on a single PHP server improves application usability, efficiency, and scalability while reducing costs by eliminating the need to set up separate instances for each domain.
Automatic Vertical Scaling
FullHost.Cloud automatically adjusts the allocated resources (RAM and CPU) for your server based on real-time demand, without requiring manual intervention. This ensures you only pay for the resources your application needs, while saving time by eliminating the need to manually manage load-related adjustments or architectural changes.
To set up automatic scaling for your PHP server, open the environment topology wizard and use the slider to specify the upper scaling limit of cloudlets (each cloudlet equals 128 MiB of RAM and 200 MHz of CPU).
Your application will automatically scale within these limits, reducing resource consumption during low load and increasing it when needed. This way, you only pay for the resources that are actually used. For more details, please refer to the documentation on automatic vertical scaling.
Manual Horizontal Scaling
To manually add more PHP servers, simply click Change Environment Topology, then press the “+” button in the wizard to add the desired number of instances.
The maximum number of same-type servers within a single environment layer depends on your hosting provider’s settings (typically up to 16 nodes, but this limit can be adjusted by contacting support).
When you add additional servers, load balancing is automatically enabled to distribute traffic efficiently across the servers.
Automatic Horizontal Scaling
Automatic horizontal scaling is managed through customizable triggers that monitor application load and adjust the number of nodes accordingly.
To set up a trigger for automatic horizontal scaling, navigate to Settings > Monitoring > Auto Horizontal Scaling and click the Add button.
You can configure triggers for specific stacks and resources (CPU, RAM, Network, Disk) within your environment. Simply define the scaling conditions and apply the changes to ensure your application scales efficiently based on real-time demands.
PHP Clustering
Enhance the availability and failover capabilities of your PHP application by implementing session clustering using sticky sessions across multiple server nodes. This is achieved by adding a Memcached node to your environment, which stores backups of processed sessions.
When scaling out your PHP server, an exact copy of your application is created, with all configurations and files synchronized automatically.
Additionally, FullHost.Cloud offers pre-packaged auto-scalable WordPress and Magento clusters for one-click installation, ensuring service continuity. You can also package any PHP application for automated clustered installation.
Database Connection to PHP Application
FullHost.Cloud offers a range of scalable, fully managed database servers that can be seamlessly integrated into your PHP environment. To connect your application, follow the appropriate setup instructions for the database you need:
- MySQL Connection
- PostgreSQL Connection
- MongoDB Connection
Simply configure your application according to the provided guidelines for smooth database integration.
Modules and Accelerators
With FullHost.Cloud, you can enhance your environment’s functionality by configuring various PHP extensions on your application servers. You can either activate default extensions or upload custom ones, as detailed in the PHP Modules guide.
PHP accelerators, a specific type of extension, improve application performance by caching compiled PHP code, enabling faster execution on user requests.
Both Apache and NGINX PHP servers come with a predefined set of modules. For additional functionality, you can follow specific tutorials to configure modules like:
- Adding Custom Apache Modules
- Apache WebDav Module
- Apache Statistics Module
- NGINX WebDav Module
- New Relic Monitoring
These options help optimize and monitor your PHP environment effectively.
PHP Security
SSL/TLS (Secure Sockets Layer / Transport Layer Security) is the standard technology for establishing encrypted connections between a web server and a browser. FullHost.Cloud supports SSL/TLS, ensuring all transmitted data remains private and secure, preventing interception by third parties.
In addition to standard protection methods, you can further enhance your application’s security by customizing the main PHP configuration file (php.ini). This allows you to modify default settings or add new ones to meet your application’s specific requirements.
For more detailed guidance, refer to:
- Apache Security Configurations
- NGINX Security Configurations
You can also boost security by using the container firewall feature, which allows you to control node access both internally and externally on the platform.
“PHP has always been about making web development easy and accessible to everyone. FullHost.Cloud’s approach to PaaS aligns with this mission, and I look forward to contributing to even more great products,” — Rasmus Lerdorf, Creator of PHP.
Rasmus joined FullHost.Cloud (formerly Jelastic) in 2013 as a senior advisor, helping integrate PHP technologies into the platform. Today, PHP remains a top choice for our users, alongside languages like Java, Ruby, Python, Node.js, .Net, and Go.
Looking for highly available, secure, auto-scalable, and easy-to-manage PHP cloud hosting? Explore the full potential of PHP with FullHost.Cloud. Try it out by registering with one of our service providers.