I have the task to install OJS 2.x on a server and to make things a bit easier I have built this upon an existing project on GitHub. You can see the code and some instructions here: https://github.com/nuest/docker-pkp-ojs/tree/master/2.x
There also is a related GitHub issue, but I’d like to start the discussion here to see if others would be interested in this (who might not follow the GitHub repo) and to get feedback.
One of the remaining issues where somebody here might be able to help is the following:
Is it possible to pre-fill the values in the installation form based on the values in the config.inc.php file? Maybe there is a setting that I missed? Ideally, I would like to programatically put in some settings in the configuration file so that the adminstrator can simply inspect them in the installation form and enter the remaining required fields.
I did see that OJS 3’s vagrant file uses a POST to create this, but that does not help me, since the user will have to open the URL in the browser. Maybe somebody can shed light on how this works in the Vagrant file?
That might make a good addition to the command-line installation script – an option to have it pull from the configuration file rather than asking for user input.
Regards,
Alec Smecher
Public Knowledge Project Team
@asmecher Can you point me to documentation about / code of the command-line installation script? It would also help me if I could pass parameters directly to it.
Just to confirm what I read from the code (I am no PHP expert…): This installer is interactive, meaning there is no way to simply pass it all the settings that I have - correct?
Yes, a non-interactive install would a good enhancement, but I doubt it will be an immediate priority, especially for the 2.x line. Most effort is currently going into the 3.x release.
I’d like to add one, but it’s currently not a high priority. We had one in OJS 2.4.x and my sense is that it was rarely used. Have a look at the Vagrant image and the work-around that was used there, which is to POST directly to the installation form: https://github.com/pkp/vagrant/blob/ojs-master/scripts/ojs.sh#L26
Regards,
Alec Smecher
Public Knowledge Project Team
@marc Thanks for reviving this thread. I did not continue work on this, so thanks for the two links to more recent works.
Regarding the database dump for configuration: I see the important disadvantage that this would be non-text, i.e. binary. Can you confirm that?
Having a plain text-based configuration is important for being able to script the configuration, e.g. replace some placeholder with tools like Puppet or Ansible.
@asmecher Does OJS 3.x have a non-interactive installer?