[ome-users] Getting an error "Apache/mod_perl is not properly configured" while installing OME Server.
Nandakumar, Sriramkumar
sriramkumar at uky.edu
Tue Oct 21 22:21:01 BST 2008
Hi Curtis,
The mod_perl problem was resolved. In the httpd conf file, I have included this line LoadModule perl_module /usr/lib/httpd/modules/mod_perl.so.
But now I am getting problem in OMEIS module.
Please find the errors below,
Testing Apache configuration
\__ mod_perl [SUCCESS].
\__ omeis [FAILURE].
Errors executing task: OMEIS could not be reached.
Incorrect response from OMEIS at http://localhost/cgi-bin/omeis:
Error calling Initialization: Could not change working directory to /OME/OMEIS: Permission denied
System Error: Permission denied
See /var/tmp/OME/install/ApacheConfigTask.log for more details. at (eval 192) line 1
at install.pl line 82
main::run_tasks() called at install.pl line 266
Could you please help me to resolve this problem?
Thanks & Regards,
Sriram.
________________________________________
From: ctrueden.wisc at gmail.com [ctrueden.wisc at gmail.com] On Behalf Of Curtis Rueden [ctrueden at wisc.edu]
Sent: Friday, October 17, 2008 6:29 PM
To: Nandakumar, Sriramkumar
Cc: OME-users mailing list
Subject: Re: [ome-users] Getting an error "Apache/mod_perl is not properly configured" while installing OME Server.
Hi Sriram,
Most likely, you just need to use the "Include" directive in your main Apache config file.
The installer probably inserted the proper lines into your /usr/local/apache2/conf/httpd.conf file, but for some reason they aren't being honored there. I think that file is a legacy file for Apache1 stuff -- usually for Apache2 there is nothing much in there.
As for where your actual main Apache config file is, look for a sites-available directory somewhere under /usr/local/apache2, I think.
I am not an expert on Apache so you might want to CC the list with any follow-up questions.
-Curtis
On Fri, Oct 17, 2008 at 4:26 PM, Nandakumar, Sriramkumar <sriramkumar at uky.edu<mailto:sriramkumar at uky.edu>> wrote:
Hi Curtis,
Thanks for the email.
I have installed apache in /usr/local/apache2 manually.
I don't know where to include this reference for OME.
Could you please assist me in this?
Thanks in advance.
Thanks & Regards,
Sriram.
________________________________________
From: ctrueden.wisc at gmail.com<mailto:ctrueden.wisc at gmail.com> [ctrueden.wisc at gmail.com<mailto:ctrueden.wisc at gmail.com>] On Behalf Of Curtis Rueden [ctrueden at wisc.edu<mailto:ctrueden at wisc.edu>]
Sent: Friday, October 17, 2008 3:11 PM
To: Nandakumar, Sriramkumar
Cc: ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>
Subject: Re: [ome-users] Getting an error "Apache/mod_perl is not properly configured" while installing OME Server.
Hi Sriram,
According to the log, it's not that you don't have mod_perl installed, but rather that the /perl2 alias is not functioning -- hence the 404 Not Found. For whatever reason, it looks like the OME installer could not modify your Apache configuration successfully. It also looks like you installed your own version of Apache, so the config files are not where they would be in a default installation.
It looks like the OME installer has been updated since last time I used it, so I'm not 100% sure, but I believe you need to configure your Apache installation to include references to the appropriate /OME/conf/httpd2.*.conf files. Once you do that, and restart the web server, it should be able to find /perl2 successfully (you can test in your web browser). Then you can rerun the installer and it should pass the mod_perl test, assuming you actually have mod_perl installed.
-Curtis
On Fri, Oct 17, 2008 at 12:15 PM, Nandakumar, Sriramkumar <sriramkumar at uky.edu<mailto:sriramkumar at uky.edu><mailto:sriramkumar at uky.edu<mailto:sriramkumar at uky.edu>>> wrote:
Hi,
I am facing a problem while installing OME server.
The problem is at the stage of Apache setup. I am getting an error "Apache/mod_perl is not properly configured. Got an error response from http://localhost/perl2/mod_perl_test.pl:" and the script exits abnormally.
It could really helpful if anyone has assist me in resolving this.
Please find the ApacheConfigTask.log file below,
Apache setup
Apache binary: /usr/local/apache2/bin/httpd
apachectl binary: /usr/local/apache2/bin/apachectl
httpd root: /usr/local/apache2
httpd conf: /usr/local/apache2/conf/httpd.conf
httpd version: 2
Apache configuration:
Configure Apache?: yes
Developer configuration: no
Server restart?: yes
Install OME servers:
Images (omeis): yes
Data (omeds): yes
Web: yes
Apache directories:
httpd binary: /usr/local/apache2/bin/httpd
apachectl binary: /usr/local/apache2/bin/apachectl
DocumentRoot: /usr/local/apache2/htdocs
cgi-bin: /usr/local/apache2/cgi-bin/
Web-UI HTML Templates:
Developer configuration: no
Configuring Apache
httpd.conf is /usr/local/apache2/conf/httpd.conf
Installing OMEIS
Copying src/C/omeis/omeis to /usr/local/apache2/cgi-bin//omeis
chmod 0755 /usr/local/apache2/cgi-bin//omeis
chown /usr/local/apache2/cgi-bin//omeis to uid: 48 gid: 502
Set APACHE_OMEIS_INCLUDE to Include /OME/conf/httpd2.omeis.conf
Forking a process to upgrade OMEIS
Installing OMEDS
Set APACHE_OMEDS_INCLUDE to Include /OME/conf/httpd2.omeds.conf
Installing WEB
Copying src/perl2/serve.pl to /OME/perl2/serve.pl
chmod 0755 /OME/perl2/serve.pl
chown /OME/perl2/serve.pl to uid: 48 gid: 502
Copying src/html/index.html to /usr/local/apache2/htdocs/index.html
chmod 0644 /usr/local/apache2/htdocs/index.html
chmod 0644 /usr/local/apache2/htdocs/favicon.ico
Set APACHE_WEB_INCLUDE to Include /OME/conf/httpd2.web.conf
Installing DAE web by copying NonblockingSlaveWorkerCGI
Copying src/perl2/OME/Analysis/Engine/NonblockingSlaveWorkerCGI.pl to /OME/perl2/NonblockingSlaveWorkerCGI.pl
chmod 0755 /OME/perl2/NonblockingSlaveWorkerCGI.pl
chown /OME/perl2/NonblockingSlaveWorkerCGI.pl to uid: 48 gid: 502
Installing OME-startup.pl
Copying src/perl2/OME-startup.pl to /OME/conf/OME-startup.pl
chown /OME/conf/OME-startup.pl to uid: 48 gid: 502
Fixing variables in conf/httpd.ome.*.conf
Replacing %OME_DIST_BASE with /home/kimlab/Desktop/OME/OME-2.6.1
Replacing %OME_INSTALL_BASE with /OME
Reading /OME/conf/httpd.ome.conf
Writing /OME/conf/httpd.ome.conf
Reading /OME/conf/httpd.omeds-dev.conf
Writing /OME/conf/httpd.omeds-dev.conf
Reading /OME/conf/httpd.omeds.conf
Writing /OME/conf/httpd.omeds.conf
Reading /OME/conf/httpd.omeis-dev.conf
Writing /OME/conf/httpd.omeis-dev.conf
Reading /OME/conf/httpd.omeis.conf
Writing /OME/conf/httpd.omeis.conf
Reading /OME/conf/httpd.web-dev.conf
Writing /OME/conf/httpd.web-dev.conf
Reading /OME/conf/httpd.web.conf
Writing /OME/conf/httpd.web.conf
Reading /OME/conf/httpd1.99.omeds-dev.conf
Writing /OME/conf/httpd1.99.omeds-dev.conf
Reading /OME/conf/httpd1.99.omeds.conf
Writing /OME/conf/httpd1.99.omeds.conf
Reading /OME/conf/httpd1.99.omeis-dev.conf
Writing /OME/conf/httpd1.99.omeis-dev.conf
Reading /OME/conf/httpd1.99.omeis.conf
Writing /OME/conf/httpd1.99.omeis.conf
Reading /OME/conf/httpd1.99.web-dev.conf
Writing /OME/conf/httpd1.99.web-dev.conf
Reading /OME/conf/httpd1.99.web.conf
Writing /OME/conf/httpd1.99.web.conf
Reading /OME/conf/httpd2.omeds-dev.conf
Writing /OME/conf/httpd2.omeds-dev.conf
Reading /OME/conf/httpd2.omeds.conf
Writing /OME/conf/httpd2.omeds.conf
Reading /OME/conf/httpd2.omeis-dev.conf
Writing /OME/conf/httpd2.omeis-dev.conf
Reading /OME/conf/httpd2.omeis.conf
Writing /OME/conf/httpd2.omeis.conf
Reading /OME/conf/httpd2.web-dev.conf
Writing /OME/conf/httpd2.web-dev.conf
Reading /OME/conf/httpd2.web.conf
Writing /OME/conf/httpd2.web.conf
Reading /OME/conf/httpd.ome.conf
Writing /OME/conf/httpd.ome.conf
Restarting Apache
Executing /usr/local/apache2/bin/apachectl restart
Getting an OME::Util::cURL user agent
Generated mod_perl test script:
#!/usr/bin/perl -w
use strict;
use CGI qw/-no_xhtml/;
my $CGI = CGI->new();
print $CGI->header(-type => 'text/plain'),
my ($key,$value);
while ( ($key, $value) = each %ENV)
{
print "$key = $value\n";
}
1;
Writing script to /OME/perl2/mod_perl_test.pl
Getting response from http://localhost/perl2/mod_perl_test.pl
Checking response from http://localhost/perl2/mod_perl_test.pl
Apache/mod_perl is not properly configured. Got an error response from http://localhost/perl2/mod_perl_test.pl:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /perl2/mod_perl_test.pl was not found on this server.</p>
<hr>
<address>Apache/2.2.6 (Fedora) Server at localhost Port 80</address>
</body></html>
Thanks & Regards,
Sriram.
_______________________________________________
ome-users mailing list
ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk><mailto:ome-users at lists.openmicroscopy.org.uk<mailto:ome-users at lists.openmicroscopy.org.uk>>
http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
More information about the ome-users
mailing list