Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 08:08:58

Author Topic: httpd problems  (Read 6300 times)

0 Members and 1 Guest are viewing this topic.

Offline ItzJustinN

  • Valuable Member
  • *
  • Posts: 102
  • Karma: +1/-0
    • View Profile
httpd problems
« on: 2015-04-07, 15:28:31 »
hello, i dont know what the error is,
but every couple of days
apache always stopping at night
have to wake up next day to see server is down
and run httpd service restart to fix always

any idea?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd problems
« Reply #1 on: 2015-04-07, 15:30:01 »
Go to 'admin >webserver configure > apache optimize > (optimize/medium/high) > update'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ItzJustinN

  • Valuable Member
  • *
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: httpd problems
« Reply #2 on: 2015-04-07, 15:34:48 »
ok i have done this now, i select optimize high.
do you think this will solve the issue?

also found this strange entry in apace-error.log
[Tue Apr 07 03:21:00 2015] [warn] pid file /etc/httpd/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd problems
« Reply #3 on: 2015-04-07, 16:05:27 »
Possible yes.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ItzJustinN

  • Valuable Member
  • *
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: httpd problems
« Reply #4 on: 2015-04-07, 23:37:13 »
hi, another issue:

[Tue Apr 07 05:00:57 2015] [error] server reached MaxClients setting, consider raising the MaxClients setting

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd problems
« Reply #5 on: 2015-04-08, 06:17:11 »
Using php-fpm or other in 'php type'?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ItzJustinN

  • Valuable Member
  • *
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: httpd problems
« Reply #6 on: 2015-04-08, 09:18:32 »
php_fpm_event

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd problems
« Reply #7 on: 2015-04-08, 09:25:43 »
Inform here 'cat /etc/httpd/conf.d/~lxcenter.conf'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ItzJustinN

  • Valuable Member
  • *
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: httpd problems
« Reply #8 on: 2015-04-08, 09:28:28 »
Code: [Select]
Timeout 150
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
    StartServers 2
    MinSpareServers 34
    MaxSpareServers 69
    ServerLimit 69
    <IfVersion >= 2.4>
        MaxRequestWorkers 69
        MaxConnectionsPerChild 4000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 69
        MaxRequestsPerChild 4000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule itk.c>
    StartServers 2
    MinSpareServers 34
    MaxSpareServers 69
    ServerLimit 69
    <IfVersion >= 2.4>
        MaxRequestWorkers 69
        MaxConnectionsPerChild 4000
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 69
        MaxRequestsPerChild 4000
    </IfVersion>
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule worker.c>
    StartServers 2
    MinSpareThreads 29
    MaxSpareThreads 59
    ThreadsPerChild 25
    ServerLimit 59
    <IfVersion >= 2.4>
        MaxRequestWorkers 725
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 725
        MaxRequestsPerChild 0
    </IfVersion>

    ThreadStackSize 8196
    MaxMemFree 2
    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

<IfModule event.c>
    StartServers 2
    MinSpareThreads 29
    MaxSpareThreads 59
    ThreadsPerChild 25
    ServerLimit 59
    MaxRequestsPerChild 0
    ThreadStackSize 8196
    <IfVersion >= 2.4>
        MaxRequestWorkers 725
        MaxConnectionsPerChild 0
    </IfVersion>
    <IfVersion < 2.4>
        MaxClients 725
        MaxRequestsPerChild 0
    </IfVersion>

    SendBufferSize 65536
    ReceiveBufferSize 65536
</IfModule>

Include /opt/configs/apache/conf/defaults/*.conf
Include /opt/configs/apache/conf/domains/*.conf

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd problems
« Reply #9 on: 2015-04-08, 09:34:39 »
Inform 'dir -l /etc/httpd/conf.d'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ItzJustinN

  • Valuable Member
  • *
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: httpd problems
« Reply #10 on: 2015-04-08, 09:46:56 »
Code: [Select]
total 116
-rw-r--r--  1 root root  583 Jul 30  2013 cloudflare.conf
-rw-r--r--  1 root root   46 Apr  7 21:24 define.conf
-rw-r--r--  1 root root   46 Apr  3 20:16 define.conf.rpmsave
-rw-r--r--  1 root root  346 Apr  7 21:24 fastcgi.conf
-rw-r--r--  1 root root  111 Apr  3 20:07 fastcgi.conf.rpmsave
-rw-r--r--  1 root root  111 Apr  7 21:24 fcgid.conf
-rw-r--r--  1 root root  111 Apr  3 20:07 fcgid.conf.rpmsave
-rw-rw-r--  1 root root  111 Apr  7 21:24 _inactive_.conf
-rw-r--r--  1 root root  111 Apr  7 21:24 itk.conf
-rw-r--r--. 1 root root 1811 Apr  7 13:26 ~lxcenter.conf
-rw-r--r--  1 root root 1085 Mar 17 14:08 mod_ruid2.nonconf
-rw-r--r--  1 root root 1794 Apr  7 21:24 perl.conf
-rw-r--r--  1 root root 1794 Apr  3 20:16 perl.conf.rpmsave
-rw-r--r--  1 root root  111 Apr  7 21:24 php.conf
-rw-r--r--  1 root root  674 Mar 20 08:15 php.conf.rpmnew
-rw-r--r--. 1 root root  111 Apr  3 20:07 php.conf.rpmsave
-rw-r--r--  1 root root  566 Dec  5  2005 proxy_ajp.conf
-rw-rw-r--  1 root root  111 Apr  7 21:24 proxy_fcgi.conf
-rw-r--r--  1 root root  392 Sep 13  2014 README
-rw-rw-r--  1 root root  308 Apr  7 21:24 rpaf.conf
-rw-r--r--. 1 root root  111 Apr  7 21:24 ruid2.conf
-rw-r--r--  1 root root  820 Apr  7 21:24 ssl.conf
-rw-r--r--. 1 root root  820 Apr  3 20:16 ssl.conf.rpmsave
-rw-r--r--  1 root root  111 Apr  3 20:47 suphp2.conf
-rw-r--r--  1 root root  111 Apr  7 21:24 suphp.conf
-rw-r--r--  1 root root  111 Apr  3 20:07 suphp.conf.rpmsave
-rw-r--r--. 1 root root   87 Apr  7 21:24 __version.conf
-rw-r--r--  1 root root  352 Apr 25  2012 webalizer.conf
-rw-r--r--  1 root root  299 Sep  9  2004 welcome.conf

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd problems
« Reply #11 on: 2015-04-08, 09:55:40 »
Try change 'MaxClients 725' to 'MaxClients 1450' in ~lxcenter.conf and then 'sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ItzJustinN

  • Valuable Member
  • *
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: httpd problems
« Reply #12 on: 2015-04-15, 21:29:20 »
i still having same problems with httpd,
whenever logrotate occur, httpd cant restart.
service httpd restart fails too
here is the error:

Code: [Select]
Starting httpd: Syntax error on line 363 of /opt/configs/apache/conf/domains/XXXXXXXXXX.conf:
<VirtualHost> directive missing closing '>'

i reinstalled Centos 6.6/Kloxo 7 (maybe 10 times reinstalled now with different mirrors)
reconfigured all domains and uploaded all files manually (not restore from backup)

and still getting the same errors with httpd and lxguard.  (both not work correctly)
i only care fix httpd for now, can use fail2ban.


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: httpd problems
« Reply #13 on: 2015-04-16, 07:38:22 »
Yes, something trouble with logrotate.

Try open all file inside /etc/logrotate and then disable 'sharedscripts' and line between 'postrotate' and 'endscript' with add '#'.

Example:

from:
Code: [Select]
/var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
}

to:
Code: [Select]
/var/log/httpd/*log {
    missingok
    notifempty
#    sharedscripts
#    postrotate
# /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
#    endscript
}
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline ItzJustinN

  • Valuable Member
  • *
  • Posts: 102
  • Karma: +1/-0
    • View Profile
Re: httpd problems
« Reply #14 on: 2015-04-16, 18:43:56 »
but also the problem occur alone, (without log rotate)

right now using NGINX, because httpd dont work.


if i switch program to apache and update,
httpd still doesnt start.
service httpd start didnt work either.
(because of the error above)


still a problem with log rotate?

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.052 seconds with 18 queries.

web stats analysis