Changeset 42992
- Timestamp:
- Apr 22, 2026, 10:00:30 AM (2 weeks ago)
- Location:
- branches/eam_branches/ipp-pstamp-20260421/DataStoreServer
- Files:
-
- 2 added
- 3 edited
- 3 moved
-
Makefile.am (modified) (1 diff)
-
configure.ac (modified) (2 diffs)
-
notes.txt (modified) (2 diffs)
-
web/cgi/Makefile.am (added)
-
web/cgi/dsfsindex (moved) (moved from branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/scripts/dsfsindex )
-
web/cgi/dsprodindex (moved) (moved from branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/scripts/dsprodindex )
-
web/cgi/dsrootindex (moved) (moved from branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/scripts/dsrootindex )
-
web/cgi/index.txt (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/Makefile.am
r16673 r42992 1 SUBDIRS = scripts 1 SUBDIRS = scripts web/cgi 2 2 3 3 CLEANFILES = *~ core core.* 4 5 cgi: 6 $(MAKE) -C web/cgi cgi 7 8 install-cgi: 9 $(MAKE) -C web/cgi install-cgi 10 11 uninstall-cgi: 12 $(MAKE) -C web/cgi uninstall-cgi 13 -
branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/configure.ac
r16673 r42992 2 2 3 3 AC_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 4 9 AC_CONFIG_SRCDIR([scripts]) 5 10 … … 9 14 AC_PROG_INSTALL 10 15 16 AC_ARG_WITH([cgidir], 17 [AS_HELP_STRING([--with-cgidir=DIR], 18 [directory for CGI programs])], 19 [cgidir="$withval"], 20 [cgidir=""]) 21 22 AC_ARG_WITH([dsroot], 23 [AS_HELP_STRING([--with-dsroot=DIR], 24 [directory for web data files])], 25 [dsroot="$withval"], 26 [dsroot=""]) 27 28 AC_SUBST([cgidir]) 29 AC_SUBST([dsroot]) 30 11 31 AC_CONFIG_FILES([ 12 32 Makefile 33 web/cgi/Makefile 13 34 scripts/Makefile 14 35 ]) -
branches/eam_branches/ipp-pstamp-20260421/DataStoreServer/notes.txt
r42985 r42992 1 2 How 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 ---------- 1 57 2 58 Here is the current (2026.04.11) directory listing of /export/ipp113.0/datastore/ds-cgi: … … 48 104 --------- 49 105 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.sql57 58 This generates the tables needed by the datastore web pages and tools59 60 ----------61
Note:
See TracChangeset
for help on using the changeset viewer.
