Apache PHP

Apache PHP

The Apache HTTP Server (“httpd“) is an open-source project of the Apache Software Foundation, developed for the variety of modern operating systems including UNIX, Microsoft Windows, Mac OS/X, and Netware. As a robust, commercial-grade, and freely-available HTTP (Web) server, it provides HTTP services since the foundation in 1995.

Jelastic PaaS adopts the Apache solution to create a secure, efficient, and scalable server for the PHP hosting in the cloud. To get your Apache PHP server, follow the steps below:

  1. Log into your Jelastic account and click New Environment at the top.
    create new environment button
  1. Within the opened topology wizard, switch to the PHP tab and select Apache as your application server. Set other configurations up to your needs (e.g. cloudlets limitPublic IPsregion, etc).apache php topology wizard

Type your environment name and click Create.

3. Once the environment is created, you can click the Open in Browser button next to the Apache application server:

apache php open in browser

4. Within the opened default page, you’ll see your server’s phpinfo data.

apache phpinfo start page


Now, you can deploy your PHP application into the environment.

Apache Configuration

While using Apache as a PHP application server, there are some default settings and restrictions you may want to adjust. For example, the size of the files, which can be uploaded to your application, is 2MB. Make the following configurations to increase this limit:

1. Click the Config button for your Apache server to access the configuration file manager:

apache php config button

2. Open the /etc/php.ini file (available through the Favorites shortcut) and locate the next parameters:

  • upload_max_filesize – maximum size of files, which can be uploaded to the server (2MB by default)
  • post_max_size – maximum size of the POST data that PHP will accept (8MB by default)
  • apache adjust phpini file
Note: Regardless of the settings above, if working via Jelastic inbuilt file manager, you are limited to the upload size of 150MB (may vary based on the hosting provider settings). To operate larger files, you need to attach public IP and use own manager (for example, you can utilize the FTP add-on).

3. Don’t forget to Save the changes and Restart Nodes of your application server to apply new settings.

apache php restart nodes

For the detailed info on the PHP servers configuration refer to the appropriate guides: