Goal: to download and get XWiki set up with Apache Tomcat and PostgreSQL in an EC2 instance running Ubuntu
Versions after updates:
Ubuntu 16.04.4
openjdk version 1.8.0_162
Steps taken during installation:
- Set up an EC2 instance that’s using Ubuntu
- Configured PuTTy to open it
3.to update the Ubuntu instance, I ran the command:
sudo apt-get update
- to download Java, I ran the command:
sudo apt-get install openjdk-8-jdk
- Ran the command(s):
wget -q “https://maven.xwiki.org/public.gpg” -O- | sudo apt-key add -
sudo wget “https://maven.xwiki.org/stable/xwiki-stable.list” -P /etc/apt/sources.list.d/
as per tutorial found here: http://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationViaAPT
6. Ran
sudo apt-get update
- Ran
sudo apt-get install xwiki-tomcat8-pgsql
- “Setting up xwiki-psql-common (10.2) …” is written to the screen and then a pink/purple package configuration GUI shows up and here’s where I get stuck despite the different combinations of input I’ve provided.
First prompt:
Select a remote hostname to use or select new host to enter a new host.
new host
localhost
Which is best to select and why?
Say I select localhost
Please provide a password for xwiki to register with the database
│ server. If left blank, a random password will be generated.
│
│ If you are using “ident” authentication, the supplied password will not
│ be used and can be left blank. Otherwise, PostgreSQL access may need to
│ be reconfigured to allow password-authenticated access.
│
│ PostgreSQL application password for xwiki:
Should I use “ident” authentication? Or type in an application password for xwiki?
I opt to type in an application password and then this prints to screen:
Creating config file /etc/xwiki/hibernate.cfg.xml with new version
creating postgres user xwiki: success.
verifying creation of user: success.
creating database xwiki: success.
verifying database xwiki exists: success.
dbconfig-common: flushing administrative password
allow xwiki user to create new schemas in database xwiki
Setting up xwiki-tomcat8-common (10.2) …
Setting up xwiki-tomcat8-pgsql (10.2) …
Setting up authbind (2.1.1+nmu1) …
Processing triggers for libc-bin (2.23-0ubuntu10) …
Processing triggers for systemd (229-4ubuntu21.1) …
Processing triggers for ureadahead (0.100.0-19) …
W: Operation was interrupted before it could finish
What could’ve interrupted this process?
Since I saw the last line, I ran command:
sudo apt-get install xwiki-tomcat8-pgsql
and this was printed to the screen:
Reading package lists… Done
Building dependency tree
Reading state information… Done
xwiki-tomcat8-pgsql is already the newest version (10.2).
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
does this mean postgresql and tomcat has been set up still?
So since I assumed everything was set up, I ended up following the instructions for the memory allocation for tomcat8 and replaced the current JAVA_OPTS line of code with the recommended line of code:
JAVA_OPTS="-Djava.awt.headless=true -Xmx1024m"
When I tried to point my browser to:
and/or
http://myEC2Address.compute.amazonaws.com:8080/xwiki
I got:
HTTP ERROR 500
- Where did I go wrong here?
- Is there any resources to walk a new user through this dbconfig-common configuration stage for postgres and tomcat?
- If not, would any of you mind walking through this process for a new user?
We’re really excited to use XWiki over here and we’re looking forward to getting past this hurdle here. If there’s any additional information you require, feel free to ask!
Thanks in advance!