View Single Post
Old 05-03-2010, 07:33 AM   #3
conryf
Member
conryf began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Feb 2010
Device: none
well the php code is:

exec("ebook-convert book.txt book.epub");

I ran it from the command line and it say there is a permissions error writing to the directory. The directory has permissions 755 and is owned by www-data, which is the user php runs as.

If I change the permission to 777, I can get it to work, but only from command line, if I run the page in a browser I get the same permissions error even when the relevant files are 777!

How could you get a permissions errro when the directory is 777!? I'm baffled.
conryf is offline   Reply With Quote