How to install xampp and FTP in AWS Linux 2 server

steps to install xampp and FTP in AWS Linux 2 server

steps to install xampp

Step 1

Download xampp PHP version 7

# wget https://www.apachefriends.org/xampp-files/7.2.2/xampp-linux-x64-7.2.2-0-installer.run

Step 2

Change file Permission

#chmod +x xampp-linux-x64-7.2.2-0-installer.run

Step 3

Run installer

#./xampp-linux-x64-7.2.2-0-installer.run

Step 4

Run xampp service

#sudo /opt/lampp/xampp start

steps to install FTP

Steps 1

install vsftp


#sudo yum install vsftpd

Steps 2

add Custom TCP Rule in security group


 Log in to the AWS EC2 Management Console and select Security Groups from the navigation tree on the left. Select the security group assigned to your EC2 instance. Select the Inbound tab and add port range 20-21

Now the  Inbound tab  look like this 
Type	        Protocol   Port Range	Source
SSH	         TCP	     22	        ip/32
HTTP	         TCP	     80	        0.0.0.0/0
Custom TCP Rule	 TCP	   20 - 21	0.0.0.0/0
Custom TCP Rule  TCP	  1024 - 1048	0.0.0.0/

Steps 3

Open configure files make sure that u have the below configuration


 #Vi /etc/vsftpd/vsftpd.conf 

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
chroot_list_enable=YES
listen=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
pasv_address=**.***.***.** #your ip address
local_root=/opt/lampp/htdocs
use_localtime=YES

Steps 4

Create FTP user

# sudo adduser ftpuser

Steps 5

Create ftpuser Password

# sudo passwd ftpuser
type password

Steps 6

Login using ftp client

Open Filezilla

Host : YOUR IP ADDRESS

User :  ftpuser

Password : YOUR PASSWORD
and connect

How to push files to bitbucket from my windows system?

To upload files to bitbucket from your windows system ,first you need to install git and after have to clone repository to local device with clone git command ,it automatically create folder for you with all your server files.update changes and push your data .Here will discuss each steps

Lets see the steps

1) Download git for windows from https://www.google.co.in/search?q=install+git+on+windows&rlz=1C1CHZL_enIN773IN773&oq=install+git&aqs=chrome.1.69i57j0l5.2500j0j7&sourceid=chrome&ie=UTF-8

2) Install Git

3) Open cmd and try git status

#git

Git bitbucket from my windows system

4) move cmd directory to your project folder using #cd D:\newprojetc

5) Clone your bitbucket respository using below command

# git clone https://[email protected]/PROJECTNAME/RESPOSITORYNAME.git
auto create all your bitbucket files to your system newprojetc folder

6) update the files you needed and and commit using

#git git add .
#git commit -m “initial commit”

7) upload files using Push command

#gift push https://[email protected]/PROJECTNAME/RESPOSITORYNAME.git

uploaded files to bitbucket from yoursystem

how can I create my own blog?

Creating your own blog is easy as making instant noodles,like maggi packet everything is available in one packet that is called CMS(content management system),by using any of the content management system you can start your own blog in couple of minutes.one of the most famous CMS is WordPress,millions of blogs are already developed using this simple system. Here am going to discuss with how to develop your own blog with WordPress

see steps

1) Buy your own domain name and hosting space from any of the hosting service provider like go daddy,dont forget to compare the pricing

e.g example.com

2) Download WordPress from the site wordpress.org/download/

3) upload downloaded WordPress archive to the hosting space,that you bought from any of the hosting provider .every hosting provider will give cpanel login.you can use those credential to upload file to root folder

create my own blog

4) Unzip uploaded WordPress files and move the files into root folder

5) Using cpanel GO to MySQL database area

go to phpmyadmin

6) create a new MySQL database name and username

 

MySQL databse

7) Open any browser type example.com

8) fill database info and user info

9) create admin username and password move forward

10) Now visit example.com your own website is live now

cheer 🙂