Discussion:
dir-or-file-in-var-www
Mathieu Malaterre
2009-07-10 07:47:36 UTC
Permalink
Hi there,

I am preparing a debian package for cdash (http://cdash.org), draft
implementation is available at:

http://gdcm.svn.sf.net/viewvc/gdcm/Sandbox/debian-med/cdash/debian/

It worked out ok, by following the standard installation procedure:

http://public.kitware.com/Wiki/CDash:Installation

However while trying to make it lintian clean I am getting this error:

dir-or-file-in-var-www

Reading the PHP policy:

http://webapps-common.alioth.debian.org/draft-php/html/ch-php-libs.html

It is clear that I should move all *.php within the prefered root:
/usr/share/php5/CDash
I thought I would just need to add the following file (*) and be all
set, but it seems that I am still missing something. What should I do
so that http://localhost/CDash points to /usr/share/php5/CDash ? A
good package reference would be appreciated.

Thanks,
--
Mathieu

(*)
$ cat /etc/apache2/conf.d/cdash.conf
<Directory /usr/share/php5/CDash/ >
Order allow,deny
Allow from all
</Directory>
--
To UNSUBSCRIBE, email to debian-webapps-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Uwe Steinmann
2009-07-10 08:18:21 UTC
Permalink
Post by Mathieu Malaterre
Hi there,
I am preparing a debian package for cdash (http://cdash.org), draft
http://gdcm.svn.sf.net/viewvc/gdcm/Sandbox/debian-med/cdash/debian/
http://public.kitware.com/Wiki/CDash:Installation
dir-or-file-in-var-www
http://webapps-common.alioth.debian.org/draft-php/html/ch-php-libs.html
/usr/share/php5/CDash
Do not put it into /usr/share/php5/CDash. /usr/share/cdash would
be much more appropriate. Though, this software is written in php5
it's not part of it.
Post by Mathieu Malaterre
I thought I would just need to add the following file (*) and be all
set, but it seems that I am still missing something. What should I do
so that http://localhost/CDash points to /usr/share/php5/CDash ? A
good package reference would be appreciated.
Thanks,
--
Mathieu
(*)
$ cat /etc/apache2/conf.d/cdash.conf
Your are missing an alias like

Alias /cdash /usr/share/cdash

You should name it 'cdash' instead of 'CDash'
Post by Mathieu Malaterre
<Directory /usr/share/php5/CDash/ >
Order allow,deny
Allow from all
</Directory>
Hope that helps.

Uwe
--
MMK GmbH, Fleyer Str. 196, 58097 Hagen
***@mmk-hagen.de
Tel: 02331 840446 Fax: 02331 843920
sean finney
2009-07-10 11:05:56 UTC
Permalink
hi mathieu,
Post by Mathieu Malaterre
dir-or-file-in-var-www
http://webapps-common.alioth.debian.org/draft-php/html/ch-php-libs.html
/usr/share/php5/CDash
this path is for php libraries, not applications. more specifically, for
libraries which are intended to be generally useful and available to the
rest of the system (think of it like /usr/include)

if the code in question is for an application, then you should keep it in
its own location. I suggest something like /usr/share/CDash/<subdir> (where
<subdir> can be any kind of descriptive subdirectory name, like "site" or
"app" or similar). The purpose of having a subdirectory is it gives you
the option of having other subdirectories which are not web-accessible,
in case you need to store copies of scripts, or a private library which
should only be used via "include" statements.

You can then use a simple apache Alias directive to point the webserver
at the right location (and then at the same time you can use a <Directory>
block to add any other application specific directives).

in case you haven't found it yet, this document might also be a bit
helpful:

http://webapps-common.alioth.debian.org/draft/html/


sean

--

Continue reading on narkive:
Loading...