php - CodeIgniter error 403 Access forbidden on Ubuntu -


i've been working on not-much-complicated projects using codeigniter on windows, first time launch php file in ubuntu.

i copied codeigniter project /opt/lampp/htdocs working on windows doesn't work on ubuntu. gave me 403 error.

solved:

  1. set permission command line: sudo chmod 777 -r /opt/lampp/htdocs sudo chmod 777 -r /opt/lampp/htdocs/ project_folder project_folder name of project directory.

  2. make sure controllers' name capitalized.

in addition comments, apache needs execute access on every folder root project in order traverse file system.

sudo chmod +x / sudo chmod +x /opt sudo chmod +x /opt/lampp 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -