Welcome to WebmasterWorld Guest from 23.20.147.6

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Problem after Updating

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

New User

10+ Year Member

joined:Mar 9, 2005
posts:35
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 20, 2004
posts:880
votes: 2


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)

New User

10+ Year Member

joined:Mar 9, 2005
posts:35
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 20, 2004
posts:880
votes: 2


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members