Xampp Aws

XAMPP is more powerful as compared to Wamp. Also, XAMPP has the SSL feature which Wamp lacks. Wamp is the perfect choice for native web applications and XAMPP is when you need an advanced set of features in your web server package. Now, if you’re new to the cloud, you might be wondering what Amazon Web Services and Bitnami are. Very briefly, Amazon Web Services is a cloud platform, which allows you to easily create Windows and Linux virtual servers online. Bitnami provides pre-packaged server images for. XAMPP stands for Cross-Platform (X), Apache (A), MySQL (M), PHP (P) and Perl (P). It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing purposes.

Xampp Aws

Let’s Encrypt is a certificate authority (CA) providing free SSL/TLS certificates. You can get a valid SSL certificate for your domain at no cost.

Download the certbot-auto Let’s Encrypt client and save under /usr/sbindirectory. Use the following command to do this.

Download Certbot and install it:
sudo wget https://dl.eff.org/certbot-auto -O /usr/sbin/certbot-auto
sudo chmod a+x /usr/sbin/certbot-auto

Generate Certificate
sudo certbot-auto certonly --standalone -d example.com -d http://www.example.com

Xampp Aws Login

Above command will prompt for an email address, which is used for sending email alerts related to SSL renewal and expiration. Also, asks a few more questions. After completion, it will issue an SSL certificate and will also create a new VirtualHost configuration file on your system.

If everything goes fine. A new ssl will be issued at below location. Navigate to below directory and view files. 0700 zulu time.

cd /etc/letsencrypt/live/example.com
ls

Files are:
cert.pem
chain.pem
fullchain.pem
privkey.pem

Now you have to configure your Apache server and host as described here:
You don’t need to create virtual host configuration if you are using XAMPP and directly following my instructions. We’ll directly edit httpd-ssl.conf file.

1. Change host file
sudo vi /etc/hosts

remove localhost and put example.com

127.0.0.1 example.com

2. Change apache config file here:
sudo vi /opt/lampp/etc/httpd.conf

remove all “localhost” with your domain. Here we are using example.com

3. Now we have to show our certificate paths here in SSL configuration file:
sudo vi /opt/lampp/etc/extra/httpd-ssl.conf

Change variable paths according to your system, for me it’s like this:
SSLCertificateKeyFile “/etc/letsencrypt/live/example.com/privkey.pem”
SSLCertificateChainFile “/etc/letsencrypt/live/example.com/fullchain.pem”
SSLCertificateFile “/etc/letsencrypt/live/example.com/cert.pem”

Configure Amazon AWS
Now go to Amazon AWS and open your https port and allow it accessing from anywhere.

Aws

If you want to redirect all your requests from HTTP to HTTPS then add following lines in your .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

In the end, configure the following job on your server crontab to auto-renew SSL certificate if required.
sudo vi /etc/corntab
0 2 * * * sudo /usr/sbin/certbot-auto -q renew

Now restart the apache xampp service:
sudo /opt/lampp/lampp restart

Install Awstats Xampp

Xampp aws downloadXampp Aws

Xampp Configuration In Aws

Go to browser and type your domain , your server is https now 🙂