Page 1 of 1

apache config file for twiki

PostPosted: Aug 27th, '16, 14:32
by xboxboy
I'm trying to setup http://twiki.org/.
I have a minimal magiea vm install which I can log into directly, or ssh into, I have task-lamp installed and the webserver works fine on the local LAN network.
I downloaded the *tgz tarball, copied as root to /var/www/html/*.tgz, then extracted as the instructions say at http://twiki.org/cgi-bin/view/TWiki06x00/TWikiInstallationGuide, so it got extracted to /var/www/html/twiki/'files'

I then ran
Code: Select all
chown -R apache:apache /var/www/html/twiki
to set the directory permissions for apache.

I then went to http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator to generate the apache confi file for twiki. I think I haven't done this part right.

Code: Select all
# Autogenerated httpd.conf file for TWiki.
# Generated at http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator

# IMPORTANT NOTE: Make sure to enable mod_cgi in the primary apache configuration file.

# We set an environment variable called blockAccess.
#
# Setting a BrowserMatchNoCase to ^$ is important. It prevents TWiki from
# including its own topics as URLs and also prevents other TWikis from
# doing the same. This is important to prevent the most obvious
# Denial of Service attacks.
#
# You can expand this by adding more BrowserMatchNoCase statements to
# block evil browser agents trying the impossible task of mirroring a twiki
#
# Example:
# BrowserMatchNoCase ^SiteSucker blockAccess
# BrowserMatchNoCase ^$ blockAccess

BrowserMatchNoCase ^$ blockAccess

<IfModule mod_perl.c>
    # Mod_perl preloading
    PerlSwitches -T
</IfModule>

# The ScriptAlias defines the bin directory as a directory where CGI
# scripts are allowed.
# The first parameter will be part of the URL to your installation e.g.
# http://example.com/do/view/...
# The second parameter must point to the physical path on your disc.
ScriptAlias /do "/var/www/html/twiki/bin"

# The Alias defines a url that points to the twiki pub directory, which
# is the root of file attachments.
Alias /pub "/var/www/html/twiki/pub"

# This specifies the options on the TWiki scripts directory. The ExecCGI
# and SetHandler tell apache that it contains scripts. "Require all granted"
# lets any IP address access this URL.
<Directory "/var/www/html/twiki/bin">
    AllowOverride None
    Require all granted
    Deny from env=blockAccess

    Options ExecCGI FollowSymLinks
    SetHandler cgi-script

    # Password file for TWiki users
    AuthUserFile /var/www/html/twiki/data/.htpasswd
    AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith)'
    AuthType Basic

    # File to return on access control error (e.g. wrong password)
    ErrorDocument 401 /do/view/TWiki/TWikiRegistration



</Directory>

# This sets the options on the pub directory, which contains attachments and
# other files like CSS stylesheets and icons. AllowOverride None stops a
# user installing a .htaccess file that overrides these options.
# Note that files in pub are *not* protected by TWiki Access Controls,
# so if you want to control access to files attached to topics you need to
# block access to the specific directories same way as the ApacheConfigGenerator
# blocks access to the pub directory of the Trash web
<Directory "/var/www/html/twiki/pub">
    Options None
    AllowOverride None
    Require all granted
    Deny from env=blockAccess

    # Disable execusion of PHP scripts
    php_admin_flag engine off

    # This line will redefine the mime type for the most common types of scripts
    AddType text/plain .shtml .php .php3 .phtml .phtm .pl .py .cgi

#add an Expires header that is sufficiently in the future that the browser does not even ask if its uptodate
# reducing the load on the server significantly
#IF you can, you should enable this - it _will_ improve your twiki experience, even if you set it to under one day.
# you may need to enable expires_module in your main apache config
#LoadModule expires_module libexec/httpd/mod_expires.so
#AddModule mod_expires.c
#<ifmodule mod_expires.c>
#  <filesmatch "\.(jpg|gif|png|css|js)$">
#       ExpiresActive on
#       ExpiresDefault "access plus 11 days"
#   </filesmatch>
#</ifmodule>

</Directory>




So I put the resulting file in /etc/httpd/conf/conf.d/twiki.conf but apache wont restart with this file there. If I rename the file, so it's not a conf file, apache will start.

Code: Select all
less /etc/httpd/logs/error_log


gives

Code: Select all
AH00558: httpd: could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the servername directive globally to suppress this message


Can anyone see what I'm doing wrong?

Re: apache config file for twiki

PostPosted: Aug 27th, '16, 22:51
by doktor5000
When that .conf file is in place, please show the output as root of

Code: Select all
apachectl configtest
systemctl restart httpd
systemctl status httpd -al -n 50

Re: apache config file for twiki

PostPosted: Aug 28th, '16, 05:41
by xboxboy
Thanks Doktor

For some reason 'apachectl configtest > config.txt' and 'systemctl restart httpd > restart.txt' both give blank text files. Not sure why that is.

Code: Select all
apachectl configtest

AH00558: httpd: could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the servername directive globally to suppress this message


Code: Select all
systemctl restart httpd

Job for httpd.service failed. See "systemctl status.service" and "journalctl -xe" for details


Code: Select all
systemctl status httpd -al -n 50

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: signal) since Sun 2016-08-28 12:54:09 ACST; 5min ago
  Process: 2316 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=SEGV)
 Main PID: 2316 (code=killed, signal=SEGV)

Aug 28 12:54:09 localhost.localdomain httpd[2316]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
Aug 28 12:54:09 localhost.localdomain systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
Aug 28 12:54:09 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Aug 28 12:54:09 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
Aug 28 12:54:09 localhost.localdomain systemd[1]: httpd.service failed.

Re: apache config file for twiki

PostPosted: Sep 6th, '16, 15:38
by xboxboy
A quick google gives a couple of different solutions: Edit hosts file and / or httpd.conf.

Not sure which is best most efficient. Or even if the host file gets modified on the server or client pc.

Any advice greatly appreciated.

Re: apache config file for twiki

PostPosted: Sep 6th, '16, 19:08
by doktor5000
xboxboy wrote:Aug 28 12:54:09 localhost.localdomain httpd[2316]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message


That is only an informational message, not the cause of apache not starting. It's only because it cannot determine the FQDN of the interface where it's listening on. Just put it in /etc/hosts for the IP adress that apache should be listening on, which should match what you have in your apache config.

Can you try whether you get more information via either
Code: Select all
apachectl -e debug -t
apachectl -e debug -k start

Re: apache config file for twiki

PostPosted: Sep 7th, '16, 13:51
by xboxboy
Here's my original /etc/hosts file, I've messed with it, with no good result
Code: Select all
[root@localhost ~]# cat /etc/hosts
127.0.0.1               localhost


And here's those two commands you asked for: It's got me stumped.

Code: Select all
apachectl -e debug -t   
Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
If you want to pass extra arguments to httpd, edit the
/etc/sysconfig/httpd config file.
[Wed Sep 07 20:56:24.597037 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module access_compat_module from /etc/httpd/modules/mod_access_compat.so
[Wed Sep 07 20:56:24.597471 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module actions_module from /etc/httpd/modules/mod_actions.so
[Wed Sep 07 20:56:24.597852 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module alias_module from /etc/httpd/modules/mod_alias.so
[Wed Sep 07 20:56:24.598433 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module allowmethods_module from /etc/httpd/modules/mod_allowmethods.so
[Wed Sep 07 20:56:24.598833 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module auth_basic_module from /etc/httpd/modules/mod_auth_basic.so
[Wed Sep 07 20:56:24.599242 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module auth_digest_module from /etc/httpd/modules/mod_auth_digest.so
[Wed Sep 07 20:56:24.599655 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authn_anon_module from /etc/httpd/modules/mod_authn_anon.so
[Wed Sep 07 20:56:24.600055 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authn_core_module from /etc/httpd/modules/mod_authn_core.so
[Wed Sep 07 20:56:24.600688 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authn_dbm_module from /etc/httpd/modules/mod_authn_dbm.so
[Wed Sep 07 20:56:24.602176 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authn_file_module from /etc/httpd/modules/mod_authn_file.so
[Wed Sep 07 20:56:24.602626 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authn_socache_module from /etc/httpd/modules/mod_authn_socache.so
[Wed Sep 07 20:56:24.603252 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authz_core_module from /etc/httpd/modules/mod_authz_core.so
[Wed Sep 07 20:56:24.603685 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authz_dbm_module from /etc/httpd/modules/mod_authz_dbm.so
[Wed Sep 07 20:56:24.604075 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authz_groupfile_module from /etc/httpd/modules/mod_authz_groupfile.so
[Wed Sep 07 20:56:24.604486 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authz_host_module from /etc/httpd/modules/mod_authz_host.so
[Wed Sep 07 20:56:24.604903 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authz_owner_module from /etc/httpd/modules/mod_authz_owner.so
[Wed Sep 07 20:56:24.605249 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module authz_user_module from /etc/httpd/modules/mod_authz_user.so
[Wed Sep 07 20:56:24.605664 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module autoindex_module from /etc/httpd/modules/mod_autoindex.so
[Wed Sep 07 20:56:24.606009 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module data_module from /etc/httpd/modules/mod_data.so
[Wed Sep 07 20:56:24.606447 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module deflate_module from /etc/httpd/modules/mod_deflate.so
[Wed Sep 07 20:56:24.606675 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module dir_module from /etc/httpd/modules/mod_dir.so
[Wed Sep 07 20:56:24.606894 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module dumpio_module from /etc/httpd/modules/mod_dumpio.so
[Wed Sep 07 20:56:24.606956 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module echo_module from /etc/httpd/modules/mod_echo.so
[Wed Sep 07 20:56:24.607047 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module env_module from /etc/httpd/modules/mod_env.so
[Wed Sep 07 20:56:24.607454 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module expires_module from /etc/httpd/modules/mod_expires.so
[Wed Sep 07 20:56:24.607541 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module ext_filter_module from /etc/httpd/modules/mod_ext_filter.so
[Wed Sep 07 20:56:24.607713 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module filter_module from /etc/httpd/modules/mod_filter.so
[Wed Sep 07 20:56:24.607922 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module headers_module from /etc/httpd/modules/mod_headers.so
[Wed Sep 07 20:56:24.608067 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module include_module from /etc/httpd/modules/mod_include.so
[Wed Sep 07 20:56:24.608317 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module info_module from /etc/httpd/modules/mod_info.so
[Wed Sep 07 20:56:24.608527 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module log_config_module from /etc/httpd/modules/mod_log_config.so
[Wed Sep 07 20:56:24.608720 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module logio_module from /etc/httpd/modules/mod_logio.so
[Wed Sep 07 20:56:24.608804 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module mime_magic_module from /etc/httpd/modules/mod_mime_magic.so
[Wed Sep 07 20:56:24.609013 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module mime_module from /etc/httpd/modules/mod_mime.so
[Wed Sep 07 20:56:24.609271 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module negotiation_module from /etc/httpd/modules/mod_negotiation.so
[Wed Sep 07 20:56:24.609559 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module remoteip_module from /etc/httpd/modules/mod_remoteip.so
[Wed Sep 07 20:56:24.609651 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module reqtimeout_module from /etc/httpd/modules/mod_reqtimeout.so
[Wed Sep 07 20:56:24.609908 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module rewrite_module from /etc/httpd/modules/mod_rewrite.so
[Wed Sep 07 20:56:24.610014 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module setenvif_module from /etc/httpd/modules/mod_setenvif.so
[Wed Sep 07 20:56:24.610209 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module slotmem_plain_module from /etc/httpd/modules/mod_slotmem_plain.so
[Wed Sep 07 20:56:24.610468 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module slotmem_shm_module from /etc/httpd/modules/mod_slotmem_shm.so
[Wed Sep 07 20:56:24.610913 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module socache_dbm_module from /etc/httpd/modules/mod_socache_dbm.so
[Wed Sep 07 20:56:24.611239 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module socache_memcache_module from /etc/httpd/modules/mod_socache_memcache.so
[Wed Sep 07 20:56:24.611676 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module socache_shmcb_module from /etc/httpd/modules/mod_socache_shmcb.so
[Wed Sep 07 20:56:24.611925 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module status_module from /etc/httpd/modules/mod_status.so
[Wed Sep 07 20:56:24.612902 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module substitute_module from /etc/httpd/modules/mod_substitute.so
[Wed Sep 07 20:56:24.612994 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module unique_id_module from /etc/httpd/modules/mod_unique_id.so
[Wed Sep 07 20:56:24.613069 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module unixd_module from /etc/httpd/modules/mod_unixd.so
[Wed Sep 07 20:56:24.613132 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module version_module from /etc/httpd/modules/mod_version.so
[Wed Sep 07 20:56:24.613198 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module vhost_alias_module from /etc/httpd/modules/mod_vhost_alias.so
[Wed Sep 07 20:56:24.613360 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module dav_module from /etc/httpd/modules/mod_dav.so
[Wed Sep 07 20:56:24.613480 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module dav_fs_module from /etc/httpd/modules/mod_dav_fs.so
[Wed Sep 07 20:56:24.613556 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module dav_lock_module from /etc/httpd/modules/mod_dav_lock.so
[Wed Sep 07 20:56:24.615251 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module lua_module from /etc/httpd/modules/mod_lua.so
[Wed Sep 07 20:56:24.616713 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module systemd_module from /etc/httpd/modules/mod_systemd.so
[Wed Sep 07 20:56:24.617426 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module userdir_module from /etc/httpd/modules/mod_userdir.so
[Wed Sep 07 20:56:24.618168 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module mpm_prefork_module from /etc/httpd/modules/mod_mpm_prefork.so
[Wed Sep 07 20:56:24.618806 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module cgi_module from /etc/httpd/modules/mod_cgi.so
[Wed Sep 07 20:56:24.621388 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module perl_module from /etc/httpd/modules/mod_perl.so
[Wed Sep 07 20:56:24.629502 2016] [so:debug] [pid 3371] mod_so.c(266): AH01575: loaded module php_module from /etc/httpd/modules/mod_php.so
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
Syntax OK


Code: Select all
[root@localhost ~]# apachectl -e debug -k start
Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
If you want to pass extra arguments to httpd, edit the
/etc/sysconfig/httpd config file.
[Wed Sep 07 20:55:06.709643 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module access_compat_module from /etc/httpd/modules/mod_access_compat.so
[Wed Sep 07 20:55:06.710185 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module actions_module from /etc/httpd/modules/mod_actions.so
[Wed Sep 07 20:55:06.710581 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module alias_module from /etc/httpd/modules/mod_alias.so
[Wed Sep 07 20:55:06.711219 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module allowmethods_module from /etc/httpd/modules/mod_allowmethods.so
[Wed Sep 07 20:55:06.711668 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module auth_basic_module from /etc/httpd/modules/mod_auth_basic.so
[Wed Sep 07 20:55:06.712022 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module auth_digest_module from /etc/httpd/modules/mod_auth_digest.so
[Wed Sep 07 20:55:06.712351 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authn_anon_module from /etc/httpd/modules/mod_authn_anon.so
[Wed Sep 07 20:55:06.712693 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authn_core_module from /etc/httpd/modules/mod_authn_core.so
[Wed Sep 07 20:55:06.713005 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authn_dbm_module from /etc/httpd/modules/mod_authn_dbm.so
[Wed Sep 07 20:55:06.713376 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authn_file_module from /etc/httpd/modules/mod_authn_file.so
[Wed Sep 07 20:55:06.713751 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authn_socache_module from /etc/httpd/modules/mod_authn_socache.so
[Wed Sep 07 20:55:06.714152 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authz_core_module from /etc/httpd/modules/mod_authz_core.so
[Wed Sep 07 20:55:06.714598 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authz_dbm_module from /etc/httpd/modules/mod_authz_dbm.so
[Wed Sep 07 20:55:06.714970 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authz_groupfile_module from /etc/httpd/modules/mod_authz_groupfile.so
[Wed Sep 07 20:55:06.715356 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authz_host_module from /etc/httpd/modules/mod_authz_host.so
[Wed Sep 07 20:55:06.715690 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authz_owner_module from /etc/httpd/modules/mod_authz_owner.so
[Wed Sep 07 20:55:06.716015 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module authz_user_module from /etc/httpd/modules/mod_authz_user.so
[Wed Sep 07 20:55:06.716389 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module autoindex_module from /etc/httpd/modules/mod_autoindex.so
[Wed Sep 07 20:55:06.716661 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module data_module from /etc/httpd/modules/mod_data.so
[Wed Sep 07 20:55:06.717024 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module deflate_module from /etc/httpd/modules/mod_deflate.so
[Wed Sep 07 20:55:06.717152 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module dir_module from /etc/httpd/modules/mod_dir.so
[Wed Sep 07 20:55:06.717488 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module dumpio_module from /etc/httpd/modules/mod_dumpio.so
[Wed Sep 07 20:55:06.717769 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module echo_module from /etc/httpd/modules/mod_echo.so
[Wed Sep 07 20:55:06.718060 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module env_module from /etc/httpd/modules/mod_env.so
[Wed Sep 07 20:55:06.718341 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module expires_module from /etc/httpd/modules/mod_expires.so
[Wed Sep 07 20:55:06.718633 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module ext_filter_module from /etc/httpd/modules/mod_ext_filter.so
[Wed Sep 07 20:55:06.718832 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module filter_module from /etc/httpd/modules/mod_filter.so
[Wed Sep 07 20:55:06.719042 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module headers_module from /etc/httpd/modules/mod_headers.so
[Wed Sep 07 20:55:06.719136 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module include_module from /etc/httpd/modules/mod_include.so
[Wed Sep 07 20:55:06.719353 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module info_module from /etc/httpd/modules/mod_info.so
[Wed Sep 07 20:55:06.719571 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module log_config_module from /etc/httpd/modules/mod_log_config.so
[Wed Sep 07 20:55:06.719767 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module logio_module from /etc/httpd/modules/mod_logio.so
[Wed Sep 07 20:55:06.719974 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module mime_magic_module from /etc/httpd/modules/mod_mime_magic.so
[Wed Sep 07 20:55:06.720853 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module mime_module from /etc/httpd/modules/mod_mime.so
[Wed Sep 07 20:55:06.720924 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module negotiation_module from /etc/httpd/modules/mod_negotiation.so
[Wed Sep 07 20:55:06.721001 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module remoteip_module from /etc/httpd/modules/mod_remoteip.so
[Wed Sep 07 20:55:06.721067 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module reqtimeout_module from /etc/httpd/modules/mod_reqtimeout.so
[Wed Sep 07 20:55:06.721159 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module rewrite_module from /etc/httpd/modules/mod_rewrite.so
[Wed Sep 07 20:55:06.721231 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module setenvif_module from /etc/httpd/modules/mod_setenvif.so
[Wed Sep 07 20:55:06.721313 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module slotmem_plain_module from /etc/httpd/modules/mod_slotmem_plain.so
[Wed Sep 07 20:55:06.721403 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module slotmem_shm_module from /etc/httpd/modules/mod_slotmem_shm.so
[Wed Sep 07 20:55:06.721470 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module socache_dbm_module from /etc/httpd/modules/mod_socache_dbm.so
[Wed Sep 07 20:55:06.721536 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module socache_memcache_module from /etc/httpd/modules/mod_socache_memcache.so
[Wed Sep 07 20:55:06.721772 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module socache_shmcb_module from /etc/httpd/modules/mod_socache_shmcb.so
[Wed Sep 07 20:55:06.721848 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module status_module from /etc/httpd/modules/mod_status.so
[Wed Sep 07 20:55:06.722113 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module substitute_module from /etc/httpd/modules/mod_substitute.so
[Wed Sep 07 20:55:06.722181 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module unique_id_module from /etc/httpd/modules/mod_unique_id.so
[Wed Sep 07 20:55:06.722422 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module unixd_module from /etc/httpd/modules/mod_unixd.so
[Wed Sep 07 20:55:06.722494 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module version_module from /etc/httpd/modules/mod_version.so
[Wed Sep 07 20:55:06.722718 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module vhost_alias_module from /etc/httpd/modules/mod_vhost_alias.so
[Wed Sep 07 20:55:06.722887 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module dav_module from /etc/httpd/modules/mod_dav.so
[Wed Sep 07 20:55:06.723248 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module dav_fs_module from /etc/httpd/modules/mod_dav_fs.so
[Wed Sep 07 20:55:06.723538 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module dav_lock_module from /etc/httpd/modules/mod_dav_lock.so
[Wed Sep 07 20:55:06.726084 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module lua_module from /etc/httpd/modules/mod_lua.so
[Wed Sep 07 20:55:06.728015 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module systemd_module from /etc/httpd/modules/mod_systemd.so
[Wed Sep 07 20:55:06.728727 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module userdir_module from /etc/httpd/modules/mod_userdir.so
[Wed Sep 07 20:55:06.729306 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module mpm_prefork_module from /etc/httpd/modules/mod_mpm_prefork.so
[Wed Sep 07 20:55:06.729897 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module cgi_module from /etc/httpd/modules/mod_cgi.so
[Wed Sep 07 20:55:06.732659 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module perl_module from /etc/httpd/modules/mod_perl.so
[Wed Sep 07 20:55:06.740020 2016] [so:debug] [pid 3366] mod_so.c(266): AH01575: loaded module php_module from /etc/httpd/modules/mod_php.so
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
/usr/sbin/apachectl: line 110:  3366 Segmentation fault      $HTTPD $OPTIONS "$@"

Re: apache config file for twiki

PostPosted: Sep 7th, '16, 19:39
by doktor5000
xboxboy wrote:
Code: Select all
[root@localhost ~]# cat /etc/hosts
127.0.0.1               localhost


Well, you have no hostname set, only the regular loopback entry so it's normal that httpd gives you the message about the FQDN. Ignore it for now, but please remember to always set a proper hostname.
Use hostnamectl for that and also add another entry for your actual IP adress in /etc/hosts

xboxboy wrote:
Code: Select all
/usr/sbin/apachectl: line 110:  3366 Segmentation fault      $HTTPD $OPTIONS "$@"

Hmmm, could be this comes from apachectl trying to hand over the debug options when starting httpd, or from some options it found in one of it's config files.
I'd have to take a look at how httpd is started regularly via the systemd unit and you would need to amend that by the normal debug options to get some more verbose output.

What you could try in the meantime is to simply remove the config you added for twiki and see if apache starts.