The instructions below have been verified to work with:
: is either empty or the path on top of your webserver's root from where Ushahidi will be served ("yourdomain/$UHPATH")
: is the user to be created for the ushahidi database
: is the password for your user for the ushahidi database
If you have disabled SELinux you can ignore the security steps, but not the permissions step.
This assumes you want to use Apache as webserver and your mysql database is on the same machine. If you want something different you can figure out for yourself and improve this page
Install webserver group, mysql and necessary php modules
yum groups install "Web Server" yum install mysql mysql-server yum install php-gd php-mbstring php-mcrypt php-imap |
Get and copy Ushahidi, plus some localizations, into the webserver's DocumentRoot
git clone git://github.com/ushahidi/Ushahidi_Web.git git clone git://github.com/ushahidi/Ushahidi-Localizations.git cp -a Ushahidi_Web /var/www/html/$UHPATH cp -a Ushahidi-Localizations/pt_BR /var/www/html/$UHPATH/application/i18n/ cp -a Ushahidi-Localizations/en_US /var/www/html/$UHPATH/application/i18n/ |
Fix security context
restorecon -R /var/www/html/$UHPATH |
Fix permissions
chown -R apache:root /var/www/html/$UHPATH |
Set security context for writable files
cd /var/www/html/$UHPATH chcon -R -t httpd_sys_rw_content_t media/uploads application/logs application/cache application/config .htaccess |
Create database and its user
mysql -u root -p mysql> create database ushahidi; mysql> GRANT ALL on ushahidi.* TO '$DBUSER'@'localhost' IDENTIFIED BY '$DBPASSWORD'; |
Create /etc/httpd/conf.d/ushahidi.conf with:
# Settings for the ushahidi web service <Directory "/var/www/html/$UHPATH"> AllowOverride All </Directory> |
Restart services
systemctl restart mysqld.service systemctl restart httpd.service |
Run installation
firefox http://localhost/mapa/installer/ |