Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 283 of 808  Not logged in ELOG logo
ID Date Icon Author Author Email Category OS ELOG Versiondown Subject
  Draft   Wed Sep 23 23:57:43 2015 Warning Stefanostefano.colafranceschi@gmail.comQuestionLinux3.1.0elog from php

Hi,

I need to run elog command in an online php script. The problem I see is that the script works from the command line but not from the browser. In the script I just use:

system(elog -h mypc -p 8080 -l bla -a Author=\'io\' -a Type=\' ..etc.etc

any suggestions?

  Draft   Thu Sep 24 00:13:31 2015 Warning Stefano colafranceschiStefano.Colafranceschi@gmail.com Linux3.1.0Elog command not working properly
  68124   Thu Sep 24 00:14:49 2015 Warning Stefano colafranceschiStefano.Colafranceschi@gmail.comQuestionLinux3.1.0Elog command not working properly
<p>Hi,</p>

<p>I have a problem running elog command from php script. Basically in the php I call system(&quot;elog -h etc etc.. And from the php command line works but not in the browser apparently without errors (php apache logfile no problem), any suggestions?</p>
  68127   Fri Sep 25 22:37:08 2015 Reply Edmund Hertleedmund.hertle@kit.eduQuestionLinux3.1.0Re: Elog command not working properly
> <p>Hi,</p>
> 
> <p>I have a problem running elog command from php script. Basically in the php I call system(&quot;elog -h etc etc.. And from the php command line works but not in the browser apparently without errors (php apache 
logfile no problem), any suggestions?</p>

Hey,
this sounds more like a PHP issue.
Which PHP version are you using? 
Which webserver? 
Which php function are you using: shell_exec() or exec()? Try looking at the return of exec()
Is the elog file set to the correct file permissions to be executed by the webserver?
Is the elog file in the PHP path or do you take care of defining the correct path?


eddy
  68128   Sat Sep 26 03:34:44 2015 Reply Stefanostefano.colafranceschi@gmail.comQuestionLinux3.1.0Re: Elog command not working properly
Yes it was a path issue PHP was not loading correctly environmental path

> > <p>Hi,</p>
> > 
> > <p>I have a problem running elog command from php script. Basically in the php I call system(&quot;elog -h etc etc.. And from the php command line works but not in the browser apparently without errors (php apache 
> logfile no problem), any suggestions?</p>
> 
> Hey,
> this sounds more like a PHP issue.
> Which PHP version are you using? 
> Which webserver? 
> Which php function are you using: shell_exec() or exec()? Try looking at the return of exec()
> Is the elog file set to the correct file permissions to be executed by the webserver?
> Is the elog file in the PHP path or do you take care of defining the correct path?
> 
> 
> eddy
  68190   Mon Nov 16 20:42:15 2015 Question Ken Ludingtonkludingt@gmail.comQuestionLinux3.1.0resending information confirmation box after refresh interval

After submitting a new post, if the page is left completely alone,, it will after a few minutes prompt that the page needs to resend information.

This is the same prompt you'd get if you attempt to refresh a page that had session variables passsed to it. Example is attached.

Is there something in my config that could cause this?   This is a fresh install of the latest verison however my elogd.cfg file has been migrated throuh many installs over many versions, so it's very possible this is something following along.

thanks.

  68191   Tue Nov 17 08:33:15 2015 Reply Stefan Rittstefan.ritt@psi.chQuestionLinux3.1.0Re: resending information confirmation box after refresh interval

Start with the demo example configuration, add one line after the other from your config, and figure out which is the offending statement in your config, then post a minimal configuration here which triggers the problem.

Ken Ludington wrote:

After submitting a new post, if the page is left completely alone,, it will after a few minutes prompt that the page needs to resend information.

This is the same prompt you'd get if you attempt to refresh a page that had session variables passsed to it. Example is attached.

Is there something in my config that could cause this?   This is a fresh install of the latest verison however my elogd.cfg file has been migrated throuh many installs over many versions, so it's very possible this is something following along.

thanks.

 

  68208   Fri Nov 27 06:53:54 2015 Question David Dunneddunne@seven.com.auQuestionWindows | Other3.1.0If a Required Attribute starts with a number – No CKEditor
Hello, Is the below an issue or am I doing something incorrectly? Creating an attribute starting with a number and then including that attribute in the Required Attribute list prevents access to the CKEditior. This appears to be the case at least with FreeBSD (10.2 Rel) using Elog V3.1.0 and Windows 7 with Elog V3.1.1-3f311c5. The problem can be recreated using the Elog supplied sample config and adding the necessary attribute, sample config showing below. While attribute 7SWM is part of the Required Attributes the CKEditor fails to appear, remove 7SWM from the Required Attributes list and the CKEditor returns. [global] port = 8080 [demo] Theme = default Comment = General Linux Tips & Tricks Attributes = Author, Type, Category, Subject, 7SWM Options Type = Routine, Software Installation, Problem Fixed, Configuration, Other Options Category = General, Hardware, Software, Network, Other Options 7SWM = Name-1, Name-2, Name-3 Extendable Options = Category Required Attributes = Author, Type, 7SWM Page Title = ELOG - $subject Reverse sort = 1 Quick filter = Date, Type Thank you, David Dunne
ELOG V3.1.5-3fb85fa6