ReflectionException Class Home does not exist Codeigniter 4? |
I had installed the fresh Codeigniter4, and configured the basic steps
**Step 1** app > app.php > public $baseURL = 'http://121.52.xxx.xxx/faculty_portal/'; removed index.php from $indexPage=''; public $uriProtocol = 'PATH_INFO'; **Step 2** .env file renamed and set the development mode CI_ENVIRONMENT = development **Step 3** from public folder > moved index.php and .htaccess file to main folder .htaccess file has default configuration whereas the index.php file $pathsConfig = FCPATH . 'app/Config/Paths.php'; require realpath($pathsConfig) ?: $pathsConfig; $paths = new Config\Paths(); $bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php'; Error Images are attached here. https://imgur.com/DEqn974 https://imgur.com/qW0GWUl I am trying to install it in **subfolder that is faculty_portal**. Respected community please guide me where I am doing wrong. You guidance/help will be highly appreciated. [1]: https://i.stack.imgur.com/JnUn4.png [2]: https://i.stack.imgur.com/iT1wk.png
08-11-2022, 08:07 AM
(This post was last modified: 08-11-2022, 08:08 AM by captain-sensible. Edit Reason: added )
for local host
public $baseURL = 'http://127.0.0.6/'; I dont mention sub directory in the above. At my webserver root there is a directory called ads.com I set things up using virtual host: Code: <VirtualHost 127.0.0.6:80> 127.0.0.6 is set up in /etc/hosts you can see the DocumentRoot is path of web app to public On live my approach is as a subdomain , structure very similar to localhost set up. public $baseURL = 'https://mydomain.com/'; //so still i dont mention public or any other folder, i do that via setting document route cPanel To get system pointing to public of sub domain i use cPanel and edit document root for subdomain so its subdomainName/public i'm sure others will give you there approach
(08-11-2022, 08:07 AM)captain-sensible Wrote: for local host-------------------------------------------------------------------------- --------------------------------------------------------------------------
|
Welcome Guest, Not a member yet? Register Sign In |