Fedora dependencies

From ExpressionPlot
Jump to: navigation, search

These are the packages you'll need:

 sudo yum install wget gcc httpd httpd-devel R-base R-devel libapreq2-devel mysql mysql-server mysql-devel perl-CPAN

These commands set up MySQL and Apache to start automatically and boot, and then start them for the current session.

 sudo /sbin/chkconfig mysqld on
 sudo /sbin/service mysqld start
 sudo /sbin/chkconfig httpd on
 sudo /sbin/service httpd start

Set the following variables in install-config.txt

 APACHE2CTL=apachectl
 APXS2=apxs
 HTDOCS_HOME=/var/www/html/expressionplot
 CGI_HOME=/var/www/cgi-bin/expressionplot

Install with

 ./install.pl install-config.txt

If your web scripts are returning "Permission Denied" this may be due to SElinux preventing httpd access to certain files. To see if SElinux is running do

 sudo getenforce

If it says "Enforcing" then you should fix the SElinux contexts of the ExpressionPlot directory tree with the following command:

 restorecon -r `expressionplot-config`

If sudo getenforce doesn't return "Enforcing" then there is another reason that you are getting "Permission Denied". Drop a note to our googlegroup so we can help you, and others can learn from your problem!

(Note for the nerdy: the install script unpacks ExpressionPlot in a subdirectory of /tmp, so all the files get a context of unconfined_u:object_r:user_tmp_t:s0. Then they are moved into the /usr/local/bin location, but the mv command preserves SElinux context. So they are stick with user_tmp_t, which httpd is not allow to look at. When you run restorecon the context of the entire tree changes to system_u:object_r:bin_t, and httpd is allowed in.)