Professional Documents
Culture Documents
Amazon EC2 Setup With Ubuntu and XAMPP Installation - by Rahul Shukla - Medium
Amazon EC2 Setup With Ubuntu and XAMPP Installation - by Rahul Shukla - Medium
Save
Step 1
Step 2
After Amazon console login you find the following screen, select EC2 from Compute
category.
Step 3
Step 4
Now choose operating system for web server. I suggest use Ubuntu for more
package advantage. Make sure, that should be listed in free tier.
Step 5
After select button. you will click for review and instance
Step 6
After clicking Review and Launch You find the below screen, now click Launch
button.
Step 7
In this step. you see this screen. Select “create a new key pair”
b. Give valid name and click to Download Key Pair. You will get an .pem file.
Step 8
Step 9
Step 10
Select the instance box and scroll down the page, you will find inbound rules for
firewall security
Step 11
Basically, Amazon instance will provide you a dynamic public DNS name, this is not
stable. So you need a static IP.
Step 12
Go to Network & Security category and select Elastic IPs, click Allocate New Address
Step 13
Step 14
Step 16
Give only READ permission for .pem file, then execute SSH command again.
Windows connection
Run following command
ubuntu@ip-172-31-19-204:~$ sudo su
root@ip-172-31-19-204:/home/ubuntu#
wget https://www.apachefriends.org/xampp-files/7.0.23/xampp-linux-x64-7.0.23-0-
installer.run
Run Installation
sudo ./xampp-linux-x64-7.0.23-0-installer.run
XAMPP instructions
Select the components you want to install; clear the components you do not want to
Installation Directory
Run XAMPP
Open your browser and access http://IP-ADDRESS/ you will find this Access
forbidden screen.
XAMPP Configurations
Edit XAMPP configurations.
vi /opt/lampp/etc/extra/httpd-xampp.conf
In this image there are default value is local you have to set “ all granted ”
Restart XAMPP
Security Settings
sudo /opt/lampp/xampp security
XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes
XAMPP: Turned off.
XAMPP: Password:*******
XAMPP: Write the password somewhere down to make sure you won't forget it!!!
XAMPP: Password:*******
XAMPP: The FTP password for user 'daemon' is still set to 'xampp'.
XAMPP: Done.
PhpMyAdmin
Access PhyMyAdmin at http://IP-Address/phpmyadmin/
Domain Settings
If you own a domain address, go to domain DNS(Domain name settings). Add host
value @ points to IP-Address
85 1