Welcome Guest, Not a member yet? Register   Sign In
Installation on Godaddy VPS Server Linux Cpanel


we have tried to use CI 4.0.2 on Godaddy VPS Server, Linux, CentOS, Apache, Cpanel
We have tried using subdomain :

subdomain target : public_html/hope/public
project installed on : public_html/hope

Its working fine, but Controllers on subdirectory is not working, but we have tested the same on local xampp platform, its working fine. For subdirectory we have used subdirectory based namespace;

Example : 
Directory: Controllers/cloud/Test.php
used namespace : namespace App\Controllers\cloud;

Its giving a 404 error
Controller or its method is not found: \App\Controllers\Cloud::test

What is the solution?

(This post was last modified: 04-24-2020, 09:28 AM by jreklund.)

You can find instruction on how to install it on shared hosting with Cpanel here:

You should not place it inside a subfolder to public_html.

Change this:
Directory: Controllers/cloud/Test.php
used namespace : namespace App\Controllers\cloud;

To this:
Directory: Controllers/Cloud/Test.php
used namespace : namespace App\Controllers\Cloud;

All folder and files need to be capitalized.

You are trying example.com/cloud when you should be using example.com/cloud/test as you placed in a subfolder.

Theme © iAndrew 2016 - Forum software by © MyBB