CodeIgniter Forums

Full Version: CodeIgniter 4 on Amazon AWS CLoud9 server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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.
(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/
Great, it seems you had an malformed headers as they are rendering as ## now.
You are right, thanks!