Results 1 to 3 of 3
Thread: Permission Denied
Aug 26, 2001, 21:12 #1
- Join Date
- Aug 2001
- san francisco, ca
- 0 Post(s)
- 0 Thread(s)
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: