At 01:55 PM 12/3/1999 -0700, you wrote:
>On Fri, Dec 03, 1999 at 03:17:07PM +0100, Sylvain GIL wrote:
>-> On Thu, Dec 02, 1999 at 05:49:56PM -0700, Charles Curley wrote:
>-> >
>-> > OK, how come the top CGI (which works on my RH 5.2 configuration, and
>-> > should work) does not work on LM 6.1?
>-> >
>-> > This server's uptime is: "<!--#exec cmd="uptime" -->"<p>
>-> > Last modified: <!--#echo var="LAST_MODIFIED" --><p>
>-> >
>-> > I read the docs for suEXEC, but they don't say what directory to put a
>-> > script in. /home/httpd/cgi-bin does not appear to work. It is:
>-> >
>-> > -rwxr--r-- 1 nobody nobody 45 Dec 2 17:42 uptime
>-> >
>-> > and, indeed, apache is running as "nobody". Uptime is a shell script
that
>-> > echos its name.
>-> >
>-> > Any ideas?
>->
>-> You are using Server Side Includes so you must enable mod_include in
>-> your configuration file.
>
>Thanks. It is already enabled. The top SSI does not work; the bottom one
>does, so I think SSIs are working, just not executing external programs
>such as uptime.
>
You can do uptime (and maybe others) with php3 as well. This is the code
for uptime
<?php $uptime = exec("/usr/bin/uptime "); echo (" $uptime"); ?>
You can view the results here (at least til my IP changes) at the bottom.
http://4.3.196.33/index.php3