CodeIgniter Forums
CodeIgniter 4 on Amazon AWS CLoud9 server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: CodeIgniter 4 on Amazon AWS CLoud9 server (/showthread.php?tid=76336)



CodeIgniter 4 on Amazon AWS CLoud9 server - imabot - 05-04-2020

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-install-codeigniter-4-on-aws-cloud9/

I hope this may help others!


RE: CodeIgniter 4 on Amazon AWS CLoud9 server - jreklund - 05-04-2020

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.


RE: CodeIgniter 4 on Amazon AWS CLoud9 server - imabot - 05-05-2020

(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-install-codeigniter-4-on-aws-cloud9/


RE: CodeIgniter 4 on Amazon AWS CLoud9 server - jreklund - 05-05-2020

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


RE: CodeIgniter 4 on Amazon AWS CLoud9 server - imabot - 05-06-2020

You are right, thanks!