miloafg Posted June 16, 2015 Share Posted June 16, 2015 Warning: include_once(/var/www/html/scripts/klassementscript.php): failed to open stream: Permission denied in /var/www/html/klassement.php on line 90 Warning: include_once(): Failed opening 'scripts/klassementscript.php' for inclusion (include_path='.') in /var/www/html/klassement.php on line 90 can anyone help me with this? Quote Link to comment https://forums.phpfreaks.com/topic/296852-php-permission-denied/ Share on other sites More sharing options...
Solution Muddy_Funster Posted June 16, 2015 Solution Share Posted June 16, 2015 the php user account on the server does not have read/execute permission for either those files or their containing folder. Just fix the permissions and you should be good to go. Quote Link to comment https://forums.phpfreaks.com/topic/296852-php-permission-denied/#findComment-1514052 Share on other sites More sharing options...
miloafg Posted June 16, 2015 Author Share Posted June 16, 2015 yeah thanks the problem is now solved:) Quote Link to comment https://forums.phpfreaks.com/topic/296852-php-permission-denied/#findComment-1514061 Share on other sites More sharing options...
jazzman1 Posted June 16, 2015 Share Posted June 16, 2015 the php user account on the server does not have read/execute permission for either those files or their containing folder. Just fix the permissions and you should be good to go. Well, I have the same problem [newuser@centos-box ~]$ whoami newuser [newuser@centos-box ~]$ touch file.php [newuser@centos-box ~]$ ls -l file.php -rwxrwxr-x. 1 newuser newuser 0 Jun 16 07:55 file.php [newuser@centos-box ~]$ ./file.php bash: Permission denied Quote Link to comment https://forums.phpfreaks.com/topic/296852-php-permission-denied/#findComment-1514064 Share on other sites More sharing options...
Muddy_Funster Posted June 16, 2015 Share Posted June 16, 2015 I haven't run php direct from the console before, so we're well out my comfort zone, does it run under the logged in user or does it still need the php user account to launch? I'm hoping the latter as that at least makes sense to why it would still be denied. even though you are allowed to execute the script, php itself is not...that's what I'm thinking anyway. Quote Link to comment https://forums.phpfreaks.com/topic/296852-php-permission-denied/#findComment-1514072 Share on other sites More sharing options...
jazzman1 Posted June 16, 2015 Share Posted June 16, 2015 fucking linux Quote Link to comment https://forums.phpfreaks.com/topic/296852-php-permission-denied/#findComment-1514108 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.