The Ubuntu 10.04 package is stuck in the 0.9.x branch and the Ubuntu 12.04 package is stuck in the 1.3.x branch.įor MySQL: >apt-get install redmine redmine-mysqlįor PostgreSQL: >apt-get install redmine redmine-pgsql If you are happy with the packaged version, the you can use the packages from the Ubuntu repository. You can now proceed to editing the postgres configuration files so that you can connect remotely.
This will take you to the postgres database prompt.ĪLTER USER postgres with password 'my-secure-password' MySQL will force you to set this during the installation but Postgres does not. NOTE for PostgreSQL Users: You will have to set the postgres user password before you can connect remotely. These are pretty trivial to find on Google and if you are going to administer database driven applications its very advisable for you to become at least passingly familiar with SQL statements.įor MySQL: CREATE IDENTIFIED BY 'password' CREATE DATABASE myredminedb GRANT ALL ON myredminedb.* TO FLUSH PRIVILEGES įor PostgreSQL: CREATE USER user WITH PASSWORD 'password' CREATE DATABASE myredminedb GRANT ALL PRIVILEGES ON DATABASE myredminedb to user There are also any number of tutorials on the creation of databases and granting of rights on them, so that it is really outside the scope of this document.
MySQL root for MySQL or 'postgres' user for PostgreSQL). It is strongly recommended never to run your application as your "root" user on your database (e.g. There are a great many GUI's out there for most databases. You can restart it once everything has been configured.Īlternatively, you can set it into "whine" mode.Īa-complain /usr/sbin/mysqld Create your database and your user for your redmine installation. Turn off apparmor for a bit so that it doesn't complain while we're installing everything ¶ Mod_passenger should now be enabled and visible to apache. Wait for the install to complete then you must enable the module and restart Apache2. You must install mod_passenger for Apache2. If you want to use another web server or database, that is outside the scope of this document. The statements below will install apache2 and the proper database.įor MySQL: >apt-get install apache2 software-properties-common librmagick-ruby ruby-rmagick mysql-server mysql-client mysql-commonįor PostgreSQL: >apt-get install apache2 software-properties-common librmagick-ruby ruby-rmagick postgresql That which isn't installed is not a potential security hole. As a general rule of practice, it is best not to install anything you don't actually need. If you are using RoR, installing all of that is probably unnecessary. Installing Ubuntu's entire LAMP stack also installs PHP as well as the PHP connectors for apache, mysql, etc.
What ever key you are missing can be fixed by through this process.Īpt-get update & apt-get dist-upgrade Have your web server and database installed ¶ Note that the key (16126D3A3E5C1192) is the same in the error message, the key fetch request and the key import request.
Gpg -export -armor 16126D3A3E5C1192 | sudo apt-key add. W: GPG error: quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192 If you get any key errors for any of the repositories, you can fix them easily.Ī key error will look something like this: ¶īe sure to check your /etc/apt/sources.list You will probably want to comment out the "backports" and uncomment the extras and partners. Be sure to run your updates before you start.
You can also save yourself a lot of time if you are doing a big install/configuration job by simply becoming 'real root' instead of typing sudo before everything by typing in either of these commands īoth will ask you to supply your password again and then you will get a # prompt which shows that you are "root" and no longer have to keep typing sudo. Become root or be prepared to type sudo before every command. Lines you should type in will be on their own line and will be preceded by a vertical grey bar.
They also assume that you have the ability to carry out sudo commands and that you have at least a passing familiarity with the linux OS and file system. they assume that you have the rights to install a web server (Apache2) and a database (PostgreSQL or MySQL). These instructions assume that you have a basic Ubuntu server installation with command line access. Step-by-step for Ubuntu 12.04 or Ubuntu 10.04 using Passenger ¶Ī step-by-step guide to getting Redmine running on a fresh installation of Ubuntu.