Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
perl scripts (oddmuse)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
xancorreu  
View profile  
 More options Sep 27 2010, 3:59 pm
From: xancorreu <xancor...@gmail.com>
Date: Mon, 27 Sep 2010 21:59:23 +0200
Local: Mon, Sep 27 2010 3:59 pm
Subject: [Cherokee] perl scripts (oddmuse)
Hi,

Is there any way for running perl scripts? I put virtual domain--> rules
--> add --> extensions --> pl --> cgi --> and /usr/bin/perl. But I get
error
504 Gateway Timeout

With thttpd it works.
What can I do?

Thanks,
Xan.

PS: I attach cherokee.conf

------------------------------------------------------------------------

config!version = 001000008
server!bind!1!port = 8081
server!group = www-data
server!keepalive = 1
server!keepalive_max_requests = 500
server!panic_action = /usr/share/cherokee/cherokee-panic
server!pid_file = /var/run/cherokee.pid
server!server_tokens = full
server!timeout = 15
server!user = www-data
vserver!1!directory_index = index.html
vserver!1!document_root = /var/www
vserver!1!error_writer!filename = /var/log/cherokee/cherokee.error
vserver!1!error_writer!type = file
vserver!1!logger = combined
vserver!1!logger!access!buffsize = 16384
vserver!1!logger!access!filename = /var/log/cherokee/cherokee.access
vserver!1!logger!access!type = file
vserver!1!nick = default
vserver!1!rule!105!handler = cgi
vserver!1!rule!105!handler!change_user = 0
vserver!1!rule!105!handler!check_file = 1
vserver!1!rule!105!handler!error_handler = 1
vserver!1!rule!105!handler!pass_req_headers = 1
vserver!1!rule!105!handler!script_alias = /usr/bin/perl
vserver!1!rule!105!handler!xsendfile = 0
vserver!1!rule!105!match = extensions
vserver!1!rule!105!match!check_local_file = 0
vserver!1!rule!105!match!extensions = pl
vserver!1!rule!105!match!final = 1
vserver!1!rule!5!encoder!gzip = allow
vserver!1!rule!5!handler = server_info
vserver!1!rule!5!handler!type = just_about
vserver!1!rule!5!match = directory
vserver!1!rule!5!match!directory = /about
vserver!1!rule!4!document_root = /usr/lib/cgi-bin
vserver!1!rule!4!handler = cgi
vserver!1!rule!4!match = directory
vserver!1!rule!4!match!directory = /cgi-bin
vserver!1!rule!3!document_root = /usr/share/cherokee/themes
vserver!1!rule!3!handler = file
vserver!1!rule!3!match = directory
vserver!1!rule!3!match!directory = /cherokee_themes
vserver!1!rule!2!document_root = /usr/share/cherokee/icons
vserver!1!rule!2!handler = file
vserver!1!rule!2!match = directory
vserver!1!rule!2!match!directory = /icons
vserver!1!rule!1!handler = common
vserver!1!rule!1!handler!iocache = 1
vserver!1!rule!1!match = default
icons!default = page_white.png
icons!directory = folder.png
icons!file!bomb.png = core
icons!file!page_white_go.png = *README*
icons!parent_directory = arrow_turn_left.png
icons!suffix!camera.png = jpg,jpeg,jpe
icons!suffix!cd.png = iso,ngr,cue
icons!suffix!color_wheel.png = png,gif,xcf,bmp,pcx,tiff,tif,cdr,psd,xpm,xbm
icons!suffix!control_play.png = bin,exe,com,msi,out
icons!suffix!css.png = css
icons!suffix!cup.png = java,class,jar
icons!suffix!email.png = eml,mbox,box,email,mbx
icons!suffix!film.png = avi,mpeg,mpe,mpg,mpeg3,dl,fli,qt,mov,movie,flv,webm
icons!suffix!font.png = ttf
icons!suffix!html.png = html,htm
icons!suffix!music.png = au,snd,mid,midi,kar,mpga,mpega,mp2,mp3,sid,wav,aif,aiff,aifc,gsm,m3u,wma,wa x,ra,rm,ram,pls,sd2,ogg
icons!suffix!package.png = tar,gz,bz2,zip,rar,ace,lha,Z,7z
icons!suffix!page_white_acrobat.png = pdf
icons!suffix!page_white_c.png = c,h,cpp
icons!suffix!page_white_office.png = doc,ppt,xls
icons!suffix!page_white_php.png = php
icons!suffix!page_white_text.png = txt,text,rtf,sdw
icons!suffix!printer.png = ps,eps
icons!suffix!ruby.png = rb
icons!suffix!script.png = sh,csh,ksh,tcl,tk,py,pl
mime!application/bzip2!extensions = bz2
mime!application/gzip!extensions = gz
mime!application/hta!extensions = hta
mime!application/java-archive!extensions = jar
mime!application/java-serialized-object!extensions = ser
mime!application/java-vm!extensions = class
mime!application/json!extensions = json
mime!application/mac-binhex40!extensions = hqx
mime!application/msaccess!extensions = mdb
mime!application/msword!extensions = doc,dot
mime!application/octet-stream!extensions = bin
mime!application/octetstream!extensions = ace
mime!application/oda!extensions = oda
mime!application/ogg!extensions = ogx
mime!application/pdf!extensions = pdf
mime!application/pgp-keys!extensions = key
mime!application/pgp-signature!extensions = pgp
mime!application/pics-rules!extensions = prf
mime!application/postscript!extensions = ps,ai,eps
mime!application/rar!extensions = rar
mime!application/rdf+xml!extensions = rdf
mime!application/rss+xml!extensions = rss
mime!application/smil!extensions = smi,smil
mime!application/vnd.mozilla.xul+xml!extensions = xul
mime!application/vnd.ms-excel!extensions = xls,xlb,xlt
mime!application/vnd.ms-pki.seccat!extensions = cat
mime!application/vnd.ms-pki.stl!extensions = stl
mime!application/vnd.ms-powerpoint!extensions = ppt,pps
mime!application/vnd.oasis.opendocument.chart!extensions = odc
mime!application/vnd.oasis.opendocument.database!extensions = odb
mime!application/vnd.oasis.opendocument.formula!extensions = odf
mime!application/vnd.oasis.opendocument.graphics!extensions = odg
mime!application/vnd.oasis.opendocument.image!extensions = odi
mime!application/vnd.oasis.opendocument.presentation!extensions = odp
mime!application/vnd.oasis.opendocument.spreadsheet!extensions = ods
mime!application/vnd.oasis.opendocument.text!extensions = odt
mime!application/vnd.oasis.opendocument.text-master!extensions = odm
mime!application/vnd.oasis.opendocument.text-web!extensions = oth
mime!application/vnd.pkg5.info!extensions = p5i
mime!application/vnd.visio!extensions = vsd
mime!application/vnd.wap.wbxml!extensions = wbxml
mime!application/vnd.wap.wmlc!extensions = wmlc
mime!application/vnd.wap.wmlscriptc!extensions = wmlsc
mime!application/x-7z-compressed!extensions = 7z
mime!application/x-abiword!extensions = abw
mime!application/x-apple-diskimage!extensions = dmg
mime!application/x-bcpio!extensions = bcpio
mime!application/x-bittorrent!extensions = torrent
mime!application/x-cdf!extensions = cdf
mime!application/x-cpio!extensions = cpio
mime!application/x-csh!extensions = csh
mime!application/x-debian-package!extensions = deb,udeb
mime!application/x-director!extensions = dcr,dir,dxr
mime!application/x-dvi!extensions = dvi
mime!application/x-flac!extensions = flac
mime!application/x-font!extensions = pfa,pfb,gsf,pcf,pcf.Z
mime!application/x-freemind!extensions = mm
mime!application/x-gnumeric!extensions = gnumeric
mime!application/x-gtar!extensions = gtar,tgz,taz
mime!application/x-gzip!extensions = gz,tgz
mime!application/x-httpd-php!extensions = phtml,pht,php
mime!application/x-httpd-php-source!extensions = phps
mime!application/x-httpd-php3!extensions = php3
mime!application/x-httpd-php3-preprocessed!extensions = php3p
mime!application/x-httpd-php4!extensions = php4
mime!application/x-internet-signup!extensions = ins,isp
mime!application/x-iphone!extensions = iii
mime!application/x-iso9660-image!extensions = iso
mime!application/x-java-jnlp-file!extensions = jnlp
mime!application/x-javascript!extensions = js
mime!application/x-kchart!extensions = chrt
mime!application/x-killustrator!extensions = kil
mime!application/x-koan!extensions = skp,skd,skt,skm
mime!application/x-kpresenter!extensions = kpr,kpt
mime!application/x-kspread!extensions = ksp
mime!application/x-kword!extensions = kwd,kwt
mime!application/x-latex!extensions = latex
mime!application/x-lha!extensions = lha
mime!application/x-lzh!extensions = lzh
mime!application/x-lzx!extensions = lzx
mime!application/x-ms-wmd!extensions = wmd
mime!application/x-ms-wmz!extensions = wmz
mime!application/x-msdos-program!extensions = com,exe,bat,dll
mime!application/x-msi!extensions = msi
mime!application/x-netcdf!extensions = nc
mime!application/x-ns-proxy-autoconfig!extensions = pac
mime!application/x-nwc!extensions = nwc
mime!application/x-object!extensions = o
mime!application/x-oz-application!extensions = oza
mime!application/x-pkcs7-certreqresp!extensions = p7r
mime!application/x-pkcs7-crl!extensions = crl
mime!application/x-python-code!extensions = pyc,pyo
mime!application/x-quicktimeplayer!extensions = qtl
mime!application/x-redhat-package-manager!extensions = rpm
mime!application/x-sh!extensions = sh
mime!application/x-shar!extensions = shar
mime!application/x-shockwave-flash!extensions = swf,swfl
mime!application/x-stuffit!extensions = sit,sea
mime!application/x-sv4cpio!extensions = sv4cpio
mime!application/x-sv4crc!extensions = sv4crc
mime!application/x-tar!extensions = tar
mime!application/x-tcl!extensions = tcl
mime!application/x-tex-pk!extensions = pk
mime!application/x-texinfo!extensions = texinfo,texi
mime!application/x-trash!extensions = ~,bak,old,sik
mime!application/x-troff!extensions = t,tr,roff
mime!application/x-troff-man!extensions = man
mime!application/x-troff-me!extensions = me
mime!application/x-troff-ms!extensions = ms
mime!application/x-ustar!extensions = ustar
mime!application/x-x509-ca-cert!extensions = crt
mime!application/x-xcf!extensions = xcf
mime!application/x-xfig!extensions = fig
mime!application/x-xpinstall!extensions = xpi
mime!application/xhtml+xml!extensions = xhtml,xht
mime!application/xml!extensions = xml,xsl
mime!application/zip!extensions = zip
mime!audio/basic!extensions = au,snd
mime!audio/midi!extensions = mid,midi,kar
mime!audio/mpeg!extensions = mpga,mpega,mp2,mp3,m4a
mime!audio/ogg!extensions = ogg,oga
mime!audio/prs.sid!extensions = sid
mime!audio/x-aiff!extensions = aif,aiff,aifc
mime!audio/x-gsm!extensions = gsm
mime!audio/x-mpegurl!extensions = m3u
mime!audio/x-ms-wax!extensions = wax
mime!audio/x-ms-wma!extensions = wma
mime!audio/x-pn-realaudio!extensions = ra,rm,ram
mime!audio/x-realaudio!extensions = ra
mime!audio/x-scpls!extensions = pls
mime!audio/x-sd2!extensions = sd2
mime!audio/x-wav!extensions = wav
mime!chemical/x-cache!extensions = cac,cache
mime!chemical/x-cache-csf!extensions = csf
mime!chemical/x-cdx!extensions = cdx
mime!chemical/x-cif!extensions = cif
mime!chemical/x-cmdf!extensions = cmdf
mime!chemical/x-cml!extensions = cml
mime!chemical/x-compass!extensions = cpa
mime!chemical/x-crossfire!extensions = bsd
...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xan xan  
View profile  
 More options Oct 1 2010, 2:48 pm
From: Xan xan <xancor...@gmail.com>
Date: Fri, 1 Oct 2010 20:48:31 +0200
Local: Fri, Oct 1 2010 2:48 pm
Subject: Re: [Cherokee] perl scripts (oddmuse)
Anyone could help me?

Regards,
Xan.

2010/9/27 xancorreu <xancor...@gmail.com>:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xancorreu  
View profile  
 More options Oct 3 2010, 5:22 am
From: xancorreu <xancor...@gmail.com>
Date: Sun, 03 Oct 2010 11:22:25 +0200
Local: Sun, Oct 3 2010 5:22 am
Subject: Re: [Cherokee] perl scripts (oddmuse)
  Well, guys, If no one could help me, I will to try other web server
with less annoying cgi configuration (lighttpd or thttpd). I want to try
cherokee because it's clear more faster.

Xan.

Al 27/09/10 21:59, En/na xancorreu ha escrit:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan J. Martínez  
View profile  
 More options Oct 3 2010, 5:27 am
From: "Juan J." Martínez <reid...@usebox.net>
Date: Sun, 03 Oct 2010 10:27:27 +0100
Local: Sun, Oct 3 2010 5:27 am
Subject: Re: [Cherokee] perl scripts (oddmuse)
El dom, 03-10-2010 a las 11:22 +0200, xancorreu escribió:

> Well, guys, If no one could help me, I will to try other web server
> with less annoying cgi configuration (lighttpd or thttpd). I want to try
> cherokee because it's clear more faster.

I don't think you have the same problem than David (check that thread)
because "vserver!1!rule!105!handler!change_user" it's 0 in your
configuration.

You're running Cherokee as www-data:www-data, so I'd check permissions
first. Can www-data user run the command you have setup in the
script_alias to execute any of the pl files?

# su -m www-data -
$ /usr/bin/perl /whatever/file.pl

Does it work?

Cheers,

Juanjo

--
jjm's home: http://www.usebox.net/jjm/
blackshell: http://blackshell.usebox.net/
 ramble on: http://rambleon.usebox.net/

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xancorreu  
View profile  
 More options Oct 4 2010, 10:30 am
From: xancorreu <xancor...@gmail.com>
Date: Mon, 04 Oct 2010 16:30:32 +0200
Local: Mon, Oct 4 2010 10:30 am
Subject: Re: [Cherokee] perl scripts (oddmuse)
Al 03/10/10 11:27, En/na Juan J. Martínez ha escrit:

I don't think so: thttpd is running with www-data and all is ok.
oddmuse.pl has chown to www-data:www-data.

The output is:

www-data@negre:~$ /usr/bin/perl /var/www/wiki/wiki.pl
Status: 404 NOT FOUND
Etag: 1283270329
Cache-control: max-age=10
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Servidor:wiki:
Inici</title><link rel="alternate" type="application/wiki" title="Edit
this page" href="http://localhost?action=edit;id=" /><link
type="text/css" rel="stylesheet"
href="http://www.oddmuse.org/oddmuse.css" /><meta name="robots"
content="INDEX,FOLLOW" /><link rel="alternate"
type="application/rss+xml" title="Servidor:wiki"
href="http://localhost?action=rss" /><meta http-equiv="Content-Type"
content="text/html; charset=UTF-8"/></head><body
class="http://localhost"><div class="header"><span class="gotobar
bar"><a class="local" href="http://localhost/Inici">Inici</a> <a
class="local"
href="http://localhost/MostraHistorial">MostraHistorial</a>
</span><h1><a title="Click to search for references to this page"
rel="nofollow"
href="http://localhost?search=%22Inici%22">Inici</a></h1></div><div
class="wrapper"><div class="content browse"><p>[Aquesta pàgina és
buida]</p></div><div class="wrapper close"></div></div><div
class="footer"><hr /><span class="gotobar bar"><a class="local"
href="http://localhost/Inici">Inici</a> <a class="local"
href="http://localhost/MostraHistorial">MostraHistorial</a> </span><span
class="edit bar"><br /> <a class="edit" accesskey="e" title="Click to
edit this page" rel="nofollow"
href="http://localhost?action=edit;id=Inici">Edit this page</a> <a
class="history" rel="nofollow"
href="http://localhost?action=history;id=Inici">View other revisions</a>
<a class="admin" rel="nofollow"
href="http://localhost?action=admin;id=Inici">Administration</a></span><form
method="get" action="http://localhost" enctype="multipart/form-data"
class="search">
<p><label for="search">Search:</label> <input type="text" name="search"  
size="20" accesskey="f" id="search" /> <input type="submit"
name="dosearch" value="Go!" /></p></form></div>
</body>
</html>
www-data@negre:~$

Is this help you?

Thanks for answering.
Xan.
_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan J. Martínez  
View profile   Translate to Translated (View Original)
 More options Oct 4 2010, 10:34 am
From: "Juan J." Martínez <reid...@usebox.net>
Date: Mon, 04 Oct 2010 15:34:26 +0100
Local: Mon, Oct 4 2010 10:34 am
Subject: Re: [Cherokee] perl scripts (oddmuse)
El lun, 04-10-2010 a las 16:30 +0200, xancorreu escribió:

> [...]

> I don't think so: thttpd is running with www-data and all is ok.
> oddmuse.pl has chown to www-data:www-data.

I have almost the same configuration in a couple of scripts, and it
works perfectly.

But I can see a difference, I'm not using "Script Alias" but instead the
CGI has the executable bit and starts with the comment that provides the
shell the interpreter to run the script (#!/usr/bin/perl).

I would try to remove the "Script Alias" part and check the executable
bit and starting line of the script.

Moreover there's a warning in Cherokee documentation about "Check file":

http://www.cherokee-project.com/doc/modules_handlers_cgi.html

This kind of problems can be solved easily adding some trace information
in the CGI (is it executed? if so, what's happening?). Currently, a 504
error isn't enough (I guess it means the script it's executed but after
some time nothing happens).

Kind regards,

Juanjo

--
jjm's home: http://www.usebox.net/jjm/
blackshell: http://blackshell.usebox.net/
 ramble on: http://rambleon.usebox.net/

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xancorreu  
View profile  
 More options Oct 6 2010, 11:10 am
From: xancorreu <xancor...@gmail.com>
Date: Wed, 06 Oct 2010 17:10:11 +0200
Local: Wed, Oct 6 2010 11:10 am
Subject: Re: [Cherokee] perl scripts (oddmuse)
Al 04/10/10 16:34, En/na Juan J. Martínez ha escrit:

Without "Script Alias" oddmuse (current.pl) runs but my wiki.pl does not:

wiki.pl contains are:
#! /usr/bin/perl
package OddMuse;
$DataDir = '/var/www/wiki/wikidata';
$ConfigFile = '/var/www/wiki/wikicmd/oddmuseconfig';
do '/var/www/wiki/wikicmd/current.pl';

Why?

Xan.
_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan J. Martínez  
View profile  
 More options Oct 6 2010, 11:09 am
From: "Juan J." Martínez <reid...@usebox.net>
Date: Wed, 06 Oct 2010 16:09:53 +0100
Local: Wed, Oct 6 2010 11:09 am
Subject: Re: [Cherokee] perl scripts (oddmuse)
El mié, 06-10-2010 a las 17:10 +0200, xancorreu escribió:

   ^^
 Remove those spaces.

Cheers,

Juanjo

--
jjm's home: http://www.usebox.net/jjm/
blackshell: http://blackshell.usebox.net/
 ramble on: http://rambleon.usebox.net/

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
xancorreu  
View profile  
 More options Oct 6 2010, 1:04 pm
From: xancorreu <xancor...@gmail.com>
Date: Wed, 06 Oct 2010 19:04:19 +0200
Local: Wed, Oct 6 2010 1:04 pm
Subject: Re: [Cherokee] perl scripts (oddmuse)
En/na Juan J. Martínez ha escrit:

>> Without "Script Alias" oddmuse (current.pl) runs but my wiki.pl does not:

>> wiki.pl contains are:
>> #! /usr/bin/perl

>    ^^
>  Remove those spaces.

> Cheers,

> Juanjo

Yes, it works. Thanks a lot,
Xan.

_______________________________________________
Cherokee mailing list
Chero...@lists.octality.com
http://lists.octality.com/listinfo/cherokee


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »