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.
|