Overview
PHP with NGINX on Alma Linux 8 (BYOL) from Zend by Perforce provides a turnkey solution for running PHP in the cloud. This supported PHP runtime includes the option to install any of PHP 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, or 8.3, and can scale seamlessly across your cloud resources. ZendPHP gives PHP developers and DevOps engineers the tools needed to easily orchestrate clusters of PHP servers as microservices or autoscaling applications.
Highlights
- ZendPHP builds include community or back-ported patches against known CVEs for a minimum of two years beyond community support end of life.
- Purpose-built for cloud orchestration, ZendPHP images offer advanced tooling to help you streamline, automate, and accelerate continuous delivery cycles.
- ZendPHP builds include fully customizable Terraform templates, meaning easy orchestration for your PHP-based application clusters.
Details
Features and programs
Financing for AWS Marketplace purchases
Pricing
Additional AWS infrastructure costs
Type | Cost |
---|---|
EBS General Purpose SSD (gp3) volumes | $0.08/per GB/month of provisioned storage |
Vendor refund policy
n/a
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
- Updated PHP versions
- PHP 8.3.13
- PHP 8.2.25
- PHP 8.1.30
- PHP 8.0.30.3
- PHP 7.4.33.7
- PHP 7.3.33.12
- PHP 7.2.34.20
Additional details
Usage instructions
To access the instance, you will need to navigate to the EC2 console and open your launched instance. Once health checks have passed, copy the public IP address in order to SSH into your launched instance. Ex SSH -i yourkeypair ec2-user@ip_address
All ZendPHP cloud images set up a default virtual host located in the directory /var/www . Users can upload a PHP application to that directory and immediately have a running web application.
Additionally, ZendPHP cloud images come with several scripts to allow you to switch PHP versions and manage virtual hosts and SSL details. These are all located in /usr/local/bin and MUST be run as root or via the sudo command.
Zend provides the following scripts: zendphp_credentials zendphp-vhost zendphp-switch
zendphp_credentials: On first invocation, this script requests credentials from the ZendPHP credentialing service. If successful, it then installs them such that your package manager uses them when retrieving ZendPHP packages. After a successful operation, run the command that updates your package manager's cache (e.g., apt-get update for DEB-based distributions and yum update for RPM-based distributions). On subsequent invocations, it renews your credentials for a period of one month. Important In most cases, you do not need to interact with this script. You need to run the script during initial provisioning and once every 4 weeks thereafter via a cronjob. If you need to use it manually, run zendphp_credentials help at the command line.
zendphp-vhost: The zendphp-vhost script allows you to add, rename, or remove virtual hosts. The script also fetches and configures a TLS certificate for the vhost via the Let's Encrypt Certificate Authority (CA). If the query fails, the script uses the self-signed localhost certificate.
Use zendphp-vhost (action) (vhost domain) (port) (options) (email)
Parameters
action: One of: info, add, remove, chgname, or chgport.
vhost domain: Domain for which to create, modify, or remove a virtual host.
port: If set, configures the virtual host to this port; otherwise sets the port to the default (80).
options: One of http or https. This option also configures the port for http or https. If set to https the script retrieves the certificate from Let's Encrypt.
email: Webmaster e-mail. If not set, the script uses the default webmaster@localhost.
Examples Show currently enabled vhosts: $ zendphp-vhost info
Create new vhost (use default parameters): $ zendphp-vhost add somehost.somedomain.com
Create new vhost (preconfigures port 443 and fetch certificate from Let's Encrypt CA): $ zendphp-vhost add somehost.somedomain.com 443 https webmaster@somedomain.com
Change vhost name (also requests a new TLS certificate from Let's Encrypt and revokes/deletes the old one): $ zendphp-vhost chgname somehost.somedomain.com someotherhost.somedomain.com
Change vhost port to non-secure (non-ssl enabled) port: $ zendphp-vhost chgport somehost.somedomain.com 81 http
Change vhost port to secure (ssl) port (also runs certbot command to configure certificate): $ zendphp-vhost chgport somehost.somedomain.com 444 https
Remove virtual host (also asks whether to preserve or delete the document root directory as well as configuration files, and asks to revoke/delete the previously installed certificate):
$ zendphp-vhost remove somehost.somedomain.com
zendphp-switch: The zendphp-switch script allows you to switch between ZendPHP versions.
Use zendphp-switch (action) (version) (vhost domain)
Parameters
action: One of: to, off.
version: PHP version (currently possible: 7.2, 7.3, 7.4, 8.0, 8.1, 8.2 or 8.3)
vhost domain: Virtual host you want to switch the PHP version on.
Examples Switch from current ZendPHP version to 7.4: $ zendphp-switch to 7.4 somehost.somedomain.com
Switch ZendPHP 7.4 FPM process off: $ zendphp-switch off 7.4
Resources
Vendor resources
Support
Vendor support
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.