• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CodeIgniter 4 on Amazon AWS CLoud9 server

#1
After many difficulties, I managed to install CodeIgniter 4 on Amazon AWS CLoud9 server. I made a step by step guide available here : https://lucidar.me/en/aws-cloud9/how-to-...ws-cloud9/

I hope this may help others!
Reply

#2
Hi, I'm afraid your tutorial are recommending bad practices.

You should not access CI by using the public folder. That should be set to your document root in Apache. Please update your tutorial to reflect that.

"sudo chmod 777" are a security risk. 777 should never be applied to a folder. Only owner and/or group** should have read and write access to your files.

Wrong:
http://example.com/public/

Correct:
http://example.com/

** group = www-data or what your apache/php runs under.
Reply

#3
(05-04-2020, 11:42 AM)jreklund Wrote: Hi, I'm afraid your tutorial are recommending bad practices.

You should not access CI by using the public folder. That should be set to your document root in Apache. Please update your tutorial to reflect that.

Thank you for the feedback. For the root folder, I did it, but forget to report in the tutorial, it is updated. 

Quote:
"sudo chmod 777" are a security risk. 777 should never be applied to a folder. Only owner and/or group** should have read and write access to your files.


** group = www-data or what your apache/php runs under.

Great ! Thank, I through the group was "Apache" and I was wondering why it was not working. Of course, it's "www-data".

The tutorial is updated : https://lucidar.me/en/aws-cloud9/how-to-...ws-cloud9/
Reply

#4
Great, it seems you had an malformed headers as they are rendering as ## now.
Reply

#5
You are right, thanks!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.