aws lightsail missconfiguration |
Thanks for giving me the opportunity to try LightSail, been using AWS for many many years, but haven't tried LightSail. Without you giving much information about you setup I created a CI4 lightsail instance in 5 minutes following these steps:
Platform: Linux/Unix Blueprint: OS Only / Amazon Linux Instance type: 1GB RAM instance SSH to the host and then follow the instructions from AWS, just Step 1 is OK for this test: https://docs.aws.amazon.com/AWSEC2/lates...-LAMP.html (skip point 6 on lightsail since the instance is wide-open anyway) Install CI4 dependencies: Code: sudo yum install php72-intl php72-mbstring Reboot instance. Code: sudo /sbin/init 6 Test IP address in browser to see the Apache Test Page. SSH back in to host and create directory for CI4: Code: sudo mkdir -p /var/www/ci4 Install composer in /home/ec2-user: Code: cd ~ Install CI4 appstarter: Code: cd /var/www/ci4 Change into the CI4 directory: Code: cd /var/www/ci4/test Change permissions for writeable: Code: chmod -R 777 /var/www/ci4/test/writable/ Configure the env file by setting CI_ENVIRONMENT and app.baseURL Code: cp env .env Modifications to .env: Code: #-------------------------------------------------------------------- Edit apache config and change DocumentRoot to the appstarter directory: Code: sudo nano /etc/httpd/conf/httpd.conf Change line with DocumentRoot to: Code: DocumentRoot "/var/www/ci4/test/public" Restart apache: Code: sudo /etc/init.d/httpd restart Go to IP-address to see CI4's welcome page. |
Messages In This Thread |
aws lightsail missconfiguration - by alex-cross - 07-16-2020, 04:11 PM
RE: aws lightsail missconfiguration - by tgix - 07-17-2020, 12:23 AM
RE: aws lightsail missconfiguration - by alex-cross - 07-17-2020, 07:25 PM
|