Skip to content

Installation issues #13

Open
Open
@dleehr

Description

@dleehr

I installed FossilCalibrations on a CentOS virtual machine, via the wiki instructions

I'm using CentOS 6.5 64-bit (vagrant: chef/centos-6.5)

Installed via yum:

  • httpd 2.2.15
  • mysql-server 5.1.73
  • php, php-mysql 5.3.3
  • git 1.7.1
  • man 1.6f

Here are the issues I encountered:

  1. In general, I feel "Configure apache" or "Configure MySQL" are a little vague. While it's unwise to dictate exactly which file to edit, suggesting /etc/httpd/conf.d/ or /etc/my.cnf or is going to cover most of the cases.
  2. Step 4 (SSL config) is confusing. I assume the DocumentRoot should be the repo root as in Step 3, but it's a literal instead of a placeholder.
  3. Database installation confusion. The db directory contains .sql scripts and a Readme for installing a database, but these are not mentioned on the wiki installation guide. The guide suggests to dump/load data from a dev database, but I think that a fresh installation should be supported.
  4. Installing database through scripts. I was able to step through the scripts in order (FossilCalibration.sql, followed by all the numbered database-migration scripts and the two procedures scripts). This installed a (mostly) working database. The readme here suggests looking for TODO items in the scripts, but most of these are irrelevant (except the NCBI files)
  5. database-migration-002.sql loads data from NCBI files. The script has a hard-coded file path for these files, and they must be downloaded first manually. It would be nice if the download and installation of these files were scripted. For that matter, the entire database installation could be a single script. This file was also missing a semicolon (PR Add missing semicolon in database-migration-002 #11).
  6. The application expects the database to be named FossilCalibration but this is not mentioned in the guides. Additionally, it's not clear what database grants/privileges are required. I created a fossils user with all privileges on FossilCalibration. This seems to be sufficient to run the application, but installing FossilCalibration.sql required SUPER privileges, so I had to drop the database and start over with root.
  7. The $SITEINFO['servername'] variable in Site.conf.example is actually used as the MySQL hostname, but this is unclear. (PR Clarify meaning of $SITEINFO['servername'] #12)
  8. Some of the php scripts use short tags. By default, php.ini disables short tags. Edited Wiki.
  9. After getting my sample database up and running, Browse.php doesn't work because $targetNodeInfo is null on line 122 and clobbers $nodeMultitreeID, causing bad SQL in 137-145. Seems I'm missing some data?
  10. It seems the mysqld max_sp_recursion_depth setting might be required so that stored procedures can recurse (based on the documentation)? I can't tell if it's working or not. I set it to 255.

I think the installation is mostly working, would be happy to provide the VM image (as a vagrant box or virtualbox image) to check it. It seems the database installation is the biggest issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions