Hey guys,

 

I've been using PDF2SWF via my command line in Windows for a while now.

For the last week or so, I've been trying to get it to work via a php script
on my Linux box.

 

It's installed fine, and when I run it via ssh (under the 'root' user) it
works fine.

I'm using this simple command, without any extras obviously : pdf2swf
myPDF.pdf

 

I put this same command in a PHP file but was getting no result - no .swf
file nor response.

I've now changed it to give the full location of the pdf2swf command, as in:

 

<?php

$output =
`/var/www/vhosts/mydomain.com.au/httpdocs/pdf2swf/swftools-2008-08-21-2105/s
rc/pdf2swf myPDF.pdf -o myPDF.swf`;

echo "Output pdf2swf: <pre>$output</pre>";

?>

 

This is now giving me the following output:

 

NOTICE  processing PDF page 1 (450x600:0:0) (move:0:0)

NOTICE  Writing SWF file degani.swf

FATAL   Could not create "degani.swf".

 

So it is running fine, but it just can't write out the .swf file.

I've chmod 777 my php file. 

I've tried to set up a sudoers file like so :

apache rushmore = NOPASSWD:
/var/www/vhosts/mydomain.com.au/httpdocs/pdf2swf/swftools-2008-08-21-2105/sr
c/pdf2swf

and use "sudo -u apache /var./pdf2swf/. etc" but I get no output.

 

So the root user can run it, but my webserver (apache) can't.

Do I need to change the owner/group of the install  files?

Do I need to use a sudo command and run it as root?

 

Any help with this would be massively appreciated - I'm so close!

 

Cheers,

 

Mark.

 

  _____  


mark lowe
multimedia director


multimedia resource australia


t:

+61 3 9281 3235 


m:

+61 424257967


e:

 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]


w:

 <http://www.mmr.com.au/> www.mmr.com.au

 

 MMR, Suite 409, 434 St. Kilda Road, Melbourne, 3004

 

Reply via email to