Welcome Guest, Not a member yet? Register   Sign In
Secure Installation of CI4 on shared hosting
#1

Hey guys,

first of all I would like to point out that I am quite new to Codeigniter in general.

I want to upload the codeigniter 4 framework onto my shared hosting website, in order to build an webapplication based on it.
So far so good, I uploaded everything and it worked out quite well (saw the message, could generate new views, etc.).

My problem is the following:

the directory on my server is: public_html
If I upload the frameworks directory as it is onto that directory, people can access my files like the env file.

I struggle with "hiding" the directories and files right in order to be secure.
I checked the manual for ci4 but it didn't quite help me.

I understand that my public_html needs to be mapped to the "public" folder provided in CI4. But where shall I save the other folders? A directory above?

Sorry if my question seems silly to you, but I can't get that sorted out at the moment.

I am very thankful for any help!

Kind regards,
Paul
Reply


Messages In This Thread
Secure Installation of CI4 on shared hosting - by paulfst - 04-01-2020, 09:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB