PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, March 7, 2022

[FIXED] 404 Not Found in yii framework

 March 07, 2022     php, yii     No comments   

Issue

I'm new user of yii framework. I've got project and its name is crm now when I try to run it, it gives me the error of 404 Not Found and below of it shows The requested URL /crm/web/index.php was not found on this server., now when I go to my root index.php it has following line <?php header('Location: /crm/web/index.php'); ?> and when I just go into web/index.php it has a lot of code now the problem is it can't access/find the index.php in web directory I also tried and create another file testing.php and change <?php header('Location: /livecrm/web/index.php'); ?> to <?php header('Location: /livecrm/web/testing.php'); ?> but it didn't work for me I already set the Environment Variables, so now what to do.

enter image description here

Thanks in advanced


Solution

You are using Yii2 and have several application inside your project .. from your explorer i see

your project is named livecrm

inside you have thiese application dir

  • frontend
  • livecrm
  • liveCRMV2.2
  • livefactory

and other

then what you named "I've got project and its name is crm" is not present

but done your app dir structure if you want execute a webapp inside your project you should use (eg for webapp frontend)

livecrm/frontend/web/index.php

or for livecrm

livecrm/livecrm/web/index.php 


Answered By - ScaisEdge
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing