Re: Perl displayed as text, Not HTML

2019-09-30 Thread Nicolas George
Dan Ritter (12019-09-30):
> Anyway: you need a perl module to run perl CGI:
> libapache2-mod-perl2

This is not true at all.

To run a CGI, the web server does not need anything specific. CGI are
external programs following a specific convention (environment variables
and output). Running a CGI written in perl requires a perl interpreter,
which I doubt you can avoid on Debian anyway.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature


Re: Perl displayed as text, Not HTML

2019-09-30 Thread Dan Ritter
Dave wrote: 
> hello
> 
> when a .pl file or .cgi file is clicked on  to our server, apache is
> serving back a text code page, not html
> 
> all of our sites were working under the old service Deb 4, our new
> Server Deb 9.x has a setting off.
> 
> we have included a link to our http.conf file.
> 
> http://culser.com/ex/apache2.txt
> 
> 
> please advise.

This:

Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/mods-available/socache_dbm.load
Include /etc/apache2/mods-available/socache_memcache.load
Include /etc/apache2/mods-available/socache_shmcb.load
Include /etc/apache2/mods-available/ssl.load
Include /etc/apache2/mods-available/ssl.conf
Include /etc/apache2/mods-available/usertrack.load
Include /etc/apache2/mods-available/rewrite.load

means you don't understand that mechanism.

Keep all the files in mods-available. Create symlinks to them
from mods-enabled when you want them to take effect.

Same approach goes for site-enabled/available and
conf-enabled/available.

Anyway: you need a perl module to run perl CGI:
libapache2-mod-perl2

and you need to enable CGI in each directory that you want it
in via something like

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted


Jumping from Debian 4 to Debian 9 is really big; among other
things, you definitely went from a 1.x series Apache to a 2.4
series Apache.

-dsr-



Perl displayed as text, Not HTML

2019-09-30 Thread Dave

hello

when a .pl file or .cgi file is clicked on  to our server, apache is
serving back a text code page, not html

all of our sites were working under the old service Deb 4, our new
Server Deb 9.x has a setting off.

we have included a link to our http.conf file.

http://culser.com/ex/apache2.txt


please advise.



Re: text to html

2010-07-06 Thread Richard Hector
On Sat, 2010-07-03 at 11:07 +0200, Jozsi Avadkan wrote:
 input:
 http://pastebin.com/raw.php?i=MqPXZwc3
 
 output:
 http://pastebin.com/raw.php?i=8QCkp4yv

Just for fun:
perl -ne 'm{^(([^/]*).*/([^/]*).html)}; exit unless defined($2); if ($d ne 
$2){defined($d)  print br\n; $d = $2; print brfont 
size=4$d/fontbr\n;} print qq{a href=$1$3/a | \n};'  input  output

Some tweaks required depending on whether you do or don't want trailing
|'s and/or trailing spaces, and I agree there are 2 entries in your
sample output that don't match :-)

Richard



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1278411378.30144.7.ca...@diamond.lan.walnut.gen.nz



text to html

2010-07-03 Thread Jozsi Avadkan
input:
http://pastebin.com/raw.php?i=MqPXZwc3

output:
http://pastebin.com/raw.php?i=8QCkp4yv

it will be a long day.. :D

could someone please help with it?

i have to make a one liner that get's the input, and gives the
mentioned output.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1278148046.4480.4.ca...@localhost



Re: text to html

2010-07-03 Thread Jozsi Avadkan
my own solution: http://pastebin.com/raw.php?i=kqQXCpD5

 input:
 http://pastebin.com/raw.php?i=MqPXZwc3
 
 output:
 http://pastebin.com/raw.php?i=8QCkp4yv
 
 it will be a long day.. :D
 
 could someone please help with it?
 
 i have to make a one liner that get's the input, and gives the
 mentioned output.
 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1278177025.5667.4.ca...@localhost



Re: text to html

2010-07-03 Thread Gabor Heja

Hi!

I have written a solution myself, but before replying your mail I noticed
you needed a one-liner and have discarded my e-mail. Since your solution is
not a real one-liner I tought I should send it anyway :)

Here it is:
http://www.pastebin.org/379120

The output differs a bit (and two lines might be wrong in the original
output),
the extraction of the title is ugly, but it may fit your needs.

Regards,
 Gabor

PS: Egy helyen elfelejtetted lecserélni a bazdmeg.html-t :)


On Sat, 03 Jul 2010 19:10:25 +0200, Jozsi Avadkan jozsi.avad...@gmail.com
wrote:
 my own solution: http://pastebin.com/raw.php?i=kqQXCpD5
 
 input:
 http://pastebin.com/raw.php?i=MqPXZwc3
 
 output:
 http://pastebin.com/raw.php?i=8QCkp4yv
 
 it will be a long day.. :D
 
 could someone please help with it?
 
 i have to make a one liner that get's the input, and gives the
 mentioned output.
 
 
 



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/b171c114f4f1eae5f9a06a3832f13...@localhost



How can I filter text from HTML?

2004-03-29 Thread William Ballard
I'd like to remove all instances of the text Froogle from all web 
pages from google.com.  What software in Debian can do it?  I expect I 
need something like a proxy.

I'd like the least-impactful, lightest-weight solution, ala Dnsmasq.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]