|
From: | cleusonredes |
Subject: | Re: [shell-script] Script em pagina web |
Date: | Tue, 2 Jun 2015 03:25:37 +0000 (UTC) |
Boa noite pessoal,estou tentando executar um script de teste em meu PC local, mas aparece a seguinte mensagem:" The requested URL /usr/lib/cgi-bin/cmd.cgi was not found on this server."Fiz os seguintes passos:1) Instalei o apache em meu pc com o Ubuntu 14.102) Criei dentro de ' /usr/lib/cgi-bin' o arquivo 'cmd.cgi' com o conteúdo#!/bin/bash
echo "content-type: text/plain"
echo
echo "uname -a"
echo
uname -a3) chmod +x /usr/lib/cgi-bin/cmd.cgi4) Entrei 'http://localhost/cgi-bin/cmd.cgi' mas dá a mensagem acima.Obs: O apache está rodando# ps -aux | grep apache2
root 6834 0.0 0.1 5776 4120 ? Ss 17:33 0:00 /usr/sbin/apache2 -k start
www-data 6837 0.0 0.1 229492 4360 ? Sl 17:33 0:00 /usr/sbin/apache2 -k start
www-data 6838 0.0 0.1 230540 4464 ? Sl 17:33 0:00 /usr/sbin/apache2 -k start
root 7009 0.0 0.0 4488 2044 pts/8 S+ 18:00 0:00 grep --color=auto apache2Tem mais alguma coisa que devo fazer?Desde já Grato.
[Prev in Thread] | Current Thread | [Next in Thread] |