Installing Omeka on Fedora Linux
These instructions have been tested on Fedora 13.
This guide starts with a Fedora "Web Server" installation. If you choose a standard installation you will have to install other required packages to get everything running.
This guide uses the MySQL database name of omeka_db and the MySQL username of omeka_user although you can use any names you like. Just be consistent.
1. login as root (or su to root)
- If you logged in as root simply open a terminal session.
- If you logged in as a normal user open a terminal session and type:
2. Install required packages
- The only package required for installation is MySQL:
yum install mysql-server
3. Edit services to start at boot
- Enable Apache:
chkconfig --levels 235 httpd on
- Enable MySQL:
chkconfig --levels 35 mysqld on
4. Open firewalled port 80
- Start the firewall configuration tool:
- select Customize
- enable WWW (HTTP)
- select Close
- select OK
- select Yes
5. Disable SELinux
SELinux interferes with PHP writing to files in the http documents directory so we disable it.
- Edit /etc/selinux/config to disable SELinux at boot by changing the line SELINUX=enforcing to SELINUX=disabled
- To disable SELinux immediately without a reboot type:
6. Set up MySQL
- start MySQL:
service mysqld start
- set root password and secure MySQL (select yes for everything; full output follows):
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current password for the root user. If you've just installed MySQL, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL root user without the proper authorisation. Set root password? [Y/n] New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] ... Success! By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] ... Success! Cleaning up... All done! If you've completed all of the above steps, your MySQL installation should now be secure. Thanks for using MySQL!
- login to MySQL as root:
mysql -u root -p
- change to mysql database:
mysql> use mysql
- create the omeka user:
mysql> insert into user(host, user, password) values('localhost','omeka_user',password('chosen password'));
- create localhost permissions for omeka user:
mysql> insert into db(host,db,user,Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv) values ('localhost','omeka_db','omeka_user','Y','Y','Y','Y','Y','Y');
- exit mysql:
- create the omeka database:
mysqladmin -u root -p create omeka_db
- reload the database:
mysqladmin -u root -p reload
- set the default collation (connect to MySQL as root):
mysql> ALTER DATABASE omeka_db DEFAULT CHARACTER SET 'utf8' DEFAULT COLLATE 'utf8_unicode_ci';
- exit mysql:
7. Enable mod_rewrite
- edit /etc/httpd/conf/httpd.conf and change the AllowOverride directives in the <Directory "/var/www/html"> block as follows
# # This should be changed to whatever you set DocumentRoot to. # <Directory "/var/www/html"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory>
- restart Apache
service httpd restart
8. Configure Omeka
- expand omeka*.zip to /var/www/html
- rename /var/www/html/omeka* to /var/www/html/omeka or whatever suits your fancy
- change ownership of the omeka directory and all files:
chown -R apache /var/www/html/omeka
- edit /var/www/html/omeka/db.ini to reflect the above steps as follows
[database] host = "localhost" username = "omeka_user" password = "chosen password" name = "omeka_db" prefix = "omeka_" ;port = ""
- point browser to http://servername/omeka
- fill in data and submit
- assuming success remove /var/www/html/omeka/install
After all that you should have a fully functioning Omeka installation.