I can run the ebook-convert command from comand line and even run
Code:
php convert_test.php
with the following results:
Code:
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/imap.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
ebook-convert content/Fiction/Multi-Cultural/Celtic_Fairy_Tales.txt Celtic_Fairy_Tales.epub1% Converting input to HTML...
InputFormatPlugin: TXT Input running
on /var/www/content/Fiction/Multi-Cultural/Celtic_Fairy_Tales.txt
InputFormatPlugin: HTML Input running
on /var/www/content/Fiction/Multi-Cultural/temp_calibre_txt_input_to_html.html
Language not specified
Creator not specified
Title not specified
Building file list...
Forcing temp_calibre_txt_input_to_html.html into XHTML namespace
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating EPUB Output...
67% Creating EPUB Output
Looking for large trees in temp_calibre_txt_input_to_html.html...
No large trees found
Generating default cover
EPUB output written to /var/www/Celtic_Fairy_Tales.epub
Output saved to /var/www/Celtic_Fairy_Tales.epub
<br>ret_val=0<br><br>OK
where convert_test is the following
Code:
$command = 'ebook-convert content/Fiction/Multi-Cultural/Celtic_Fairy_Tales.txt Celtic_Fairy_Tales.epub';
echo $command;
if( system($command , $ret_val) )
{
echo "<br>ret_val=$ret_val<br>";
echo '<br>OK';
}
else
{
echo '<br>fail';
}
But I can't do it from a browser, (ie from apache). The return value of system is false. No other output. Any ideas?