...
- Ushahidi_Web (git) on Fedora 17 (the Beefy Miracle!)
Variables (to be replaced)
$UHPATH
: is either empty or the path on top of your webserver's root from where Ushahidi will be served ("yourdomain/$UHPATH")
$DBUSER
: is the user to be created for the ushahidi database
$DBPASSWORD
: is the password for your user for the ushahidi database
Notes
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
Instructions
Install webserver group, mysql and necessary php modules
Code Block |
---|
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
Code Block |
---|
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
Code Block |
---|
restorecon -R /var/www/html/$UHPATH
|
Fix permissions
Code Block |
---|
chown -R apache:root /var/www/html/$UHPATH
|
Set security context for writable files
Code Block |
---|
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
Code Block |
---|
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:
Code Block |
---|
# Settings for the ushahidi web service
<Directory "/var/www/html/$UHPATH">
AllowOverride All
</Directory>
|
Restart services
Code Block |
---|
systemctl restart mysqld.service
systemctl restart httpd.service
|
Run installation
Code Block |
---|
firefox http://localhost/mapa/installer/
|