[CWB] Two issues regarding CQPweb revision 316

Hardie, Andrew a.hardie at lancaster.ac.uk
Sun May 20 22:27:14 CEST 2012


OK, I have solved the freq table issue I think – it was a bug due to me supplying the wrong argument format to the PHP function is_writable(). Update to svn commit 318 and you should be good to go on that front.

For the user creation issue: can I suggest you temporarily change line 190 of admin-lib.inc.php as follows:

from

$apache->new_user($username, $password);

to

$dd = $apache->new_user($username, $password); show_var($dd);

and try creating a user to see what happens?

best

Andrew.


From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Ray Wu
Sent: 20 May 2012 18:41
To: Open source development of the Corpus WorkBench
Subject: RE: RE: RE: RE: [CWB] Two issues regarding CQPweb revision 316


Hi Andrew,

Same error as before:

A function was passed an invalid argument type!Argument value was /usr/local/apache2/cqpweb_aux/temp/____temporary_freq_corpus_test.tbl.utf8.tmp. Problem:

This path is not writable.

But I can see that CQPweb v3.0.7 © 2008-201. It seems the update is not recognized.

Best,

Ray


在 2012-05-21 01:21:09,"Hardie, Andrew" <a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk>> 写道:

Can you update from svn and then try “recreate frequency table” again?  I have added a new error message check which might help diagnose.

best

Andrew.

From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it> [mailto:cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it>] On Behalf Of Ray Wu
Sent: 20 May 2012 18:02
To: Open source development of the Corpus WorkBench
Subject: RE: RE: RE: [CWB] Two issues regarding CQPweb revision 316

Hi Andrew,

I can only find the following information, hopefully it is what you needed.

re: I spot one odd thing: you have .htaccess and .htgroup files in the cqpweb_aux directory, should they not be in the “user” subdirectory?
I don't know when they were created but they are just there.
/usr/local/apache2/cqpweb_aux$ cat .htpasswd
cqpweb:38Pzi2lNByWHA
/usr/local/apache2/cqpweb_aux$ cat .htgroup
superusers: cqpweb

re: What is the ls –al of the “user” subdirectory?
/usr/local/apache2/cqpweb_aux/user$ ls -al
drwxrwxr-x 2 nobody cqpweb     4096 2012-05-21 00:12 .
drwxrwxrwx 7 nobody cqpweb     4096 2012-05-21 00:13 ..
-rw-r--r-- 1 nobody 4294967295    4 2012-05-20 20:27 file_for_Check
-rwxrwxr-x 1 nobody cqpweb       88 2012-05-20 20:52 .htgroup
-rwxrwxr-x 1 nobody cqpweb      179 2012-05-20 20:46 .htpasswd

/usr/local/apache2/cqpweb_aux/user$ cat .htgroup
superusers: cqpweb
guestgroup: demo user1
/usr/local/apache2/cqpweb_aux/user$ cat .htpasswd
cqpweb:******************
user1:siPxM76GQlqA2
demo:vGyvnrMO11qXM

re: And, what is the value of $cqpweb_accessdir in the config file?
./lib/config.inc.php:$cqpweb_accessdir = 'usr/local/apache2/cqpweb_aux/user';
./template.config.inc.php:$cqpweb_accessdir = '';

re: On the other problem: what is the ls –al of the “cqpweb_aux/temp” subdirectory?
ray at ray-laptop:/usr/local/apache2/cqpweb_aux/temp$ ls -al
drwxrwxr-x 2 nobody cqpweb      4096 2012-05-20 20:34 .
drwxrwxrwx 7 nobody cqpweb      4096 2012-05-21 00:13 ..
-rwxrwxr-x 1 nobody cqpweb        92 2012-05-20 06:54 test:dt4em6acw0
-rw-r--r-- 1 nobody 4294967295   104 2012-05-20 18:59 test:dt4zky5ilw
-rw-r--r-- 1 nobody 4294967295     4 2012-05-20 20:27 file_for_Check
-rw-r--r-- 1 nobody 4294967295 12136 2012-05-21 00:09 ____temporary_freq_corpus_test.tbl (manually created using sudo vi ____temporary_freq_corpus_test.tbl and then sudo chown nobody)

re: On both, have you checked the value of the php.ini directive “open_basedir”? (This can also be set in httpd.conf or other Apache config file, see http://www.php.net/manual/en/ini.core.php#ini.open-basedir)

In httpd.conf, I cannot find such a directive. In /usr/local/lib/php.ini, open_basedir is commented out:
;open_basedir =

Best,
Ray


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20120520/14e95afa/attachment-0001.htm


More information about the CWB mailing list