brandon272
08-10-2007, 07:15 PM
I have a linux server running WHM/cPanel and am trying to get a front end PHP script to read data from a partition. Is that possible?
ex. Get /home/user/public_html/files.php to read what files and directories are in the /reports partition?
I'm trying to use opendir() and am getting "Permission denied" errors?
Any guidance would be greatly appreciated! :)
Brandon
debiannerd
08-28-2007, 07:32 PM
I have a linux server running WHM/cPanel and am trying to get a front end PHP script to read data from a partition. Is that possible?
ex. Get /home/user/public_html/files.php to read what files and directories are in the /reports partition?
I'm trying to use opendir() and am getting "Permission denied" errors?
Any guidance would be greatly appreciated! :)
Brandon
Hello,
I assume, apache is running under a certain user, right? for example www-data ?
you need to check the permission rights of your partitions (and how it is mounted too in fstab)... careful thought! if that user is compromised, whatever rights you have given it might create security breaches in your system...
another find you could is to mount --bind that partition into the public_html folder - but of course make sure you got the partition permission right correctly set up too!
Hope it helped!
ali