Apache2: Could not reliably determine the server's fully qualified domain name

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
erw1
Level 1
Level 1
Posts: 41
Joined: Sun Apr 08, 2018 12:58 am

Apache2: Could not reliably determine the server's fully qualified domain name

Post by erw1 » Thu Apr 12, 2018 7:00 pm

After installing/launching dwww, I get error AH00558. I edited the etc/apache2/apache2.conf according to the most common resolution which has partially solved the problem: the menu page does load, and I can navigate within it but only down to, and excluding terminal nodes (e.g. bash's html manual). Then, I get a 500 internal server error. I would like to know what steps I could take to diagnose this problem.
Screenshot from 2018-04-12 18-58-02.png
What I did:

Code: Select all

$ sudo apt install dwww
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libfile-ncopy-perl liblua5.1-0 libmime-types-perl
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom doc-debian dpkg-www
  libmojolicious-perl
Recommended packages:
  dlocate info2www swish++
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils dwww libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap libfile-ncopy-perl liblua5.1-0 libmime-types-perl
0 upgraded, 12 newly installed, 0 to remove and 276 not upgraded.
Need to get 498 kB/1,708 kB of archives.
After this operation, 7,017 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-utils amd64 2.4.18-2ubuntu3.5 [82.3 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2-data all 2.4.18-2ubuntu3.5 [162 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apache2 amd64 2.4.18-2ubuntu3.5 [86.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libfile-ncopy-perl all 0.36-1 [13.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 libmime-types-perl all 2.12-1ubuntu1 [52.6 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/universe amd64 dwww amd64 1.13.1 [102 kB]
Fetched 498 kB in 0s (500 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libapr1:amd64.
(Reading database ... 381079 files and directories currently installed.)
Preparing to unpack .../libapr1_1.5.2-3_amd64.deb ...
Unpacking libapr1:amd64 (1.5.2-3) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../libaprutil1_1.5.4-1build1_amd64.deb ...
Unpacking libaprutil1:amd64 (1.5.4-1build1) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../libaprutil1-dbd-sqlite3_1.5.4-1build1_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.4-1build1) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../libaprutil1-ldap_1.5.4-1build1_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.5.4-1build1) ...
Selecting previously unselected package liblua5.1-0:amd64.
Preparing to unpack .../liblua5.1-0_5.1.5-8ubuntu1_amd64.deb ...
Unpacking liblua5.1-0:amd64 (5.1.5-8ubuntu1) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../apache2-bin_2.4.18-2ubuntu3.5_amd64.deb ...
Unpacking apache2-bin (2.4.18-2ubuntu3.5) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../apache2-utils_2.4.18-2ubuntu3.5_amd64.deb ...
Unpacking apache2-utils (2.4.18-2ubuntu3.5) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.18-2ubuntu3.5_all.deb ...
Unpacking apache2-data (2.4.18-2ubuntu3.5) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.18-2ubuntu3.5_amd64.deb ...
Unpacking apache2 (2.4.18-2ubuntu3.5) ...
Selecting previously unselected package libfile-ncopy-perl.
Preparing to unpack .../libfile-ncopy-perl_0.36-1_all.deb ...
Unpacking libfile-ncopy-perl (0.36-1) ...
Selecting previously unselected package libmime-types-perl.
Preparing to unpack .../libmime-types-perl_2.12-1ubuntu1_all.deb ...
Unpacking libmime-types-perl (2.12-1ubuntu1) ...
Selecting previously unselected package dwww.
Preparing to unpack .../archives/dwww_1.13.1_amd64.deb ...
Unpacking dwww (1.13.1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22+linuxmint1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libapr1:amd64 (1.5.2-3) ...
Setting up libaprutil1:amd64 (1.5.4-1build1) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.4-1build1) ...
Setting up libaprutil1-ldap:amd64 (1.5.4-1build1) ...
Setting up liblua5.1-0:amd64 (5.1.5-8ubuntu1) ...
Setting up apache2-bin (2.4.18-2ubuntu3.5) ...
Setting up apache2-utils (2.4.18-2ubuntu3.5) ...
Setting up apache2-data (2.4.18-2ubuntu3.5) ...
Setting up apache2 (2.4.18-2ubuntu3.5) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Setting up libfile-ncopy-perl (0.36-1) ...
Setting up libmime-types-perl (2.12-1ubuntu1) ...
Setting up dwww (1.13.1) ...

Creating config file /etc/dwww/dwww.conf with new version

Building dwww pages in the background...
apache2_invoke: Enable configuration dwww
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
$ sudo a2enmod cgi
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Your MPM seems to be threaded. Selecting cgid instead of cgi.
Enabling module cgid.
To activate the new configuration, you need to run:
  service apache2 restart
$ service apache2 restart
$ sudo sh -c "echo '# edit on 20180413' >> /etc/apache2/apache2.conf"
[sudo] password for er: 
$ sudo sh -c "echo 'ServerName localhost' >> /etc/apache2/apache2.conf"
$ cat /etc/apache2/apache2.conf | tail -n 5
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
# edit on 20180413
ServerName localhost
$ ls /usr/share/doc/bash-doc
bash.html  bash.pdf  bashref.html  bashref.pdf  changelog.Debian.gz  changelog.gz  copyright  examples
/etc/dwww/dwww.conf:

Code: Select all

## Dwww configuration file, see dwww(7) for details.
## The file is in Bourne shell script format, thus no spaces
## may be used in variables assignments.

## The  directory  which contains the CGI scripts for the web server.
## default: /usr/lib/cgi-bin
DWWW_CGIDIR='/usr/lib/cgi-bin'

## Name of the user the web server uses to execute CGI script.
## default: www-data
DWWW_CGIUSER='www-data'

## The document root for web server.
## default: /var/www
DWWW_DOCROOTDIR='/var/www'

## Name of the www server dwww(1) will connect to.
## default: localhost
DWWW_SERVERNAME='yogurt'

## Port of the www server dwww(1) will connect to.
## default: 80
DWWW_SERVERPORT='80'

## Should dwww(1) use the HTTPS protocol for connecting.
## default: no
# DWWW_USEHTTPS='no'

## Web-browser used by dwww(1) to load dwww main page.
# DWWW_BROWSER=''

## Web-browser used by dwww(1) to load dwww main page in X11 mode.
# DWWW_X11_BROWSER=''

## Colon-delimited list of directories dwww-convert(8) supplies files from.
## default: /usr/share/doc:/usr/share/info:/usr/share/man:/usr/local/share/doc:/usr/local/share/info:/usr/local/share/man:/usr/share/common-licenses
# DWWW_DOCPATH='/usr/share/doc:/usr/share/info:/usr/share/man:/usr/local/share/doc:/usr/local/share/info:/usr/local/share/man:/usr/share/common-licenses'

## Colon-delimited list of directories that could be targets of symlinks.
## default: /usr/share:/usr/lib:/usr/local/share:/var/www
# DWWW_ALLOWEDLINKPATH='/usr/share:/usr/lib:/usr/local/share:/var/www'

## Location of cache of installed packages and programs.
## default: /var/cache/dwww/quickfind.dat
# DWWW_QUICKFIND_DB='/var/cache/dwww/quickfind.dat'

## Location of cache of doc-base file to package mapping.
## default: /var/cache/dwww/docbase2pkg.dat
# DWWW_DOCBASE2PKG_DB='/var/cache/dwww/docbase2pkg.dat'

## Location of cache of doc-base registered documents.
## default: /var/cache/dwww/regdocs.dat
# DWWW_REGDOCS_DB='/var/cache/dwww/regdocs.dat'

## Should dwww-index++(8) index documentation with swish++.
## default: yes
# DWWW_INDEX_DOCUMENTATION='yes'

## How often (in days) dwww-index++(8) will generate full index of documentation.
## default: 28
# DWWW_INDEX_FULL_TIME_INTERVAL='28'

## How often (in days) dwww-index++(8) will generate incremental index of documentation.
## default: 7
# DWWW_INDEX_INCREMENTAL_TIME_INTERVAL='7'

## Should dwww-index++(8) use index generated by man2html.
## default: no
# DWWW_MERGE_MAN2HTML_INDEX='no'

## How many days should dwww-refresh-cache(8) keep documents that have not been accessed.
## default: 10
# DWWW_KEEPDAYS='10'

## Title to appear on dwww generated files.
## default: dwww: yogurt
# DWWW_TITLE='dwww: yogurt'

## Temporary directory used by dwww-build(8) and dwww-build-menu(8).
## default: /var/lib/dwww
# DWWW_TMPDIR='/var/lib/dwww'

## Should dwww-convert(8) generate file:/ urls.
## default: no
# DWWW_USEFILEURL='no'

## Should dwww cache accessed documents?
## default: yes
# DWWW_USE_CACHE='yes'
/etc/apache2/apache2.conf after edit (last two lines)

Code: Select all

# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#	/etc/apache2/
#	|-- apache2.conf
#	|	`--  ports.conf
#	|-- mods-enabled
#	|	|-- *.load
#	|	`-- *.conf
#	|-- conf-enabled
#	|	`-- *.conf
# 	`-- sites-enabled
#	 	`-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main configuration file. It is
#   supposed to determine listening ports for incoming connections which can be
#   customized anytime.
#
# * Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/
#   directories contain particular configuration snippets which manage modules,
#   global configuration fragments, or virtual host configurations,
#   respectively.
#
#   They are activated by symlinking available configuration files from their
#   respective *-available/ counterparts. These should be managed by using our
#   helpers a2enmod/a2dismod, a2ensite/a2dissite and a2enconf/a2disconf. See
#   their respective man pages for detailed information.
#
# * The binary is called apache2. Due to the use of environment variables, in
#   the default configuration, apache2 needs to be started/stopped with
#   /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not
#   work with the default configuration.


# Global configuration
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the Mutex documentation (available
# at <URL:http://httpd.apache.org/docs/2.4/mod/core.html#mutex>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"

#
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.
#
Mutex file:${APACHE_LOCK_DIR} default

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5


# These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

# 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 ${APACHE_LOG_DIR}/error.log

#
# LogLevel: Control the severity of messages logged to the error_log.
# Available values: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the log level for particular modules, e.g.
# "LogLevel info ssl:warn"
#
LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf


# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
	Options FollowSymLinks
	AllowOverride None
	Require all denied
</Directory>

<Directory /usr/share>
	AllowOverride None
	Require all granted
</Directory>

<Directory /var/www/>
	Options Indexes FollowSymLinks
	AllowOverride None
	Require all granted
</Directory>

#<Directory /srv/>
#	Options Indexes FollowSymLinks
#	AllowOverride None
#	Require all granted
#</Directory>




# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
	Require all denied
</FilesMatch>


#
# The following directives define some format nicknames for use with
# a CustomLog directive.
#
# These deviate from the Common Log Format definitions in that they use %O
# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
# edit on 20180413
ServerName localhost
/var/apache2/error.log

Code: Select all

[Thu Apr 12 17:31:25.100160 2018] [mpm_event:notice] [pid 7310:tid 139762086999936] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Thu Apr 12 17:31:25.100247 2018] [core:notice] [pid 7310:tid 139762086999936] AH00094: Command line: '/usr/sbin/apache2'
[Thu Apr 12 17:31:28.597364 2018] [mpm_event:notice] [pid 7310:tid 139762086999936] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Thu Apr 12 17:31:28.602540 2018] [mpm_event:notice] [pid 7310:tid 139762086999936] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Thu Apr 12 17:31:28.602549 2018] [core:notice] [pid 7310:tid 139762086999936] AH00094: Command line: '/usr/sbin/apache2'
[Thu Apr 12 17:42:52.319632 2018] [mpm_event:notice] [pid 7310:tid 139762086999936] AH00491: caught SIGTERM, shutting down
[Thu Apr 12 17:42:53.373341 2018] [mpm_event:notice] [pid 8503:tid 140458425730944] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Thu Apr 12 17:42:53.373449 2018] [core:notice] [pid 8503:tid 140458425730944] AH00094: Command line: '/usr/sbin/apache2'
bash-doc: nothing appropriate.
[Thu Apr 12 17:43:36.925446 2018] [http:error] [pid 8508:tid 140458333574912] [client 127.0.0.1:50838] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 17:43:36.925548 2018] [cgid:error] [pid 8508:tid 140458333574912] (-102)Unknown error -102: [client 127.0.0.1:50838] AH02550: Failed to flush CGI output to client, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 17:43:44.284864 2018] [http:error] [pid 8507:tid 140458248369920] [client 127.0.0.1:50842] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 17:43:44.284922 2018] [cgid:error] [pid 8507:tid 140458248369920] (-102)Unknown error -102: [client 127.0.0.1:50842] AH02550: Failed to flush CGI output to client, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 17:43:58.954952 2018] [http:error] [pid 8507:tid 140458231584512] [client 127.0.0.1:50848] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 17:43:58.960674 2018] [cgid:error] [pid 8507:tid 140458231584512] (-102)Unknown error -102: [client 127.0.0.1:50848] AH02550: Failed to flush CGI output to client, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 17:44:07.671202 2018] [http:error] [pid 8507:tid 140458223191808] [client 127.0.0.1:50854] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 17:44:07.672127 2018] [cgid:error] [pid 8507:tid 140458223191808] (-102)Unknown error -102: [client 127.0.0.1:50854] AH02550: Failed to flush CGI output to client, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 18:01:38.406837 2018] [http:error] [pid 8507:tid 140458214799104] [client 127.0.0.1:51466] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 18:01:38.407634 2018] [cgid:error] [pid 8507:tid 140458214799104] (-102)Unknown error -102: [client 127.0.0.1:51466] AH02550: Failed to flush CGI output to client, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
bash-doc: nothing appropriate.
[Thu Apr 12 18:02:38.294470 2018] [http:error] [pid 8508:tid 140458214799104] [client 127.0.0.1:51476] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
[Thu Apr 12 18:02:38.294531 2018] [cgid:error] [pid 8508:tid 140458214799104] (-102)Unknown error -102: [client 127.0.0.1:51476] AH02550: Failed to flush CGI output to client, referer: http://yogurt/cgi-bin/dwww?search=bash-doc
bash-doc: nothing appropriate.
[Thu Apr 12 18:18:51.504078 2018] [http:error] [pid 8507:tid 140458156050176] [client 127.0.0.1:51814] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/dwww/menu/sshells.html
[Thu Apr 12 18:18:51.511330 2018] [cgid:error] [pid 8507:tid 140458156050176] (-102)Unknown error -102: [client 127.0.0.1:51814] AH02550: Failed to flush CGI output to client, referer: http://yogurt/dwww/menu/sshells.html
[Thu Apr 12 18:29:31.610758 2018] [http:error] [pid 8507:tid 140458139264768] [client 127.0.0.1:53530] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/dwww/menu/sshells.html
[Thu Apr 12 18:29:31.611759 2018] [cgid:error] [pid 8507:tid 140458139264768] (-102)Unknown error -102: [client 127.0.0.1:53530] AH02550: Failed to flush CGI output to client, referer: http://yogurt/dwww/menu/sshells.html
[Thu Apr 12 18:46:57.274691 2018] [http:error] [pid 8507:tid 140458114086656] [client 127.0.0.1:53622] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/cgi-bin/dwww?search=bash&programsubmit=Search&searchtype=m
[Thu Apr 12 18:46:57.280415 2018] [cgid:error] [pid 8507:tid 140458114086656] (-102)Unknown error -102: [client 127.0.0.1:53622] AH02550: Failed to flush CGI output to client, referer: http://yogurt/cgi-bin/dwww?search=bash&programsubmit=Search&searchtype=m
[Thu Apr 12 19:02:51.838807 2018] [mpm_event:notice] [pid 8503:tid 140458425730944] AH00491: caught SIGTERM, shutting down
[Thu Apr 12 19:02:53.070173 2018] [mpm_event:notice] [pid 13337:tid 140312617482112] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Thu Apr 12 19:02:53.070282 2018] [core:notice] [pid 13337:tid 140312617482112] AH00094: Command line: '/usr/sbin/apache2'
[Thu Apr 12 19:03:03.253272 2018] [http:error] [pid 13342:tid 140312516933376] [client 127.0.0.1:53760] AH02429: Response header name 'Last modified' contains invalid characters, aborting request, referer: http://yogurt/cgi-bin/dwww?search=bash&programsubmit=Search&searchtype=m
[Thu Apr 12 19:03:03.262061 2018] [cgid:error] [pid 13342:tid 140312516933376] (-102)Unknown error -102: [client 127.0.0.1:53760] AH02550: Failed to flush CGI output to client, referer: http://yogurt/cgi-bin/dwww?search=bash&programsubmit=Search&searchtype=m
x64/LM 18.3 alongside Win 10

deepakdeshp
Level 11
Level 11
Posts: 3686
Joined: Sun Aug 09, 2015 10:00 am

Re: Apache2: Could not reliably determine the server's fully qualified domain name

Post by deepakdeshp » Mon Apr 16, 2018 2:15 pm

Code: Select all

sudo hostname xyz.com
Please run this command then retry. Does the error go? If yes then add appropriate entry in /etc/hosts
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

erw1
Level 1
Level 1
Posts: 41
Joined: Sun Apr 08, 2018 12:58 am

Re: Apache2: Could not reliably determine the server's fully qualified domain name

Post by erw1 » Mon Apr 16, 2018 2:31 pm

What would xyz.com be? Reminder: I'm trying to use albfan/dwww that taps into /usr/share/doc to diplays docs in the browser. If the answer is 'localhost', I tried it, that didn't help.
x64/LM 18.3 alongside Win 10

erw1
Level 1
Level 1
Posts: 41
Joined: Sun Apr 08, 2018 12:58 am

Re: Apache2: Could not reliably determine the server's fully qualified domain name

Post by erw1 » Fri Apr 20, 2018 10:22 am

Any suggestion to start troubleshooting this issue?
x64/LM 18.3 alongside Win 10

deepakdeshp
Level 11
Level 11
Posts: 3686
Joined: Sun Aug 09, 2015 10:00 am

Re: Apache2: Could not reliably determine the server's fully qualified domain name

Post by deepakdeshp » Fri Apr 20, 2018 1:30 pm

This should help esp the configuration part.
https://tutorials.ubuntu.com/tutorial/i ... ure-apache
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
I am using Mint 19 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

erw1
Level 1
Level 1
Posts: 41
Joined: Sun Apr 08, 2018 12:58 am

Re: Apache2: Could not reliably determine the server's fully qualified domain name

Post by erw1 » Fri Apr 20, 2018 6:06 pm

Sorry but I don't know what to make of the suggested tutorial. It's interpreting the error log that would help.

I'm able to query man pages without problem this way:

Code: Select all

http://localhost/cgi-bin/man/man2html?query=find
There was a similar post here, didn't help resolving the issue:

https://askubuntu.com/questions/557894/ ... www#561068
x64/LM 18.3 alongside Win 10

Post Reply

Return to “Software & Applications”