You are not logged in.
Pages: 1
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
Please use code tags when pasting terminal output or config files to the forums.
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
Better
Offline
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
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
Thanks guy´s !!
Offline
I have found the problem.
Offline
I have found the problem.
Glad you fixed it. Please post details of your findings. Thanks.
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
Pages: 1