I have installed Codeigniter 4 (the latest version) using composer. Everything is ok, but I am not able to access the controllers.
When I hit http://localhost/myProject, it displays the Welcome page. But when I try to hit
http://localhost/myProject/public/index.php/myProject it displays a 404 error. I don't know the reason. Please help me I am using the XAMPP server on Windows 10 Machine with PHP version 8.1.
Consequently, I am not able to access any of my controllers.
Thank you!
Related
I have a blade master view in Laravel which contains the code {{$home or ''}}. My server is using PHP 7.1, Nginx. I migrated the code to another server with cPanel, just copied the whole contents and database and setup everything. The server to which I migrated the code runs Litespeed and Php 7.3. The same code works on server running nginx but not the newly migrated server. When I browse the page, I get Undefined variable: home. How can it run on nginx and not when using Litespeed. I'm new to litespeed and I haven't configured anything specific to laravel. Can someone please help to get this working.
Edit 1:
based on this, this syntax doesn't work on Laravel 5.7 and above but I'm using 5.8 and it works fine at the moment on old server.
Please try this
{{$home ?? ''}}
In my local machine (Windows) my app made in Yii Framework works right, but on the server(Debian Linux) not works.
It always get the page Not Found (#404) Page not found.
The code is in https://github.com/LucasOlmedo/TCCFatecZL/tree/master/PROJETO_TCC_OFC
Can help me?
after I have installed a new LAMP Server I wanted to install cakephp3 on my server. So far everything works fine. I have generated the scaffold code explained in the beginner tutorial. After the code has been successfully generated I have noticed that the standard routing is not working, so I cannot call actions from controller, for example by typing http://adress/cakephp/Users/add. Instead of a error message occurs
"The requested URL /cakephp/Bookmarks was not found on this server."
This is irritating me, because I have also a MAMP Server on my MAC with a installed cakephp application and I didnt have errors like this. Thank you.
I know this question seems duplicate but it is not. Actually I have strange problem that I want to fix since last two days. I have install the apache2 on ubuntu 12.04, configure it and it works fine. Problem is that when I try to access the same website from other computer it opens the directory instead of website and If I click on some link it says the sentence that I wrote in the heading. Now want to know that what I am missing as all things goes fine on local PC by localhost/
I built the application in ZEND.
I've installed MAMP and I get the welcome page when I go to my localhost + :8888/MAMP/
But then I downloaded CI and put it in 'htdocs' inside MAMP and I can not get the CI welcome page.
I'm not very experienced with setting up servers, what should I do??
A quick Google search returned this video tutorial on setting up MAMP, CodeIgniter and your first controller and view:
Installing MAMP and CodeIgniter, and setting up your first controller and view
That should help you get started