FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » shell script with shell_exec()
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: shell script with shell_exec() [message #180114 is a reply to message #180113] Wed, 09 January 2013 01:22 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 1/8/2013 7:32 PM, Erick Engelke wrote:
>
> I need to run some binaries from within php web pages.
>
> Ironically, it's to convert Word/Excel to PDF, no joke, but open office
> does it pretty easily. No need to buy someone's service.
>
> My problem is, the cli version of PHP executes the scripts perfectly, but
> the FreeBSD Apache module PHP 5.4.7 - which I believe doesn't have the
> safe mode, well it does a SIG_ABORT on the open office binary.
>
> I've been reading web pages all day but don't see how to get around this.
>
> Erick

You really didn't give us much to go on. But my first check would be to
ensure the web server user has sufficient permission to execute Open
Office and it's libraries. Also ensure it can read the file you're
converting from and write access to the directory you're writing to.

Next thing I would check would be the log files for any messages.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Files getting clobbered when I run out of disk space
Next Topic: Weekly PHP Newsletter
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 22:27:15 GMT 2024

Total time taken to generate the page: 0.04711 seconds