What Is LightSail ?
Lightsail is an easy-to-use cloud platform that offers you everything needed to build an application or website, plus a cost-effective, monthly plan. Whether you're new to the cloud or looking to get on the cloud quickly with AWS infrastructure you trust, we've got you covered.
What Is LampStack in LightSail ?
Amazon Lightsail is the easiest way to get started on AWS. It offers virtual servers, storage, databases and networking, and you deploy a LAMP (Linux Apache MySQL PHP) stack application onto a single Lightsail instance.
Task 1) Create LAMP stack
Task 2) LampStack Configuration Commands
Task 3) LampStack Intance Services
How To Create Lamp Stack
step 1) Click on Services >> write lightsail
Step 2) Click on Create Instance
Step 3) Choose Instance location >> Pick your instance image (Linux) >> Select a blueprint (Apps+OS) >> Click On LAMP
Step 4) Choose a Free Tier instance plan
Step 5) Identify your instance >> Write Key Tag >> Click On Create Instance
Step 6) Click on Instance name LAMP_PHP_7-1
- If you configure first time LAMPstack Download default pem file
- If you configure second time follow below instruction
Click on Account >> click on account >> click on ssh-keys >> click on download under default
Step 7) Copy your public_IP >> and access server via terminal by following command
$ ssh -i LightsailDefaultKey-ap-south-1.pem bitnami@public_IP
Step 8) write below following command, and keep the password
$ cat bitnami_credentials
- Note:- This Is your Mysql root user default password, you can change it.
$ mysql -u root -p
LampStack Configuration Commands
- LampStack Configuration path
/opt/bitnami
- LampStack Service Status, Restart, Stop, Start Command
sudo /opt/bitnami/ctlscript.sh status
sudo /opt/bitnami/ctlscript.sh restart
sudo /opt/bitnami/ctlscript.sh stop
sudo /opt/bitnami/ctlscript.sh start
sudo /opt/bitnami/ctlscript.sh status php-fpm
sudo /opt/bitnami/ctlscript.sh status apache
sudo /opt/bitnami/ctlscript.sh status mysql
- Apache Virtual Host Configuration path
/opt/bitnami/apache/conf/bitnami
- Apache Document root path
/opt/bitnami/apache/htdocs
- Check hosted domain in apache
sudo apachectl -S
LampStack Instance Service's
1) Connect - We can connect by Console and remotely terminal
2) Storage - We Can Add Additional attached disks
3) Metrics - We Can Configure Metrics Graphs, and set alarm as_Cloudwatch
4) Networking - We can create Static ip , and managed firewall
5) Snapshots - We Can we create instance snapshot by Manually or Automatic
6) Tag - Add Tagging to identify instance easily
7) History - Get All the logs
8) Delete - Delete this instance
Modify The php.ini File Upload Limit
- Modify the following options in the /opt/bitnami/php/etc/php.ini file to increase the values
- If the default Web server configuration limits are too low for the file sizes you plan to upload, you can also increase those limits in the /opt/bitnami/apache2/conf/httpd.conf file, and add below line.
LimitRequestBody 16384
- Restart the servers for the changes to take effect.
$ sudo /opt/bitnami/ctlscript.sh restart
- Check the changes on your browser ip_address/info.php
No comments:
Post a Comment
testing