[CWB] CQPweb

Martí Quixal marti.quixal at gmail.com
Tue Oct 9 16:32:06 CEST 2012


Hi Andrew,

I checked that to, and it seems everything is ok there too:


/* adminstrators' usernames, separated by | */
/*$superuser_username = 'spintexweb|spintxweb';*/
$superuser_username = 'spintexweb';

The second line is because at some point I tried to use to the other user.

What shall I try no?

a) reinstall CQPWeb from scratch?
b) try to debug php code?

Other alternatives?

Thanks in advance!
Martí



On Sun, Oct 7, 2012 at 1:57 PM, <cwb-request at sslmit.unibo.it> wrote:

> Send CWB mailing list submissions to
>         cwb at sslmit.unibo.it
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://devel.sslmit.unibo.it/mailman/listinfo/cwb
> or, via email, send a message with subject or body 'help' to
>         cwb-request at sslmit.unibo.it
>
> You can reach the person managing the list at
>         cwb-owner at sslmit.unibo.it
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of CWB digest..."
>
>
> Today's Topics:
>
>    1. Re: CQPweb (Hardie, Andrew)
>    2. Re: CQP: shared collocates (Aleksandar Trklja)
>    3. Re: CQPweb (Andr?s Chand?a)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 7 Oct 2012 12:51:12 +0000
> From: "Hardie, Andrew" <a.hardie at lancaster.ac.uk>
> To: Open source development of the Corpus WorkBench
>         <cwb at sslmit.unibo.it>
> Subject: Re: [CWB] CQPweb
> Message-ID:
>         <28078EC3FBF1B940A3EF3D0D19BE351D0D1A8D at EX-0-MB1.lancs.local>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Mart?,
>
> This is not a problem with user permissions or the Apache logon, it is a
> problem within the CQPweb code itself.
>
> Find the file config.inc.php in the lib directory and check the line that
> declares the superuser. It should  look like this:
>
> $superuser_username = 'spintexweb';
>
> Does it?
>
> Since in your earlier mail you say that you mistyped the username first
> time round, I guess the problem is here.
>
> (IT?s best to avoid usernames with hyphens in them, by the way; and the
> absence of the CSS file has nothing to do with the issue!)
>
> best
>
> Andrew.
>
> From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it>
> [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Mart? Quixal
> Sent: 07 October 2012 12:52
> To: cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>
> Subject: Re: [CWB] CQPweb
>
> Hi Andres, hi Andrew,
>
> I wrote a few hours ago, but it seems that my problem is similar to
> Andres', when he could log in with admin2. The difference is that I cannot
> log in even with admin (in my case called spintexweb)
>
> file .htgroup
> superusers: spintexweb
>
> file .htpasswd
> spintexweb:$apr1$JXkH5IeU$RnOa/bUHrsgV3ZqnRQhDc.
>
> file: ../adm/.htacces
> AuthUserFile ../AccessData/.htpasswd
>         AuthGroupFile ../AccessData/.htgroup
>         AuthName CQPweb
>         AuthType Basic
>         deny from all
>         require group superusers
>         satisfy any
>
> My problem is that http://localhost/spintx-web/adm/ does not load:
>
>
> CQPweb encountered an error and could not continue.
>
> You do not have permission to use this program.
>
> And in principle all user permissions are set ok for apache2's user as
> well as for mysql user (I created a group called cqpweb, which they all
> belong too):
>
> /Library/WebServer/Documents/spintx-web/adm
>
> sh-3.2# ls -l
>
> -rw-rw-r--  1 root       cqpweb  181 Oct  6 08:29 .htaccess
>
> -rw-rw-r--  1 spintxweb  cqpweb   51 Jun 11  2009 index.php
>
> -rw-rw-r--  1 spintxweb  cqpweb    9 Jun 11  2009 settings.inc.php
>
> Is there something you can suggest?
>
> Best
>
> mq
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121007/2a6295b2/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Sun, 7 Oct 2012 13:00:32 +0000
> From: Aleksandar Trklja <AXT899 at bham.ac.uk>
> To: Open source development of the Corpus WorkBench
>         <cwb at sslmit.unibo.it>
> Subject: Re: [CWB] CQP: shared collocates
> Message-ID:
>         <A584B1A99417C443AD247357ADAEEE050A863AFE at mbx01.adf.bham.ac.uk>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Mart?,
>
> thank you for your reply. I'm sorry my question was unclear.
>
> What I mean with 'shared collocates' are the collocates that occur both
> with a word x and a word y. Say I want to find the collocates that 'almost'
> and 'nearly' share. The '|' function will show the collocates that occur
> with either of the two but not with both (e.g. 'almost' occurs with
> 'certainly' but not with 'nearly'). So I guess I'd need here something like
> an 'AND' function instead of 'OR'.
>
> Cheers
> Alex
>
>
>
> ________________________________________
> From: cwb-bounces at sslmit.unibo.it [cwb-bounces at sslmit.unibo.it] on behalf
> of Mart? Quixal [marti.quixal at gmail.com]
> Sent: 07 October 2012 13:01
> To: cwb at sslmit.unibo.it
> Subject: Re: [CWB] CQP: shared collocates (Aleksandar Trklja)
>
> Hi Aleksander,
>
> I don't know if I understand your question, but do you mean this?
>
> DICKENS> ".*" "year|people";
> 2077 matches. Use 'cat' to show.
> DICKENS> group Last match lemma;
> #---------------------------------------------------------------------
> (none)                        the                                  355
>                               of                                   168
>                               a                                    150
>                               other                                100
>                               some                                  65
> (...)
>
> For more on group check this:
> http://cwb.sourceforge.net/files/CQP_Tutorial/node20.html
>
> Best
> mq
> On Sun, Oct 7, 2012 at 5:00 AM, <cwb-request at sslmit.unibo.it<mailto:
> cwb-request at sslmit.unibo.it>> wrote:
> Send CWB mailing list submissions to
>         cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://devel.sslmit.unibo.it/mailman/listinfo/cwb
> or, via email, send a message with subject or body 'help' to
>         cwb-request at sslmit.unibo.it<mailto:cwb-request at sslmit.unibo.it>
>
> You can reach the person managing the list at
>         cwb-owner at sslmit.unibo.it<mailto:cwb-owner at sslmit.unibo.it>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of CWB digest..."
>
>
> Today's Topics:
>
>    1.  CQP: shared collocates (Aleksandar Trklja)
>    2. Installing CQPWeb (Mart? Quixal)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 6 Oct 2012 09:12:46 +0000
> From: Aleksandar Trklja <AXT899 at bham.ac.uk<mailto:AXT899 at bham.ac.uk>>
> To: Open source development of the Corpus WorkBench
>         <cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>>
> Subject: [CWB]  CQP: shared collocates
> Message-ID:
>         <A584B1A99417C443AD247357ADAEEE050A863A80 at mbx01.adf.bham.ac.uk
> <mailto:A584B1A99417C443AD247357ADAEEE050A863A80 at mbx01.adf.bham.ac.uk>>
> Content-Type: text/plain; charset="us-ascii"
>
> Dear all,
>
> is it possible to produce with CQP a list that contains only shared
> collocates of two or more lexical items?
>
> Many thanks for your help.
>
> Best
> Alex
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 6 Oct 2012 21:48:22 -0500
> From: Mart? Quixal <marti.quixal at gmail.com<mailto:marti.quixal at gmail.com>>
> To: cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>
> Subject: [CWB] Installing CQPWeb
> Message-ID:
>         <
> CAMtTwm8Nb5H4eHvtRPfvf+6qc+QSZSqMzRM+5++RgvsSToGg9w at mail.gmail.com<mailto:
> CAMtTwm8Nb5H4eHvtRPfvf%2B6qc%2BQSZSqMzRM%2B5%2B%2BRgvsSToGg9w at mail.gmail.com
> >>
> Content-Type: text/plain; charset="utf-8"
>
> Dear list members,
>
> I am installing CQPWeb, and everything seemed to be ok until I typed the
> url in my browser:
>
> http://localhost/spintx-web/adm
>
> Then I got this message:
>
> CQPweb encountered an error and could not continue.
> You do not have permission to use this program.
>
> And then I looked into the apache error log and saw this other info:
>
> [Sat Oct 06 21:34:32 2012] [error] [client ::1] File does not exist:
> /Library/WebServer/Documents/spintx-web/css/CQPweb.css, referer:
> http://localhost/spintx-web/adm/
>
> My questions are:
>
> 1) Could this missing css file be causing the problem? (sounds weird...)
> so...
>
> 2) I used the automatic php configuration file and when the script asked
> for a user I gave a user that did not exist as a system user (I mistyped
> it, spintex-web instead of spintx-web). I added manually the system user I
> wanted to use, just in case, but this does not seem to improve anything.
> Then I had the impression that the user created with the automatic php
> config file is only a CQPWeb admin not a system user, am I wrong?
>
> So, do you have any recommendation? What else should I be looking to?
>
> I am running the whole thing (apache2, mysql, php, cwb tools, etc.) in the
> latest version (also CQPWeb from svn, not download link) on a Mac OSX
> 10.7.5.
>
> - PHP 5.3.15 with Suhosin-Patch (cli) (built: Jul 31 2012 14:49:18)
> - Server version: 5.5.28 MySQL Community Server (GPL)
> - Server version: Apache/2.2.22 (Unix)
> -- Server built:   Jul 12 2012 15:11:26
> - CQP Version:   3.0.0
> (and latest versions of all perl modules as on the sourceforge page, except
> for CQPWeb, which is the svn version as recommended)
>
> Thanks in advance!
>
> --
> Mart? Quixal
> Computational Linguist & Educational Technologist
> http://www.iqubo.org/quixal
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121006/93b3087f/attachment-0001.html
> >
>
> ------------------------------
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it>
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>
>
> End of CWB Digest, Vol 70, Issue 6
> **********************************
>
>
>
> --
> Mart? Quixal
> Computational Linguist & Educational Technologist
> http://www.iqubo.org/quixal
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 7 Oct 2012 20:57:18 +0200
> From: "Andr?s Chand?a" <andres at chandia.net>
> To: "Open source development of the Corpus WorkBench"
>         <cwb at sslmit.unibo.it>
> Subject: Re: [CWB] CQPweb
> Message-ID:
>         <bd370e665130096be1ff265c55b028f2.squirrel at mail.chandia.net>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
> Hi Mart? (Com va tot?)
>
> could you solve the issue following Andrew's
> advice
> the same happened to me ( silly of me), I cheked all except that file.
>
>
>
> El Dom, 7 de Octubre de 2012, 14:51, Hardie, Andrew escribi?:
>
>
>
>
> Hi
> Mart??,
>
>
> This
> is not a problem with user permissions or the Apache logon, it is a
> problem within the CQPweb
> code itself.
>
>
> Find
> the file config.inc.php in the lib directory and check the line that
> declares the superuser.
> It should  look like this:
>
>
> $superuser_username = 'spintexweb';
>
>
> Does
> it?
>
>
> Since
> in your earlier mail you say that you mistyped the username first time
> round, I guess the
> problem is here.
>
>
>
> (IT?&euro;&trade;s
> best to avoid usernames with hyphens in them, by the way; and the absence
> of the CSS file has
> nothing to do with the issue!)
>
>
> best
>
>
> Andrew.
>
>
>
>
> From:
>  cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it]
>
> On Behalf Of Mart?? Quixal
>  Sent: 07 October
> 2012 12:52
>  To: cwb at sslmit.unibo.it
>
> Subject: Re: [CWB] CQPweb
>
>
>
>
> Hi Andres, hi Andrew,
>
>
>
>
>
>
>
>
> I wrote a few hours ago, but it seems that my problem is similar to
> Andres', when he could log in with admin2. The difference is that I cannot
> log in even with
> admin (in my case called spintexweb)
>
>
>
>
>
>
>
>
>
>
>
>
>
> file .htgroup
>
>
>
>
>
> superusers: spintexweb
>
>
>
>
>
>
>
>
>
>
>
> file .htpasswd
>
>
>
>
>
> spintexweb:$apr1$JXkH5IeU$RnOa/bUHrsgV3ZqnRQhDc.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> file: ../adm/.htacces
>
>
>
>
>
> AuthUserFile ../AccessData/.htpasswd
>
>
>
>
>
>         AuthGroupFile ../AccessData/.htgroup
>
>
>
>
>
>         AuthName CQPweb
>
>
>
>
>
>         AuthType Basic
>
>
>
>
>
>         deny from all
>
>
>
>
>
>         require group superusers
>
>
>
>
>
>         satisfy any
>
>
>
>
>
>
>
>
>
> My problem is that http://localhost/spintx-web/adm/ does not
> load:
>
>
>
>
>
>
>
>
>
>
>
> CQPweb encountered an error and could not continue.
> You do not have permission to use this program.
> And in principle all user permissions are set ok for apache2's user as
> well as for mysql user (I created a group called cqpweb, which they all
> belong too):
> /Library/WebServer/Documents/spintx-web/adm
> sh-3.2# ls -l
> -rw-rw-r--  1 root       cqpweb  181 Oct  6 08:29 .htaccess
> -rw-rw-r--  1 spintxweb  cqpweb   51 Jun 11  2009 index.php
> -rw-rw-r--  1 spintxweb  cqpweb    9 Jun 11  2009 settings.inc.php
> Is there something you can suggest?
> Best
> mq
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________
> ????????????andr?s
> chand?a
>
> P No imprima
> innecesariamente. ?Cuide el medio ambiente!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121007/a02c8a30/attachment.html
> >
>
> ------------------------------
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>
>
> End of CWB Digest, Vol 70, Issue 8
> **********************************
>



-- 
Martí Quixal
Computational Linguist & Educational Technologist
http://www.iqubo.org/quixal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121009/880cdedc/attachment-0001.html>


More information about the CWB mailing list