Welcome Guest, Not a member yet? Register   Sign In
Hosting CI 4 at Shared Server
#1
Question 

How to upload the CI 4 at shared server and what should be directory structure and path.

I upload the local copy to server but it is not working.

Please let me know.
Reply
#2

Please supply further details of the installation and also details of "it is not working".
Reply
#3

Depends on the shared severs user panel.

Install CodeIgniter 4 on Shared Hosting (cPanel)
Reply
#4

On cpanel is quite easy.

Just create a folder in your root directory called Codeigniter, shove all your app, system and writable contents in there.
Then in your public_html you put your public content and then edit your index.php to adjust the path to where your app is.

You should adjust this variable to something like:

$pathsPath = realpath(FCPATH . '../codeigniter/app/Config/Paths.php');
Website: marcomonteiro.net  | Blog: blog.marcomonteiro.net | Twitter: @marcogmonteiro | TILThings: tilthings.com
Reply
#5

(This post was last modified: 07-14-2020, 02:58 AM by John_Betong.)

@ritesh2527,

Don't forget to make the writable folder writable with 0777 permissions.
Reply
#6

On my shared hosting server I have public_html so I change my localhost public to public_html create my app
and then I just FTP upload everything to the root of my server and I'm good to go.

NOTE:
You will also need to edit spark and change the public to public_html
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB