PHP error Codeigniter could not open stream: permission denied

I am working on a project that uses codeigninter. I worked on this on Windows 7, and it was good, but after I moved this project to Ubuntu to work on it there, it gives me this error in every page / controller / method that I am trying to access :

Warning: require_once(/opt/lampp/htdocs/TS_Project/system/core/CodeIgniter.php): failed to open stream: Permission denied in /opt/lampp/htdocs/TS_Project/index.php on line 202 Fatal error: require_once(): Failed opening required '/opt/lampp/htdocs/TS_Project/system/core/CodeIgniter.php' (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/TS_Project/index.php on line 202 

The CodeIgniter.php file exists, the path to it is correct, and I can read and write it (I can open it in a text editor and freely edit it). I tried changing the permission of the file to it using the chmod , but nothing happens. Why is permission denied in CodeIgniter.php ?

+6
source share
1 answer

You need to change the resolution of your TS_Project folder to 755.

You can do it:

sudo chmod -R 755 /opt/lampp/htdocs/TS_Project

+16
source

Source: https://habr.com/ru/post/952930/


All Articles