Skip to main content

Serverpilot : Easiest way to Setup | Manage | Secure your PHP Website with Amazon Cloud EC2 Servers


ServerPilot is the easiest way to run PHP applications such as Laravel, Yii, Coordinator, Magento, WordPress on Amazon EC2 servers to keep your server secure.

If you're not a sysadmin, you should use a developer-friendly environment with ServerPilot.
1st Setup EC2 Instance.
2nd Connect EC2 Server to ServerPilot


Setup EC2 Instance


Log in to the AWS Management Console. Once logged in, click on EC2.
Then click Instances in the left menu and then click Instance Launch button. The instance creation tool starts.
Now, select Ubuntu Server 16.04 LTS 64-bit or Ubuntu Server 18.04 LTS 64-bit as your Amazon Machine Image (AMI).

After Select AMI Please check My blog in 2nd point Configure your instance from Step 2 to Step 6. Click Here......

Configure the Security Group

You can see the name of the security group for your instance in the instance details screenshot above (in this case, it's "launch-wizard-1").

By default, Amazon blocks ports 80 (HTTP) and 443 (HTTPS). If you don't perform the following steps, your apps won't work.

Then, click on the Inbound tab to see the firewall rules for your server. As you can see below, the default firewall for EC2 servers allows only port 22 (SSH). 

Wow, EC2 is complicated. Thankfully, your server's now ready for ServerPilot.



Connect EC2 Server to ServerPilot

You just need your server's IP address so you can SSH into it.

Now, SSH into your server as the user ubuntu. The ubuntu user has full sudo privileges and was created by EC2. The SSH key you chose when creating your EC2 server will be able to log in as this user.
Once you're able to SSH in, you'll need to manually connect your server to ServerPilot.

Next, Log in to in ServerPilot, go to the Servers page and click Connect Server.

Place a check mark in the box next to I don't have a root password or public IP address.

In the new fields, enter the name for the server you're connecting to ServerPilot. 

 

If you would like to use passwords rather than SSH keys to upload files to your apps over SFTP, do notremove the check mark from the second box. Leave this checked, and ServerPilot will automatically enable SSH password authentication on your server.

Click Connect to ServerPilot. 

Then, show you a unique command to run on your server. This command will install the ServerPilot agent in EC2

 

 

Log in to your server through SSH with the root user. Copy the command and paste it into the terminal. Once the installation is complete, your server will show as connected in ServerPilot, and you'll be prompted to create your first app.

Once the installation is complete, your server will show as connected in ServerPilot, and you'll be prompted to create your first app.

ServerPilot configures Nginx as the public-facing web server because it is much more scalable than Apache. Unlike Apache, Nginx can handle handle tens of thousands of simultaneous client connections. As Nginx waits until it has completely received the request before proxying the request through to Apache, your server is safe from Slowloris attacks. For your SSL-enabled apps, Nginx also provides extremely efficient SSL handling and HTTP/2 support.

Thanks for being here : Contact with us if any query

Please comment below for get more information.


Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. This comment has been removed by a blog administrator.

    ReplyDelete
  6. Very nice blog and articles. I am realy very happy to visit your blog. Now I am found which I actually want. I check your blog everyday and try to learn something from your blog. Thank you and waiting for your new post. Website price

    ReplyDelete
  7. Thank you for the valuable information. I’ve bookmarked for future reference.
    Reference: https://proweb365.com/website-design/

    ReplyDelete
  8. Since the modern online users are big time conscious about their needs and requirements. Only a single visit to a website is enough for the online visitors of today to decide whether they are again going to come back for meeting their ends. In such a stiff competition, imagine how amateur websites struggle with the professionally designed websites. Here the best Web Design Toronto company can lessen down your struggle to large extent by employing professional approach to your online venture.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Speedup your WordPress site with Amazon CloudFront.

Introduction A WordPress performance is quite excellent . The number of WordPress plugins to handle performance is such evidence. But the easiest way to improve your user experience is to accelerate the entire WordPress website using CloudFront. This will help you not only improve site response time reduces the necessary infrastructure, reducing the load on the Web server, so you can reduce the total cost of the infrastructure works WordPress. CloudFront is actually a site can greatly help your site to respond to unexpected load when gained popularity. Today this post is to clarify the method of providing a reasonable standard configuration on the WordPress website or blog. How does CloudFront help? Amazon CloudFront is to improve the user's experience accessing the Web site in several ways: 1.  Anycast DNS is to ensure that customers are routed to the nearest edge location. 2.  The cached content is available to users at the edge position (i

Linux System : Free Employee Monitoring with Automatic Screenshots

Introduction :   A utomatic screen-shots  of Linux system directly import  on your web server with Linux samba server service and scrot command. 1)  Setup web panel UI on your web server :   Get web panel PHP/HTML code from Github URL: https://github.com/raj412/Employee-Monitoring-for-Linux-System It’s work in Linux server LAMP environment(no need database for this configuration ) Defult login username password is admin/1234. You can change username/passwrod from login.php file in line number #6 Login Page : Dashboard : Screenshot Page : 2)  Samba server configuration on web server : I.  Install Samba on your server where you setup Linux screenshot log system web panel. sudo apt-get update sudo apt-get install samba II.  Set a password for your user in Samba sudo smbpasswd -a <user_name> III.  Share gallery-images folder from you web panel. This is my web panel gallery-images p

How to control high traffic load on Apache servers : optimization performance of APACHE2 & PHP-FPM

Everyone handle high traffic loads  on Apache server. During down-time they forget to check server memory . Apache not used lot of memory  still server not responding. All time we restart Apache service and all things will start working good. I also faced same issue numerous time and all-time  used same solution : Restart Apache. After lots of research and reading found one solution. In this blog you see step-by-step guide to apache2 performance settings. System environment: Intel(R) Xeon(R) CPU 3.10GHz, 4 cores | 8GB RAM Ubuntu 16.04 Apache2 version using mpm_event PHP FPM (5.6,7.1) First,  Calculate process size : Download : python script file “ps_mem.py” from Github Open this and ps_mem.py file upload on you server :  https://github.com/raj412/ps_mem chmod a+x ps_mem.py sudo python ps_mem.py Output like this:  See here : 12 Apache processes, consuming a total of  35.7MiB, so each Apache process is using roughly 3MiB of RAM. The 42 php-fpm process u