-
SitePoint Enthusiast
Permission Denied
Hi,
I get this error when my script tries to write to directory /newsdata
Warning: fopen("/home/sites/site1/web/newsdata/ArticleCat.wmn","w") - Permission denied in /home/sites/site1/web/newsadmin/wmnews.php on line 356
Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site1/web/newsadmin/wmnews.php on line 357
Warning: Supplied argument is not a valid File-Handle resource in /home/sites/site1/web/newsadmin/wmnews.php on line 358
directory is chmod to 777 and mysql user has been granted all priviledges.
Someone suggested that "the apache run in other user , and not in your user" and I have to chown user:group /path/dir/file.php
But what does it have to do with mysql? Mysql is using another set of username and pass.
Lines 357 and 358 as follows:
$contents.="</td></tr></table></td></tr></table>";
$fn=trim($article_catfile);
Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks