i am using dotproject2.0.4 on fc3.
it is working fine.
but i want to generate pdf file report during this time i face permission denied problem.
Warning: fopen(/var/www/html/dotproject/files/temp/temp1.pdf): failed to open stream: Permission denied in /var/www/html/dotproject/modules/projects/reports/tasklogs.php on line 307
Could not open file to save PDF.
when i run below test php file using command line it will create file at particular location.
Expand|Select|Wrap|Line Numbers
- <?php
- $file = fopen("/var/www/html/dotproject/files/temp/test.txt","w");
- print $file;
- $file1 = fopen("/var/www/html/dotproject/files/temp/test1.pdf","wb");
- print "hai $file1";
- ?>
but when i run this php file in web browser it would not create file.
as i conclude it is problem with related to permission for user.
bec when i run from command line it runs with the permissions of the user who started the script means root if i login as root user.
but from web browser it runs as web browser user.
in my httpd.conf file user and group is as follow
User Apache
Group Apache
how to set permission so web browser user also can access file and create file.
i have change all directory permission to 777 and also test file permission.
/var/www/html/test/
but still it will not working.
it resolves my many issue related to permission.
is there any other issue?
thanks in advance