[ome-users] Ome installation Apache problems

gerhard bi1825 at fh-weihenstephan.de
Wed Aug 17 16:58:26 BST 2005


Ilya Goldberg wrote:
> Hmm, that appears to be fairly normal.
> For some reason the modification to your httpd.conf doesn't "take". 
> Can you also send /etc/apache2/httpd.conf?
>
> Thanks
> -I
>
> On Aug 17, 2005, at 10:46 AM, gerhard wrote:
>
>> Ilya Goldberg wrote:
>>> I am not sure how Suse configures its Apache or wether or not the
>>> Apache installation was modified from the stock distribution.
>>> Unfortunately, there are as many ways of configuring apache as there
>>> are unix systems on which it runs.  Also, the linux distribution you
>>> are using (Suse) is not regularly tested - the distributions that are
>>> regularly tested are RedHat Fedora Core 1, 2 and 3, Debian, and OS X
>>> (although the latest versions of Debian and OS X 10.4 are having some
>>> issues we are trying to resolve).  Unfortunately, we don't have the
>>> resources to support and regularly test all possible unix variants so
>>> we try to hit the most "popular".
>>>
>>> You got an error because the location of the test script on the file
>>> system (/OME/perl2/mod_perl_test.pl) did not resolve properly when
>>> accessed through a URL (http://localhost/perl2/mod_perl_test.pl).
>>> There are several reasons why this could have happened - most likely a
>>> problem with the apache configuration file (/etc/apache2/httpd.conf).
>>> It would be helpful if you sent the contents of
>>> /var/tmp/OME/install/ApacheConfigTask.log.  It may help diagnose the
>>> problem.
>>>
>>> If you would like to try Fedora Core 1, 2 or 3 you might be able to
>>> avoid installation problems that way.
>>>
>>> -Ilya
>>>
>>>
>>> On Aug 17, 2005, at 8:44 AM, Gerhard Trapp wrote:
>>>
>>>> Hello,
>>>> I try at the moment to set up an ome server, but everytime the
>>>> installation
>>>> process stops at the apache setup. I know there exist already a
>>>> thread about
>>>> apche problems but I think my problem is different. The
>>>> apache packages are installed and the server is running. I think the
>>>> configuration of the apache server is done by the ome installer.
>>>> I hope you can help me.
>>>>
>>>> Thanks in advance for any reply
>>>>
>>>> gerhard
>>>> bi1825 at fh-weihenstephan.de
>>>>
>>>>
>>>> Heres the output of the console. I always used the standard options.
>>>>
>>>> Apache configuration:
>>>>         Configure Apache?: yes
>>>>   Developer configuration: no
>>>>           Server restart?: yes
>>>> Install OME servers:
>>>>            Images (omeis): yes
>>>>              Data (omeds): yes
>>>>                       Web: yes
>>>> Apache directories:
>>>>              DocumentRoot: /srv/www/htdocs
>>>>                   cgi-bin: /srv/www/cgi-bin
>>>>
>>>> Are these values correct ? [y/n]:
>>>> Apache httpd.conf does not have an Include directive for
>>>> "/OME/conf/httpd.ome.conf"
>>>> fix "/etc/apache2/httpd.conf" ? [y/n]:
>>>> httpd2: Could not determine the server's fully qualified domain name,
>>>> using
>>>> 127.0.0.1 for ServerName
>>>> Testing Apache configuration
>>>>   \__ mod_perl [FAILURE].
>>>>
>>>>
>>>> Errors executing task: Apache/mod_perl is not properly configured.
>>>> Got an
>>>> error response from http://localhost/perl2/mod_perl_test.pl:
>>>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>>>>   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>>>> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
>>>> <head>
>>>> <title>Object not found!</title>
>>>> <link rev="made" href="mailto:%5bno%20address%20given%5d" />
>>>> <style type="text/css"><!--/*--><![CDATA[/*><!--*/
>>>>     body { color: #000000; background-color: #FFFFFF; }
>>>>     a:link { color: #0000CC; }
>>>>     p, address {margin-left: 3em;}
>>>>     span {font-size: smaller;}
>>>> /*]]>*/--></style>
>>>> </head>
>>>>
>>>> <body>
>>>> <h1>Object not found!</h1>
>>>> <p>
>>>>
>>>>
>>>>     The requested URL was not found on this server.
>>>>
>>>>
>>>>
>>>>     If you entered the URL manually please check your
>>>>     spelling and try again.
>>>>
>>>>
>>>>
>>>> </p>
>>>> <p>
>>>> If you think this is a server error, please contact
>>>> the <a href="mailto:%5bno%20address%20given%5d">webmaster</a>.
>>>>
>>>> </p>
>>>>
>>>> <h2>Error 404</h2>
>>>> <address>
>>>>   <a href="/">localhost</a><br />
>>>>
>>>>   <span>Wed Aug 17 13:33:41 2005<br />
>>>>   Apache/2.0.53 (Linux/SUSE)</span>
>>>> </address>
>>>> </body>
>>>> </html>
>>>>
>>>>
>>>> See /var/tmp/OME/install/ApacheConfigTask.log for more details. at
>>>> (eval 83)
>>>> line 1
>>>>
>>>>  at install.pl line 80
>>>>         main::run_tasks() called at install.pl line 249
>>>> # Looks like your test died before it could output anything.
>>>>
>>>>
>>>> _______________________________________________
>>>> ome-users mailing list
>>>> ome-users at lists.openmicroscopy.org.uk
>>>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>>>>
>>>
>>>
>> Thanks everyone for the fast reply.
>>
>> Here is the content of /var/tmp/OME/install/ApcheConfigTask.log
>>
>> Apache setup
>> Apache configuration:
>>         Configure Apache?: yes
>>   Developer configuration: no
>>           Server restart?: yes
>> Install OME servers:
>>            Images (omeis): yes
>>              Data (omeds): yes
>>                       Web: yes
>> Apache directories:
>>              DocumentRoot: /srv/www/htdocs
>>                   cgi-bin: /srv/www/cgi-bin
>> Configuring Apache
>> httpd.conf is /etc/apache2/httpd.conf
>> Apache httpd.conf does not have an Include directive for
>> "/OME/conf/httpd.ome.conf"
>> Installing OMEIS
>> Copying src/C/omeis/omeis to /srv/www/cgi-bin/omeis
>> chmod 0755 /srv/www/cgi-bin/omeis
>> chown /srv/www/cgi-bin/omeis to uid: 30 gid: 1000
>> 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: 30 gid: 1000
>> Copying src/html/index.html to /srv/www/htdocs/index.html
>> chmod 0755 /srv/www/htdocs/index.html
>> chown /srv/www/htdocs/index.html to uid: 30 gid: 1000
>> Set APACHE_WEB_INCLUDE to Include /OME/conf/httpd2.web.conf
>> Fixing variables in conf/httpd.ome.*.conf
>> Replacing %OME_DIST_BASE with /home/gerhard/OME/OME
>> 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/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/sbin/apache2ctl restart
>> Getting an LWP user agent
>> Generated mod_perl test script:
>> #!/usr/bin/perl -w
>> use strict;
>> print "Content-Type: text/plain\n\n";
>>
>> my ($key,$value);
>> while ( ($key, $value) = each %ENV)
>> {
>>         print "$key = $value\n";
>> }
>>
>>
>> 1;
>>
>> Writing script to /OME/perl2/mod_perl_test.pl
>> Making an HTTP::Request object for
>> http://localhost/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:
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>>   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
>> <head>
>> <title>Object not found!</title>
>> <link rev="made" href="mailto:%5bno%20address%20given%5d" />
>> <style type="text/css"><!--/*--><![CDATA[/*><!--*/
>>     body { color: #000000; background-color: #FFFFFF; }
>>     a:link { color: #0000CC; }
>>     p, address {margin-left: 3em;}
>>     span {font-size: smaller;}
>> /*]]>*/--></style>
>> </head>
>>
>> <body>
>> <h1>Object not found!</h1>
>> <p>
>>
>>
>>     The requested URL was not found on this server.
>>
>>
>>
>>     If you entered the URL manually please check your
>>     spelling and try again.
>>
>>
>>
>> </p>
>> <p>
>> If you think this is a server error, please contact
>> the <a href="mailto:%5bno%20address%20given%5d">webmaster</a>.
>>
>> </p>
>>
>> <h2>Error 404</h2>
>> <address>
>>   <a href="/">localhost</a><br />
>>
>>   <span>Wed Aug 17 16:10:13 2005<br />
>>   Apache/2.0.53 (Linux/SUSE)</span>
>> </address>
>> </body>
>> </html>
>>
>
>
Ok here it is, but it is the standard file. The only thing I changed is
the following.
# Include the Module
LoadModule perl_module /usr/lib/apache2/mod_perl.so


This is only to make mod_perl work.
 I did it that way because I wanted to make sure that it is really loaded.



#
# /etc/apache2/httpd.conf 
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.

# Based upon the default apache configuration file that ships with apache,
# which is based upon the NCSA server configuration files originally by Rob
# McCool. This file was knocked together by Peter Poeml <poeml+apache at suse.de>.

# If possible, avoid changes to this file. It does mainly contain Include
# statements and global settings that can/should be overridden in the
# configuration of your virtual hosts.


# Overview of include files, chronologically:
#
# httpd.conf
#  | 
#  |-- uid.conf  . . . . . . . . . . . . . .  UserID/GroupID to run under
#  |-- server-tuning.conf  . . . . . . . . .  sizing of the server (how many processes to start, ...)
#  |-- sysconfig.d/loadmodule.conf . . . . .  [*] load these modules
#  |-- listen.conf . . . . . . . . . . . . .  IP adresses / ports to listen on
#  |-- mod_log_config.conf . . . . . . . . .  define logging formats
#  |-- sysconfig.d/global.conf . . . . . . .  [*] server-wide general settings
#  |-- mod_status.conf . . . . . . . . . . .  restrict access to mod_status (server monitoring)
#  |-- mod_info.conf . . . . . . . . . . . .  restrict access to mod_info
#  |-- mod_usertrack.conf  . . . . . . . . .  defaults for cookie-based user tracking
#  |-- mod_autoindex-defaults.conf . . . . .  defaults for displaying of server-generated directory listings
#  |-- mod_mime-defaults.conf  . . . . . . .  defaults for mod_mime configuration
#  |-- errors.conf . . . . . . . . . . . . .  customize error responses
#  |-- ssl-global.conf . . . . . . . . . . .  SSL conf that applies to default server _and all_ virtual hosts
#  |
#  |-- default-server.conf . . . . . . . . .  set up the default server that replies to non-virtual-host requests
#  |    |--mod_userdir.conf  . . . . . . . .  enable UserDir (if mod_userdir is loaded)
#  |    `--conf.d/apache2-manual?conf  . . .  add the docs ('?' = if installed)
#  |
#  |-- sysconfig.d/include.conf  . . . . . .  [*] your include files 
#  |                                             (for each file to be included here, put its name 
#  |                                              into APACHE_INCLUDE_* in /etc/sysconfig/apache2)
#  |
#  `-- vhosts.d/ . . . . . . . . . . . . . .  for each virtual host, place one file here
#       `-- *.conf . . . . . . . . . . . . .     (*.conf is automatically included)
#
#
# Files marked [*] are created from sysconfig upon server restart: instead of
# these files, you edit /etc/sysconfig/apache2



#  Filesystem layout:
#
# /etc/apache2/
#  |-- conf.d/
#  |   |-- apache2-manual.conf . . . . . . .  conf that comes with apache2-doc
#  |   |-- mod_php4.conf . . . . . . . . . .  (example) conf that comes with apache2-mod_php4
#  |   `-- ... . . . . . . . . . . . . . . .  other configuration added by packages
#  |-- default-server.conf
#  |-- errors.conf
#  |-- httpd.conf  . . . . . . . . . . . . .  top level configuration file
#  |-- listen.conf
#  |-- magic
#  |-- mime.types -> ../mime.types
#  |-- mod_autoindex-defaults.conf
#  |-- mod_info.conf
#  |-- mod_log_config.conf
#  |-- mod_mime-defaults.conf
#  |-- mod_perl-startup.pl
#  |-- mod_status.conf
#  |-- mod_userdir.conf
#  |-- mod_usertrack.conf
#  |-- server-tuning.conf
#  |-- ssl-global.conf
#  |-- ssl.crl/  . . . . . . . . . . . . . .  PEM-encoded X.509 Certificate Revocation Lists (CRL)
#  |-- ssl.crt/  . . . . . . . . . . . . . .  PEM-encoded X.509 Certificates
#  |-- ssl.csr/  . . . . . . . . . . . . . .  PEM-encoded X.509 Certificate Signing Requests
#  |-- ssl.key/  . . . . . . . . . . . . . .  PEM-encoded RSA Private Keys
#  |-- ssl.prm/  . . . . . . . . . . . . . .  public DSA Parameter Files
#  |-- sysconfig.d/  . . . . . . . . . . . .  files that are created from /etc/sysconfig/apache2
#  |   |-- global.conf
#  |   |-- include.conf
#  |   `-- loadmodule.conf
#  |-- uid.conf
#  `-- vhosts.d/ . . . . . . . . . . . . . .  put your virtual host configuration (*.conf) here
#      |-- vhost-ssl.template
#      `-- vhost.template



### Global Environment ######################################################
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests.

# run under this user/group id
Include /etc/apache2/uid.conf

# - how many server processes to start (server pool regulation)
# - usage of KeepAlive
Include /etc/apache2/server-tuning.conf

# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
ErrorLog /var/log/apache2/error_log

# generated from APACHE_MODULES in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/loadmodule.conf

# IP addresses / ports to listen on
Include /etc/apache2/listen.conf

# predefined logging formats
Include /etc/apache2/mod_log_config.conf

# generated from global settings in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/global.conf

# optional mod_status, mod_info
Include /etc/apache2/mod_status.conf
Include /etc/apache2/mod_info.conf

# optional cookie-based user tracking
# read the documentation before using it!!
Include /etc/apache2/mod_usertrack.conf

# configuration of server-generated directory listings
Include /etc/apache2/mod_autoindex-defaults.conf

# associate MIME types with filename extensions
TypesConfig /etc/apache2/mime.types
DefaultType text/plain
Include /etc/apache2/mod_mime-defaults.conf

# set up (customizable) error responses
Include /etc/apache2/errors.conf

# global (server-wide) SSL configuration, that is not specific to 
# any virtual host
Include /etc/apache2/ssl-global.conf

# forbid access to the entire filesystem by default
<Directory />
    Options None
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

# List of resources to look for when the client requests a directory
DirectoryIndex index.html index.html.var

### 'Main' server configuration #############################################
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#
Include /etc/apache2/default-server.conf


# Another way to include your own files
#
# The file below is generated from /etc/sysconfig/apache2,
# include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
# APACHE_CONF_INCLUDE_DIRS
Include /etc/apache2/sysconfig.d/include.conf


### Virtual server configuration ############################################
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
Include /etc/apache2/vhosts.d/*.conf

# Include the Module
LoadModule perl_module /usr/lib/apache2/mod_perl.so

# Note: instead of adding your own configuration here, consider 
#       adding it in your own file (/etc/apache2/httpd.conf.local)
#       putting its name into APACHE_CONF_INCLUDE_FILES in 
#       /etc/sysconfig/apache2 -- this will make system updates 
#       easier :) 





More information about the ome-users mailing list