CodeIgniter Forums
How to give permission - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How to give permission (/showthread.php?tid=67402)



How to give permission - kmabubakar - 02-18-2017

I'm a newbie to frameworks and i tried to use codeigniter but the page on the browser says i don't have permission to access it. How can i solve this? Thanks.


RE: How to give permission - llebkered - 02-19-2017

I don't know what server environment you run but there are 2 things to try

1 Check your file permissions. Make sure your files are visible to your server. The server may not have permission to serve them.

2 Maybe try changing your root .htaccess file to:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

see https://codeigniter.com/user_guide/general/urls.html for details


RE: How to give permission - ignitedcms - 02-19-2017

This is really only an issue on linux systems, chmod +x 777 the entire CI directory. Once you know you got it working you can change it to 644 permissions and only set the relevant folders to 777 when and where you need.


RE: How to give permission - ProfessionalCoder - 02-21-2017

I suggest change your .htaccess file .