jmahdi Posted July 13, 2011 Share Posted July 13, 2011 this should be related to an "mysterious" configuration in apache or something please help (or direct to another post that might)..... I get this: You don't have permission to access /filename.htm when i try to run http://localhost/filename.htm !! while i have no problem when running: http://localhost/filename.php i run this on linux fedora (if this helps or makes a difference)...the files are called from the /var/www/html directory.. thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/241906-no-permission-when-trying-to-call-htm-file-on-local-host/ Share on other sites More sharing options...
gristoi Posted July 13, 2011 Share Posted July 13, 2011 nothing 'mystrious' about it, what permissions are set for the .htm file. run chmod 777 /var/www/html/filename/htm and try again Quote Link to comment https://forums.phpfreaks.com/topic/241906-no-permission-when-trying-to-call-htm-file-on-local-host/#findComment-1242268 Share on other sites More sharing options...
jmahdi Posted July 13, 2011 Author Share Posted July 13, 2011 thanks gristoi it works.... sorry i'm new to linux, do i have to do this every time i boot linux? thanks again Quote Link to comment https://forums.phpfreaks.com/topic/241906-no-permission-when-trying-to-call-htm-file-on-local-host/#findComment-1242272 Share on other sites More sharing options...
gristoi Posted July 13, 2011 Share Posted July 13, 2011 No, you do however need to read up on managing access and permissions in linux. using 777 is a very bad option so dont go using that all of the time. It is basically granting all read and write permissions for that file, and as you can guess can lead to security problems. http://www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/10862-linux-file-permissions.html a starting point Quote Link to comment https://forums.phpfreaks.com/topic/241906-no-permission-when-trying-to-call-htm-file-on-local-host/#findComment-1242307 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.