Cloud Made Easy

Apache Web Server with PHP on Cloud

December 29, 2018, Written by 0 comment

AWS Deployment  Azure Deployment

Google Deployment

Overview

Apache 2.4.x is the most widely used web server software. Developed and maintained by Apache Software Foundation, Apache 2.4.x is an open source software available for free. It runs on 67% of all web servers in the world. It is fast, reliable, and secure. This version of Apache is latest GA release of the new generation 2.4.x branch of Apache HTTPD . The Apache HTTPD package contains an open-source HTTP server. It can be highly customized to meet the needs of many different environments by using extensions and modules. Most WordPress hosting providers use Apache as their web server software. However, WordPress can run on other web server software as well. PHP 5.6.x is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP 5.6.x is most commonly used PHP version and it comes tagged with some exclusive features and some backward incompatible changes for improvements. PHP 7.1.x has introduced a new pseudo-type that is similar to callable. It can be used in parameter and return type. It accepts either, arrays or objects, that implement Traversable interface.
  • PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  • PHP supports a wide range of databases
  • PHP is free. Download it from the official PHP resource: www.php.net
  • PHP is easy to learn and runs efficiently on the server side
  • PHP can generate dynamic page content
  • PHP can create, open, read, write, delete, and close files on the server
  • PHP can collect form data
  • PHP can send and receive cookies
  • PHP can add, delete, modify data in your database
  • PHP can be used to control user-access
  • PHP can encrypt data
With PHP you are not limited to output HTML. You can output images, PDF files, and even Flash movies. You can also output any text, such as XHTML and XML.PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft’s ASP.
While Apache is a free and updated product, it doesn’t skimp on features. In fact, it’s one of the most feature-filled HTTP web servers available, which is another reason it’s so popular.
Modules are used to add more functions to the software; password authentication and digital certificates are supported; you can customize error messages; one Apache install can deliver multiple websites with its virtual hosting capabilities; proxy modules are available; it supports SSL and TLS, and GZIP compression to speed up web pages.

Features

Major Features of Apache Web Server
  • Apache server is an open source web server.
  • It can be installed on all operating systems like Linux, Windows, Unix, FreeBSD, Solaris, Mac OS X etc.
  • It is a powerful, flexible, HTTP/1.1 compliant web server.
  • This server is highly configurable and extensible with third party modules.
  • It provides complete source code and comes with an unrestricted license.
  • Apache supports some of the capabilities like CGI (Common Gateway Interface) and SSI (Server Side Includes), URL redirection, loading modules support, user authentication, proxy caching abilities etc.

AWS

Installation Instructions For CentOS

Installation Instructions For CentOS

Note: How to find PublicDNS in AWS Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to CentOS instance on AWS Cloud 1) Download Putty. 2) Connect to the virtual machine using SSH key Refer this link:
  • Hostname: PublicDNS  / IP of machine
  • Port : 22
Note: To get started follow the instructions in the file /etc/httpd/conf.d/welcome.conf You may add your website content to the directory /var/www/html/ or set up custom path Get PHP info with php -v and php -m

Azure

Installation Instructions For Ubuntu  Installation Instructions For CentOS

Installation Instructions For Ubuntu

Note : How to find PublicDNS in Azure Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to Ubuntu instance on Azure Cloud 1) Download Putty. 2) Connect to virtual machine using following SSH credentials :
  • Hostname: PublicDNS  / IP of machine
  • Port : 22
Username: Your chosen username when you created the machine ( For example:  Azureuser) Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember) Step 2) Application URL: Access the application via a browser at http:/PublicDNS/ Step 3) Other Information: 1. Default installation path: will be on your web root folder /var/www/html” 2.Default ports:
  • Linux Machines:  SSH Port – 22
  • TCP : 8389
Note: Please allow 8983 port for remote access with http://<yourip>:8983 3. To access Webmin interface for management please follow this link Configure custom inbound and outbound rules using this link

Installation Instructions For CentOS

Note : How to find PublicDNS in Azure Step 1) SSH Connection: To connect to the deployed instance, Please follow Instructions to Connect to CentOS instance on Azure Cloud 1) Download Putty. 2) Connect to virtual machine using following SSH credentials :
  • Host name: PublicDNS  / IP of machine
  • Port : 22
Username: Your chosen username when you created the machine ( For example:  Azureuser) Password : Your Chosen Password when you created the machine ( How to reset the password if you do not remember) Step 2) Application URL: Access the application via a browser at “http:/PublicDNS” Step 3) Other Information: 1. Default installation path: will be on your web root folder “/var/www/html/” 2.Default ports:
  • Linux Machines:  SSH Port – 22
  • TCP : 8389
Note: Please allow 8983 port for remote access with http://<yourip>:8983 3. To access Webmin interface for management please follow this link Configure custom inbound and outbound rules using this link

Video

Apache Web Server

jennifer