<div dir="ltr">Hi Sriram,<br><br>Most likely, you just need to use the "Include" directive in your main Apache config file.<br><br>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.<br>
<br>As for where your actual main Apache config file is, look for a sites-available directory somewhere under /usr/local/apache2, I think.<br><br>I am not an expert on Apache so you might want to CC the list with any follow-up questions.<br>
<br>-Curtis<br><br><div class="gmail_quote">On Fri, Oct 17, 2008 at 4:26 PM, Nandakumar, Sriramkumar <span dir="ltr"><<a href="mailto:sriramkumar@uky.edu">sriramkumar@uky.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Curtis,<br>
Thanks for the email.<br>
I have installed apache in /usr/local/apache2 manually.<br>
I don't know where to include this reference for OME.<br>
Could you please assist me in this?<br>
<br>
Thanks in advance.<br>
<br>
<br>
Thanks & Regards,<br>
Sriram.<br>
________________________________________<br>
From: <a href="mailto:ctrueden.wisc@gmail.com">ctrueden.wisc@gmail.com</a> [<a href="mailto:ctrueden.wisc@gmail.com">ctrueden.wisc@gmail.com</a>] On Behalf Of Curtis Rueden [<a href="mailto:ctrueden@wisc.edu">ctrueden@wisc.edu</a>]<br>

Sent: Friday, October 17, 2008 3:11 PM<br>
To: Nandakumar, Sriramkumar<br>
Cc: <a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a><br>
Subject: Re: [ome-users] Getting an error "Apache/mod_perl is not properly configured" while installing OME Server.<br>
<div class="Ih2E3d"><br>
Hi Sriram,<br>
<br>
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.<br>

<br>
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.<br>

<br>
-Curtis<br>
<br>
</div><div><div></div><div class="Wj3C7c">On Fri, Oct 17, 2008 at 12:15 PM, Nandakumar, Sriramkumar <<a href="mailto:sriramkumar@uky.edu">sriramkumar@uky.edu</a><mailto:<a href="mailto:sriramkumar@uky.edu">sriramkumar@uky.edu</a>>> wrote:<br>

Hi,<br>
I am facing a problem while installing OME server.<br>
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 <a href="http://localhost/perl2/mod_perl_test.pl" target="_blank">http://localhost/perl2/mod_perl_test.pl</a>:" and the script exits abnormally.<br>

It could really helpful if anyone has assist me in resolving this.<br>
<br>
Please find the ApacheConfigTask.log file below,<br>
<br>
Apache setup<br>
Apache binary: /usr/local/apache2/bin/httpd<br>
apachectl binary: /usr/local/apache2/bin/apachectl<br>
httpd root: /usr/local/apache2<br>
httpd conf: /usr/local/apache2/conf/httpd.conf<br>
httpd version: 2<br>
Apache configuration:<br>
       Configure Apache?: yes<br>
 Developer configuration: no<br>
         Server restart?: yes<br>
Install OME servers:<br>
          Images (omeis): yes<br>
            Data (omeds): yes<br>
                     Web: yes<br>
Apache directories:<br>
            httpd binary: /usr/local/apache2/bin/httpd<br>
        apachectl binary: /usr/local/apache2/bin/apachectl<br>
            DocumentRoot: /usr/local/apache2/htdocs<br>
                 cgi-bin: /usr/local/apache2/cgi-bin/<br>
Web-UI HTML Templates:<br>
 Developer configuration: no<br>
Configuring Apache<br>
httpd.conf is /usr/local/apache2/conf/httpd.conf<br>
Installing OMEIS<br>
Copying src/C/omeis/omeis to /usr/local/apache2/cgi-bin//omeis<br>
chmod 0755 /usr/local/apache2/cgi-bin//omeis<br>
chown /usr/local/apache2/cgi-bin//omeis to uid: 48 gid: 502<br>
Set APACHE_OMEIS_INCLUDE to Include /OME/conf/httpd2.omeis.conf<br>
Forking a process to upgrade OMEIS<br>
Installing OMEDS<br>
Set APACHE_OMEDS_INCLUDE to Include /OME/conf/httpd2.omeds.conf<br>
Installing WEB<br>
Copying src/perl2/serve.pl to /OME/perl2/serve.pl<br>
chmod 0755 /OME/perl2/serve.pl<br>
chown /OME/perl2/serve.pl to uid: 48 gid: 502<br>
Copying src/html/index.html to /usr/local/apache2/htdocs/index.html<br>
chmod 0644 /usr/local/apache2/htdocs/index.html<br>
chmod 0644 /usr/local/apache2/htdocs/favicon.ico<br>
Set APACHE_WEB_INCLUDE to Include /OME/conf/httpd2.web.conf<br>
Installing DAE web by copying NonblockingSlaveWorkerCGI<br>
Copying src/perl2/OME/Analysis/Engine/NonblockingSlaveWorkerCGI.pl to /OME/perl2/NonblockingSlaveWorkerCGI.pl<br>
chmod 0755 /OME/perl2/NonblockingSlaveWorkerCGI.pl<br>
chown /OME/perl2/NonblockingSlaveWorkerCGI.pl to uid: 48 gid: 502<br>
Installing OME-startup.pl<br>
Copying src/perl2/OME-startup.pl to /OME/conf/OME-startup.pl<br>
chown /OME/conf/OME-startup.pl to uid: 48 gid: 502<br>
Fixing variables in conf/httpd.ome.*.conf<br>
Replacing %OME_DIST_BASE with /home/kimlab/Desktop/OME/OME-2.6.1<br>
Replacing %OME_INSTALL_BASE with /OME<br>
Reading /OME/conf/httpd.ome.conf<br>
Writing /OME/conf/httpd.ome.conf<br>
Reading /OME/conf/httpd.omeds-dev.conf<br>
Writing /OME/conf/httpd.omeds-dev.conf<br>
Reading /OME/conf/httpd.omeds.conf<br>
Writing /OME/conf/httpd.omeds.conf<br>
Reading /OME/conf/httpd.omeis-dev.conf<br>
Writing /OME/conf/httpd.omeis-dev.conf<br>
Reading /OME/conf/httpd.omeis.conf<br>
Writing /OME/conf/httpd.omeis.conf<br>
Reading /OME/conf/httpd.web-dev.conf<br>
Writing /OME/conf/httpd.web-dev.conf<br>
Reading /OME/conf/httpd.web.conf<br>
Writing /OME/conf/httpd.web.conf<br>
Reading /OME/conf/httpd1.99.omeds-dev.conf<br>
Writing /OME/conf/httpd1.99.omeds-dev.conf<br>
Reading /OME/conf/httpd1.99.omeds.conf<br>
Writing /OME/conf/httpd1.99.omeds.conf<br>
Reading /OME/conf/httpd1.99.omeis-dev.conf<br>
Writing /OME/conf/httpd1.99.omeis-dev.conf<br>
Reading /OME/conf/httpd1.99.omeis.conf<br>
Writing /OME/conf/httpd1.99.omeis.conf<br>
Reading /OME/conf/httpd1.99.web-dev.conf<br>
Writing /OME/conf/httpd1.99.web-dev.conf<br>
Reading /OME/conf/httpd1.99.web.conf<br>
Writing /OME/conf/httpd1.99.web.conf<br>
Reading /OME/conf/httpd2.omeds-dev.conf<br>
Writing /OME/conf/httpd2.omeds-dev.conf<br>
Reading /OME/conf/httpd2.omeds.conf<br>
Writing /OME/conf/httpd2.omeds.conf<br>
Reading /OME/conf/httpd2.omeis-dev.conf<br>
Writing /OME/conf/httpd2.omeis-dev.conf<br>
Reading /OME/conf/httpd2.omeis.conf<br>
Writing /OME/conf/httpd2.omeis.conf<br>
Reading /OME/conf/httpd2.web-dev.conf<br>
Writing /OME/conf/httpd2.web-dev.conf<br>
Reading /OME/conf/httpd2.web.conf<br>
Writing /OME/conf/httpd2.web.conf<br>
Reading /OME/conf/httpd.ome.conf<br>
Writing /OME/conf/httpd.ome.conf<br>
Restarting Apache<br>
Executing /usr/local/apache2/bin/apachectl restart<br>
Getting an OME::Util::cURL user agent<br>
Generated mod_perl test script:<br>
#!/usr/bin/perl -w<br>
use strict;<br>
use CGI qw/-no_xhtml/;<br>
<br>
my $CGI = CGI->new();<br>
print $CGI->header(-type => 'text/plain'),<br>
<br>
<br>
my ($key,$value);<br>
while ( ($key, $value) = each %ENV)<br>
{<br>
       print "$key = $value\n";<br>
}<br>
<br>
<br>
1;<br>
<br>
Writing script to /OME/perl2/mod_perl_test.pl<br>
Getting response from <a href="http://localhost/perl2/mod_perl_test.pl" target="_blank">http://localhost/perl2/mod_perl_test.pl</a><br>
Checking response from <a href="http://localhost/perl2/mod_perl_test.pl" target="_blank">http://localhost/perl2/mod_perl_test.pl</a><br>
Apache/mod_perl is not properly configured.  Got an error response from <a href="http://localhost/perl2/mod_perl_test.pl" target="_blank">http://localhost/perl2/mod_perl_test.pl</a>:<br>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><br>
<html><head><br>
<title>404 Not Found</title><br>
</head><body><br>
<h1>Not Found</h1><br>
<p>The requested URL /perl2/mod_perl_test.pl was not found on this server.</p><br>
<hr><br>
<address>Apache/2.2.6 (Fedora) Server at localhost Port 80</address><br>
</body></html><br>
<br>
<br>
<br>
Thanks & Regards,<br>
Sriram.<br>
_______________________________________________<br>
ome-users mailing list<br>
</div></div><a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a><mailto:<a href="mailto:ome-users@lists.openmicroscopy.org.uk">ome-users@lists.openmicroscopy.org.uk</a>><br>

<div><div></div><div class="Wj3C7c"><a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>
<br>
</div></div></blockquote></div><br></div>