Opened 16 years ago

Closed 14 years ago

#303 closed defect (fixed)

Automated Install Script

Reported by: spsneo Owned by: tbaschetti
Priority: trivial Milestone: 2.5.2 release
Component: installation Version: 2.6
Keywords: install script Cc: mschulz

Description

Automated One-Click Install Script. This will allow user to install mapbender in one click from a browser tab or from terminal.

Change History (12)

comment:1 by christoph, 15 years ago

for mapbender 2.5 I have made a very very simple shell script

http://trac.osgeo.org/mapbender/browser/branches/2.5/resources/db/install.sh

this only asks for db type, character encoding and db name, and then chooses and installs the SQLs automatically.

A proper installation routine (preferably coded in PHP) would nevertheless be desirable.

comment:2 by christoph, 15 years ago

Milestone: 2.6 release3.0 release

comment:3 by astrid_emde, 15 years ago

Cc: darndt added
Milestone: 3.0 release2.6 release
Owner: changed from spsneo to tbaschetti
  • script overwrites the mapbender.conf if it already exists

comment:4 by tbaschetti, 15 years ago

Resolution: fixed
Status: newclosed

changed behaviour: only install mapbender.conf if it doesn't exist

entries in mapbender.conf have to be changed by hand

comment:5 by mschulz, 15 years ago

should we fill in the appropriate db settings while cp'ing mapbender.conf-dist to mapbender.conf? This could be done with sed (on linux ;-)). We would need to change mapbender.conf-dist slightly, so that the placeholders can be uniquely identified, e.g. <pgHOST> and <myHOST> instead of <HOST>. I could provide the script code.

I've noticed that the set_permissions function can fail, because the webserver user's username and group need not to be identical.

in reply to:  5 comment:6 by tbaschetti, 15 years ago

Cc: darndt removed
Priority: majortrivial
Resolution: fixed
Status: closedreopened
Type: enhancementdefect

Replying to mschulz:

should we fill in the appropriate db settings while cp'ing mapbender.conf-dist to mapbender.conf? This could be done with sed (on linux ;-)). We would need to change mapbender.conf-dist slightly, so that the placeholders can be uniquely identified, e.g. <pgHOST> and <myHOST> instead of <HOST>. I could provide the script code.

in general i agree, but i think we should postpone this, until we've got a real (php) install routine, as it is quiet hard to sync the windows and unix versions.

I've noticed that the set_permissions function can fail, because the webserver user's username and group need not to be identical.

yes, i reopen the ticket and will fix it.

comment:7 by tbaschetti, 15 years ago

Resolution: fixed
Status: reopenedclosed

added webservergroup to set_permissions

comment:8 by christoph, 15 years ago

Cc: mschulz added
Milestone: 2.6 release2.5.2 release

I want to use the install script for Mapbender 2.5.2, both .bat and .sh

I guess there should be no blockers. I removed the SQLs for updating to 2.6. I also removed the abortion of the MySQL installation, because 2.6 sqls are not available (not applicable to 2.5.2)

http://trac.osgeo.org/mapbender/changeset/4428

If you see any blockers, please stop me!

comment:9 by christoph, 15 years ago

Today I encountered a problem with gettext. The .mo files were neither readable nor executable. I guess it must have sth to do with the install script.

Just to let you know, I didn't have time to resolve the issue.

comment:10 by astrid_emde, 14 years ago

Resolution: fixed
Status: closedreopened

ERROR

  • install_2.6.sh does not provide defaults for host and port. The import fails. It only works fine when you enter the hostname and port. (in the windows version the defaults are provides)

comment:11 by astrid_emde, 14 years ago

solved:

  • install_2.6.sh does not provide defaults for host and port. The import fails. It only works fine when you enter the hostname and port. (in the windows version the defaults are provides)

comment:12 by tbaschetti, 14 years ago

Resolution: fixed
Status: reopenedclosed

defaults localhost and 5432 are used,

Note: See TracTickets for help on using tickets.