Bug#401903: should not ship /etc/apache2/sites-available/tetex-doc

2006-12-07 Thread Frank Küster
Uwe Kleine-Koenig [EMAIL PROTECTED] wrote:

  Moreover both URL that are mentioned in that file don't work for me:
 
 wget -q -O - http://localhost/doc/tetex-doc/texdoc.php
 
  gets the php-script uninterpreted.  Probably the file should be guarded
  by IfModule php or something like that?
 
 No idea.  It does work here, but I don't know what I changed.  I
 remember having problems with this, but I also seem to remember that
 they resolved themselves by restarting both server and browser.
 Probably you have libapache-mod-php4 (or libapache-mod-php5) installed?
 I have not.

These packages (actually those for apache2) are only Suggested.  Should
we move this to Recommends?

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#401903: should not ship /etc/apache2/sites-available/tetex-doc

2006-12-07 Thread Ralf Stubner
Frank Küster wrote:
 Uwe Kleine-Koenig [EMAIL PROTECTED] wrote:
 
  Moreover both URL that are mentioned in that file don't work for me:
 
wget -q -O - http://localhost/doc/tetex-doc/texdoc.php
 
  gets the php-script uninterpreted.  Probably the file should be guarded
  by IfModule php or something like that?
 
 No idea.  It does work here, but I don't know what I changed.  I
 remember having problems with this, but I also seem to remember that
 they resolved themselves by restarting both server and browser.
 Probably you have libapache-mod-php4 (or libapache-mod-php5) installed?
 I have not.
 
 These packages (actually those for apache2) are only Suggested.  Should
 we move this to Recommends?

IMO it would be overkill to recommend PHP and hence Apache on every
system using tetex. It would be better to protect the apache
configuration with suitable IfModule lines, ie

IfModule mod_php4.c
Alias ...
...
/IfModule
IfModule mod_php5.c
Alias ...
...
/IfModule

Unfortunately IfModule takes only a single module name [1], so one has
to duplicate everything.

[1] http://httpd.apache.org/docs/2.0/mod/core.html#ifmodule

cheerio
ralf



Bug#401903: should not ship /etc/apache2/sites-available/tetex-doc

2006-12-07 Thread Uwe Kleine-Koenig
Hi Frank,

Frank Küster wrote:
 Uwe Kleine-Koenig [EMAIL PROTECTED] wrote:
 
   Moreover both URL that are mentioned in that file don't work for me:
  
wget -q -O - http://localhost/doc/tetex-doc/texdoc.php
  
   gets the php-script uninterpreted.  Probably the file should be guarded
   by IfModule php or something like that?
  
  No idea.  It does work here, but I don't know what I changed.  I
  remember having problems with this, but I also seem to remember that
  they resolved themselves by restarting both server and browser.
  Probably you have libapache-mod-php4 (or libapache-mod-php5) installed?
  I have not.
 
 These packages (actually those for apache2) are only Suggested.  Should
 we move this to Recommends?
I wouldn't do that.  In my eyes Suggested is fine.

Now I created the file /etc/apache2/conf.d/tetex-doc with the following
content:

# This is used for the web-based php version of texdoctk
# just try 
# http://localhost/texmf-tetex/doc/texdoc.php or
# http://localhost/doc/tetex-doc/texdoc.php 
#
IfModule mod_php5.c
  Alias /texmf /usr/share/texmf
  Directory /usr/share/texmf
Options Indexes MultiViews FollowSymlinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
  /Directory

  Alias /texmf-tetex /usr/share/texmf-tetex
  Directory /usr/share/texmf-tetex
Options Indexes MultiViews FollowSymlinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
  /Directory
/IfModule

IMHO this is not optimal, but better than it is now.

There are still a few questions/issues open for me:

  1) are really both Alias+Directory Directives needed?
 `- On http://localhost/texmf-tetex/doc/texdoc.php, the entry
 KOMA-Script User's Guide links to
 http://localhost/texmf/doc/latex/koma-script/scrguien.pdf.gz while
 ConTeXt: TeXEXEC manual points to
 http://localhost/texmf-tetex/context/base/mtexexec.pdf
 (BTW: That file doesn't exist, in version 2.0.2-9 of tetex-doc
 /usr/share/doc/texmf/context/base/mtexexec.pdf.gz was included.)

  2) The whole thing needs to be duplicated once more for

IfModule mod_php4.c
...
/IfModule

  3) If php[45] is not installed (or disabled)
 http://localhost/doc/tetex-doc/texdoc.php still shows the
 php-source.  Don't know if that's OK.

  4) Maybe you should consider something like:

if test -e /etc/apache2/mods-enabled/php5.load ||
test -e /etc/apache2/mods-enabled/php4.load; then
if apache2ctl configtest 2/dev/null; then
invoke-rc.d apache2 force-reload || true
else
echo Your apache2 configuration is broken, so we're 
not restarting it for you.
fi
fi

 (stolen from libapache2-mod-php5.postinst)

Best regards
Uwe

-- 
Uwe Kleine-Koenig

http://www.google.com/search?q=e+%5E+%28i+pi%29


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



Bug#401903: should not ship /etc/apache2/sites-available/tetex-doc

2006-12-07 Thread Frank Küster
Uwe Kleine-Koenig [EMAIL PROTECTED] wrote:

 These packages (actually those for apache2) are only Suggested.  Should
 we move this to Recommends?
 I wouldn't do that.  In my eyes Suggested is fine.

I think so, too:  Many who want tetex-doc will not want an apache
running. 

 There are still a few questions/issues open for me:

   1) are really both Alias+Directory Directives needed?
  `- On http://localhost/texmf-tetex/doc/texdoc.php, the entry
  KOMA-Script User's Guide links to
  http://localhost/texmf/doc/latex/koma-script/scrguien.pdf.gz while
  ConTeXt: TeXEXEC manual points to
  http://localhost/texmf-tetex/context/base/mtexexec.pdf

I think only the texmf-tetex directory alias should be needed to make it
work, plus a change to config.php:

$texmftrees['fs'] = array( '' = '../../../texmf-tetex/',
  'main' = '../../../texmf',
  'local' = '../../../../local/share/texmf/');
$texmftrees['url'] = array( '' = '../../../texmf-tetex/',
'main' = '../../../texmf/',
  'local' = '../../../../local/share/texmf/' );

  (BTW: That file doesn't exist, in version 2.0.2-9 of tetex-doc
  /usr/share/doc/texmf/context/base/mtexexec.pdf.gz was included.)

It's in tetex-doc-nonfree.  And that's the thing I don't understand:
Although in item.php, the function that looks for the file is supposed
to loop over all trees in $texmftrees['fs'] and report the path that is
found, it doesn't.  And although I have no experience with PHP, it's
easy to read and I think I understand everything but

  if ($_GET[$treekey]  no)

   2) The whole thing needs to be duplicated once more for

   IfModule mod_php4.c
   ...
   /IfModule

Yes, that's true.


   3) If php[45] is not installed (or disabled)
  http://localhost/doc/tetex-doc/texdoc.php still shows the
  php-source.  Don't know if that's OK.

Since the source isn't secret, I don't see a problem.

   4) Maybe you should consider something like:

   if test -e /etc/apache2/mods-enabled/php5.load ||
   test -e /etc/apache2/mods-enabled/php4.load; then
   if apache2ctl configtest 2/dev/null; then
   invoke-rc.d apache2 force-reload || true
   else
   echo Your apache2 configuration is broken, so we're 
 not restarting it for you.
   fi
   fi

  (stolen from libapache2-mod-php5.postinst)

Thanks for digging that up, I also had the thought we should restart
apache. 

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#401903: should not ship /etc/apache2/sites-available/tetex-doc

2006-12-06 Thread Uwe Kleine-Koenig
Package: tetex-doc
Version: 3.0.dfsg.3-1
Severity: minor
File: /etc/apache2/sites-available/tetex-doc

Hello,

/etc/apache2/sites-available/tetex-doc doesn't define a new host, but
only adds some configuration concerning one directory (namely
/usr/share/texmf-tetex).

In my eyes this configuration should go to /etc/apache2/conf.d

Moreover both URL that are mentioned in that file don't work for me:

wget -q -O - http://localhost/doc/tetex-doc/texdoc.php

gets the php-script uninterpreted.  Probably the file should be guarded
by IfModule php or something like that?

And http://localhost/texmf-tetex/doc/texdoc.php gives me a 404.  To fix
that, s/texmf-tetex/texmf/

Best regards
Uwe

-- System Information:
Debian Release: 4.0
  APT prefers testing-proposed-updates
  APT policy: (900, 'testing-proposed-updates'), (900, 'testing'), (300, 
'unstable'), (1, 'proposed-updates'), (1, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.19-rc6-g1275361c
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

tetex-doc depends on no packages.

Versions of packages tetex-doc recommends:
ii  elinks [www-browser] 0.11.1-1.2  advanced text-mode WWW browser
ii  gs-esp [postscript-viewe 8.15.3.dfsg.1-1 The Ghostscript PostScript interpr
ii  gv [pdf-viewer]  1:3.6.2-2   PostScript and PDF viewer for X
ii  iceweasel [www-browser]  2.0+dfsg-1  lightweight web browser based on M
ii  tetex-bin3.0-24  The teTeX programs
ii  xpdf-reader [pdf-viewer] 3.01-9  Portable Document Format (PDF) sui
ii  xpdf-utils [pdf-viewer]  3.01-9  Portable Document Format (PDF) sui

-- no debconf information

-- 
Uwe Kleine-Koenig

http://www.google.com/search?q=72+PS+point+in+inch


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



Bug#401903: should not ship /etc/apache2/sites-available/tetex-doc

2006-12-06 Thread Frank Küster
Hi,

Uwe Kleine-Koenig [EMAIL PROTECTED] wrote:

Hast du geheiratet, oder verwendest du den Account vom anderen Uwe?  Im
ersten Fall herzlichen Glückwunsch (obwohl ich König Zeisberg noch
besser gefunden hätte ;-)).

 /etc/apache2/sites-available/tetex-doc doesn't define a new host, but
 only adds some configuration concerning one directory (namely
 /usr/share/texmf-tetex).

 In my eyes this configuration should go to /etc/apache2/conf.d

Fair enough.  It's not exactly easy to find relevant documentation on
packaging things that need a web server, in particular for someone who
has no idea about administering an Apache.  I simply didn't know what
site means in that context.

 Moreover both URL that are mentioned in that file don't work for me:

   wget -q -O - http://localhost/doc/tetex-doc/texdoc.php

 gets the php-script uninterpreted.  Probably the file should be guarded
 by IfModule php or something like that?

No idea.  It does work here, but I don't know what I changed.  I
remember having problems with this, but I also seem to remember that
they resolved themselves by restarting both server and browser.

 And http://localhost/texmf-tetex/doc/texdoc.php gives me a 404.  To fix
 that, s/texmf-tetex/texmf/

Yeah.  Just that I don't know whether this is the correct fix, or rather
to change the alias name to texmf-tetex.  After all, texlive has equal
rights to claim http://localhost/texmf, so none should get it.

Thanks for reporting, Frank

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Bug#401903: should not ship /etc/apache2/sites-available/tetex-doc

2006-12-06 Thread Uwe Kleine-Koenig
Hallo Frank,

Frank Küster wrote:
 Hast du geheiratet, oder verwendest du den Account vom anderen Uwe?
 Im ersten Fall herzlichen Glückwunsch
ersteres, Danke schoen.

 (obwohl ich König Zeisberg noch besser gefunden hätte ;-)).
Wir wollten das[1] auch, aber die Standesbeamtin war dagegen.

  /etc/apache2/sites-available/tetex-doc doesn't define a new host, but
  only adds some configuration concerning one directory (namely
  /usr/share/texmf-tetex).
 
  In my eyes this configuration should go to /etc/apache2/conf.d
 
 Fair enough.  It's not exactly easy to find relevant documentation on
 packaging things that need a web server, in particular for someone who
 has no idea about administering an Apache.  I simply didn't know what
 site means in that context.
 
  Moreover both URL that are mentioned in that file don't work for me:
 
  wget -q -O - http://localhost/doc/tetex-doc/texdoc.php
 
  gets the php-script uninterpreted.  Probably the file should be guarded
  by IfModule php or something like that?
 
 No idea.  It does work here, but I don't know what I changed.  I
 remember having problems with this, but I also seem to remember that
 they resolved themselves by restarting both server and browser.
Probably you have libapache-mod-php4 (or libapache-mod-php5) installed?
I have not.
 
  And http://localhost/texmf-tetex/doc/texdoc.php gives me a 404.  To fix
  that, s/texmf-tetex/texmf/
 
 Yeah.  Just that I don't know whether this is the correct fix, or rather
 to change the alias name to texmf-tetex.  After all, texlive has equal
 rights to claim http://localhost/texmf, so none should get it.
I don't want to decide that, but try to come up with a fix for the above
issues.

Liebe Gruesse
Uwe

[1] zumindest fast: s/rg/rger/

-- 
Uwe Kleine-Koenig

http://www.google.com/search?q=1+year+in+days


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