[ome-users] Getting an error "Apache/mod_perl is not properly configured" while installing OME Server.

Curtis Rueden ctrueden at wisc.edu
Fri Oct 17 20:11:26 BST 2008


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> 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
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20081017/df71aa5c/attachment.html>


More information about the ome-users mailing list