IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42992


Ignore:
Timestamp:
Apr 22, 2026, 10:00:30 AM (2 weeks ago)
Author:
eugene
Message:

update configure.ac to install apache cgi code

Location:
branches/eam_branches/ipp-pstamp-20260421/DataStoreServer
Files:
2 added
3 edited
3 moved

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/Makefile.am

    r16673 r42992  
    1 SUBDIRS = scripts
     1SUBDIRS = scripts web/cgi
    22
    33CLEANFILES = *~ core core.*
     4
     5cgi:
     6        $(MAKE) -C web/cgi cgi
     7
     8install-cgi:
     9        $(MAKE) -C web/cgi install-cgi
     10
     11uninstall-cgi:
     12        $(MAKE) -C web/cgi uninstall-cgi
     13
  • branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/configure.ac

    r16673 r42992  
    22
    33AC_INIT([DataStoreServer], [1.0.0], [ipp-support@ifa.hawaii.edu])
     4
     5# this checks for a working C compiler, but is only needed is
     6# we build *.c files, which we do not in DataStoreServer
     7# AC_PROG_CC
     8
    49AC_CONFIG_SRCDIR([scripts])
    510
     
    914AC_PROG_INSTALL
    1015
     16AC_ARG_WITH([cgidir],
     17  [AS_HELP_STRING([--with-cgidir=DIR],
     18                  [directory for CGI programs])],
     19  [cgidir="$withval"],
     20  [cgidir=""])
     21
     22AC_ARG_WITH([dsroot],
     23  [AS_HELP_STRING([--with-dsroot=DIR],
     24                  [directory for web data files])],
     25  [dsroot="$withval"],
     26  [dsroot=""])
     27
     28AC_SUBST([cgidir])
     29AC_SUBST([dsroot])
     30
    1131AC_CONFIG_FILES([
    1232  Makefile
     33  web/cgi/Makefile
    1334  scripts/Makefile
    1435])
  • branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/notes.txt

    r42985 r42992  
     1
     2How to create a new installation of the IPP datastore:
     3
     4* create a database to host the relevant tables:
     5  * create a mysql user:
     6  > create user 'ipp'@'localhost' identified by 'XXX'
     7  > grant all on *.* to 'ipp'@'localhost'
     8
     9  * in mysql, create the test database:
     10  > create database datastore;
     11
     12  * create the tables:
     13  # mysql -h localhost -u ipp -p datastore < scripts/tabledefs.sql
     14
     15  This generates the tables needed by the datastore web pages and tools
     16
     17* in DataStoreServer, to install the apache CGI elements:
     18  * ./autogen.sh --with-cgidir=/MY/DATASTORE/ds-cgi --with-dsroot=/MY/DATASTORE/dsroot
     19  * make cgi
     20  * then edit /MY/DATASTORE/ds-cgi/dsshellconfig
     21    ** supply the perl path of the user built to support the datastore
     22    ** supply the database server information
     23    ** supply the dsroot location
     24
     25* install the apache vhost configuration file:
     26  * NOTE: this likely needs root access
     27  * cp DataStoreServer/web/conf/ubuntu-datastore.conf /etc/apache2/sites-available
     28  * edit to match location of datastore/dsroot and ds-cgi
     29  * enable the new site (a2ensite)
     30  * enable required modules: rewrite, cgi, includes
     31  * start or restart the apache server
     32
     33==============================================================
     34
     35* datastore apache elements consist of CGI scripts and the directory hierarchy for data products
     36
     37* Things to be installed in ds-cgi:
     38  * dsindex.cgi
     39  * dstxtindex.cgi
     40  * dsgetindex
     41  * dsfsindex
     42  * dsprodindex
     43  * dsrootindex
     44  * dsshellconfig -- NEEDS to be modified to define the configuration
     45
     46* Things needed in the user build by the apache server:
     47  * dsdbh.pm in PERL
     48  * DBD/mysql.pm
     49
     50* Things installed as user tools:
     51  * dsreg
     52  * dsprodtool
     53
     54*
     55
     56----------
    157
    258Here is the current (2026.04.11) directory listing of /export/ipp113.0/datastore/ds-cgi:
     
    48104---------
    49105
    50 How to set up a local database to host the IPP datastore:
    51 
    52 * create a database to host the relevant tables:
    53   in mysql, create the test database:
    54   > create database test_datastore;
    55   create the tables:
    56   # mysql -h localhost -u ipp -p test_datastore < scripts/tabledefs.sql
    57 
    58   This generates the tables needed by the datastore web pages and tools
    59 
    60 ----------
    61 
Note: See TracChangeset for help on using the changeset viewer.