Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 on shared hosting (NOT CPANEL)
#1

(This post was last modified: 08-30-2020, 12:33 PM by jreklund.)

Hi. I finally started my CI4 journey and realised i need to test a simple running site before i rollout updates from CI3 across several domains.

I struggling to publish a Ci4 website to a shared hosting environment.
I read this post https://forum.codeigniter.com/thread-76777.html which it doesnt help me at all.

My directory structure is:
/example.com (home folder)
        /.tmp
        /users
        /public_html
        /www_logs


While i am able to add content to the home folder. Im guessing I dont have executable permission above the public folder and i am unable to change that.

I ran a test by echoing line 16 of public/index.php:

($pathsPath = realpath(FCPATH . '../app/Config/Paths.php');)

realpath returns false as noted here:
https://www.php.net/manual/en/function.realpath.php


Quote:Note:
The running script must have executable permissions on all directories in the hierarchy, otherwise realpath() will return



Furthermore, As someone else suggested in a similar thread.... I cannot change web hosts!

Is there a safe way around this?
Reply


Messages In This Thread
Codeigniter 4 on shared hosting (NOT CPANEL) - by alley - 08-30-2020, 11:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB