Welcome to WebmasterWorld Guest from 54.205.251.179

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Problem after Updating

   
12:46 am on Feb 9, 2006 (gmt 0)

10+ Year Member



I have recently done some updates on my server. After that, it's not possible to access the files on a domain from another domain on the same server which I use the folowing for it:

$xyz = '/home/userid/public_html/dir/file.dat';
$abc = implode("," , file($xyz));

The message is:
failed to open stream: Permission denied in /home/userid/public_html/dir/file.dat on line 11

Can anybody help how to fiz it please.

edit: I changed all the permissions to 777 and it works, but I don't want to do it on all files.

1:12 am on Feb 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just make sure the file and directory are readable by the user (or group) that's running the script. Check the permissions and ownerships.
1:16 am on Feb 9, 2006 (gmt 0)

10+ Year Member



Thanks for the answer, but the problem is that nothing is touched manually, except of updates and security runs through cpanel. I think something is changed which I don't know where to find.
9:11 pm on Feb 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Perhaps the security runs changed the permissions or ownerships? Are you running in safe mode?