Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #8047 > unrolled thread
| Started by | Erick Engelke <erick@uwaterloo.ca> |
|---|---|
| First post | 2013-01-08 19:32 -0500 |
| Last post | 2013-01-09 03:10 -0800 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.php
shell script with shell_exec() Erick Engelke <erick@uwaterloo.ca> - 2013-01-08 19:32 -0500
Re: shell script with shell_exec() Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-08 20:22 -0500
Re: shell script with shell_exec() Erick Engelke <erick@uwaterloo.ca> - 2013-01-09 09:02 -0500
Re: shell script with shell_exec() The Natural Philosopher <tnp@invalid.invalid> - 2013-01-09 16:20 +0000
Re: shell script with shell_exec() Captain Paralytic <paul_lautman@yahoo.com> - 2013-01-09 03:10 -0800
| From | Erick Engelke <erick@uwaterloo.ca> |
|---|---|
| Date | 2013-01-08 19:32 -0500 |
| Subject | shell script with shell_exec() |
| Message-ID | <20130108192440.O63391@engmail.uwaterloo.ca> |
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
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2013-01-08 20:22 -0500 |
| Message-ID | <kcigo0$85p$1@dont-email.me> |
| In reply to | #8047 |
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@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Erick Engelke <erick@uwaterloo.ca> |
|---|---|
| Date | 2013-01-09 09:02 -0500 |
| Message-ID | <20130109090129.W63391@engmail.uwaterloo.ca> |
| In reply to | #8048 |
On Tue, 8 Jan 2013, Jerry Stuckle wrote: > On 1/8/2013 7:32 PM, Erick Engelke wrote: >> >> I need to run some binaries from within php web pages. >> > You really didn't give us much to go on. Thanks for your help. I figured it out, the www userid didn't have a tempdir/homedir, so setting HOME to /tmp solved it. Erick
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2013-01-09 16:20 +0000 |
| Message-ID | <kck5c0$qp9$1@news.albasani.net> |
| In reply to | #8050 |
On 09/01/13 14:02, Erick Engelke wrote: > > > On Tue, 8 Jan 2013, Jerry Stuckle wrote: > >> On 1/8/2013 7:32 PM, Erick Engelke wrote: >>> >>> I need to run some binaries from within php web pages. >>> >> You really didn't give us much to go on. > > Thanks for your help. I figured it out, the www userid didn't have a > tempdir/homedir, so setting HOME to /tmp solved it. > > Erick makes sense. In such cases having run with /tmp systems in the past that filled up, id be tempted to create something under /var/tmp Unless the files are truly temporary and vanish as fast as they are created.. -- Ineptocracy (in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[toc] | [prev] | [next] | [standalone]
| From | Captain Paralytic <paul_lautman@yahoo.com> |
|---|---|
| Date | 2013-01-09 03:10 -0800 |
| Message-ID | <7d980288-ee2c-442b-8bf9-5034f1cf69a5@d4g2000vbw.googlegroups.com> |
| In reply to | #8047 |
On Jan 9, 12:32 am, Erick Engelke <er...@uwaterloo.ca> 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. For Excel to PDF I use phpExcel. It'll read an Excel file and write it as a PDF. For Word you might be able to do something with phpwordlib.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web