You are not logged in.

#1 2015-06-10 07:55:29

adh_athena
Member
Registered: 2015-06-08
Posts: 4

Apache 2.2 to 2.4

Hi guy´s/girl´s

I am trying to update my Apache 2.2 to 2.4 and i have a script to install it with. I have tried to redesign the script but I can't get it right. Can anyone lent me an eye and have at look at it. the error is in the httpd.conf file. I get the following error

Redirecting to /bin/systemctl status  -l httpd.service
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since Mon 2015-06-08 13:33:29 CEST; 1 day 20h ago
  Process: 2198 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 2196 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 2196 (code=exited, status=1/FAILURE)
   CGroup: /system.slice/httpd.service

Jun 08 13:33:29 adhtest.testlocal systemd[1]: Starting The Apache HTTP Server...
Jun 08 13:33:29 adhtest.testlocal httpd[2196]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:121
Jun 08 13:33:29 adhtest.testlocal systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jun 08 13:33:29 adhtest.testlocal kill[2198]: kill: cannot find process ""
Jun 08 13:33:29 adhtest.testlocal systemd[1]: httpd.service: control process exited, code=exited status=1
Jun 08 13:33:29 adhtest.testlocal systemd[1]: Failed to start The Apache HTTP Server.
Jun 08 13:33:29 adhtest.testlocal systemd[1]: Unit httpd.service entered failed state.

My httpd.conf file..

### Basic
Include conf.modules.d/*.conf
User apache
Group apache
ServerRoot "/etc/httpd"
PidFile run/httpd.pid

ServerName 192.168.61.12

<IfModule mpm_prefork_module>
    StartServers         20
    MinSpareServers      20
    MaxSpareServers      50
    ServerLimit        2000
    MaxClients         2000
    MaxRequestsPerChild   0
</IfModule>

Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
UseCanonicalName Off
AccessFileName .htaccess
ServerTokens Prod
ServerSignature Off
HostnameLookups Off

### See documentation before enabling these
EnableMMAP off
EnableSendfile off
###

AcceptFilter http httpready
AcceptFilter https dataready

### Modules

# Distribution default modules
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule speling_module modules/mod_speling.so

# Custom modules
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule dbd_module modules/mod_dbd.so

##<IfModule prefork.c>
##  LoadModule php5_module modules/libphp5.so
##</IfModule>
##<IfModule worker.c>
##  LoadModule php5_module modules/libphp5-zts.so
##</IfModule>



### Default access

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

<Files ~  "^\.ht">
    Require all granted
    Satisfy All
</Files>

ErrorDocument 413 /@/error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
ErrorDocument 414 /@/error/HTTP_REQUEST_URI_TOO_LARGE.html.var
ErrorDocument 415 /@/error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
ErrorDocument 500 /@/error/HTTP_INTERNAL_SERVER_ERROR.html.var
ErrorDocument 501 /@/error/HTTP_NOT_IMPLEMENTED.html.var
ErrorDocument 502 /@/error/HTTP_BAD_GATEWAY.html.var
ErrorDocument 503 /@/error/HTTP_SERVICE_UNAVAILABLE.html.var
ErrorDocument 506 /@/error/HTTP_VARIANT_ALSO_VARIES.html.var


### Browser mangling

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully


### WebDAV
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>


### SSL

##SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
SSLSessionCache         shmcb:/var/cache/mod_ssl/scache(512000)
SSLSessionCacheTimeout  300
SSLRandomSeed startup file:/dev/urandom  256
SSLRandomSeed connect builtin
SSLCryptoDevice builtin


### Custom global configurations



### IP-adresses to listen on and default website

Listen *:80
NameVirtualHost *:80

<VirtualHost *:80>
  ServerName example.ud
  DocumentRoot /var/www/html
</VirtualHost>

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

Include /var/www/sites/DEFAULT_HOST/config/httpd.conf


### CONFIG AUTOINSERT HERE ###

Last edited by adh_athena (2015-06-10 08:40:47)

Offline

#2 2015-06-10 08:03:00

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,873
Website

Re: Apache 2.2 to 2.4

Please use code tags when pasting terminal output or config files to the forums.

https://wiki.archlinux.org/index.php/Fo … s_and_code


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-06-10 08:15:24

adh_athena
Member
Registered: 2015-06-08
Posts: 4

Re: Apache 2.2 to 2.4

Better

Offline

#4 2015-06-10 08:29:21

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Apache 2.2 to 2.4

1. Check /var/log/httpd/ if it have more information about failure
2. Read http://httpd.apache.org/docs/2.4/upgrading.html carefully

These two advises come from https://wiki.archlinux.org/index.php/Ap … leshooting


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#5 2015-06-10 08:34:34

progandy
Member
Registered: 2012-05-17
Posts: 5,200

Re: Apache 2.2 to 2.4

I suggest you start with the default httpd.conf for 2.4 and modify it for your server. The most obvious thing is a missing mpm module, and Allow, Deny instead of Require directives. Also, the configuration seems to be duplicated.

Last edited by progandy (2015-06-10 08:35:20)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2015-06-10 08:44:36

adh_athena
Member
Registered: 2015-06-08
Posts: 4

Re: Apache 2.2 to 2.4

Thanks guy´s !!

Offline

#7 2015-06-10 09:10:37

adh_athena
Member
Registered: 2015-06-08
Posts: 4

Re: Apache 2.2 to 2.4

I have found the problem.

Offline

#8 2015-06-10 11:54:02

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: Apache 2.2 to 2.4

adh_athena wrote:

I have found the problem.

Glad you fixed it. Please post details of your findings. Thanks.

https://wiki.archlinux.org/index.php/Fo … way_street


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

Board footer

Powered by FluxBB