Opened 16 years ago
Closed 15 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 , 16 years ago
comment:2 by , 16 years ago
Milestone: | 2.6 release → 3.0 release |
---|
comment:3 by , 16 years ago
Cc: | added |
---|---|
Milestone: | 3.0 release → 2.6 release |
Owner: | changed from | to
- script overwrites the mapbender.conf if it already exists
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
changed behaviour: only install mapbender.conf if it doesn't exist
entries in mapbender.conf have to be changed by hand
follow-up: 6 comment:5 by , 16 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.
comment:6 by , 16 years ago
Cc: | removed |
---|---|
Priority: | major → trivial |
Resolution: | fixed |
Status: | closed → reopened |
Type: | enhancement → defect |
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 , 16 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
added webservergroup to set_permissions
comment:8 by , 15 years ago
Cc: | added |
---|---|
Milestone: | 2.6 release → 2.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 , 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 , 15 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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 , 15 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 , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
defaults localhost and 5432 are used,
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.