LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-02-2012, 01:28 AM   #1
thirty5tech
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Rep: Reputation: Disabled
Question Newbie with Server Issue


Hi Guys , Name is Mike and I'm having a bit issue with my VPS from godaddy . For the past few days my site has been going offline almost every 12 hours and gets back online after a few minutes by itslef . I have check the log files for error and the following is what I'm getting .

By the way my server has 2GB of ram for my usage .

mod_jk.log

Code:
[Wed Aug 01 22:48:29.197 2012] [1849:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:29.197 2012] [1849:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:30.197 2012] [1845:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:30.197 2012] [1845:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:33.197 2012] [1836:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:33.198 2012] [1836:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:35.198 2012] [1852:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:35.198 2012] [1852:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:41.206 2012] [1860:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:41.206 2012] [1860:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:45.207 2012] [1857:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Aug 01 22:48:45.207 2012] [1857:3079039584] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
I got tons of this, Just posted the first few of them ..

====================================================

access_log

Quote:
::1 - - [01/Aug/2012:22:48:29 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:30 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:33 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:35 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:41 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:45 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:53 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
I got tons of this, Just posted the first few of them ..

======================================================

error_log
Code:
[Wed Aug 01 22:48:23 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Aug 01 22:48:23 2012] [warn] No JkLogFile defined in httpd.conf. Using default /etc/httpd/logs/mod_jk.log
[Wed Aug 01 22:48:23 2012] [warn] No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
[Wed Aug 01 22:48:24 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Aug 01 22:48:24 2012] [notice] Digest: done
[Wed Aug 01 22:48:24 2012] [warn] No JkLogFile defined in httpd.conf. Using default /etc/httpd/logs/mod_jk.log
[Wed Aug 01 22:48:24 2012] [warn] No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
[Wed Aug 01 22:48:24 2012] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads.
[Wed Aug 01 22:48:24 2012] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Aug 01 22:49:46 2012] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Wed Aug 01 22:51:57 2012] [notice] child pid 1888 exit signal Segmentation fault (11)
zend_mm_heap corrupted
[Wed Aug 01 23:00:15 2012] [notice] child pid 1944 exit signal Segmentation fault (11)
[Wed Aug 01 23:12:13 2012] [notice] child pid 3312 exit signal Segmentation fault (11)
zend_mm_heap corrupted
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 29642    0 29642    0     0  83228      0 --:--:-- --:--:-- --:--:--  578k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 29642    0 29642    0     0   299k      0 --:--:-- --:--:-- --:--:-- 1113k
[Wed Aug 01 23:23:18 2012] [notice] child pid 3449 exit signal Segmentation fault (11)
=======================================================

httpd.conf

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

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

#
# 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 2

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       1
MinSpareServers    1
MaxSpareServers    5
ServerLimit       10
MaxClients        10
MaxRequestsPerChild  4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers       1
MaxClients        10
MinSpareThreads    1
MaxSpareThreads    4
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>
-----------------------------------------------------

as you could see on my ssh I get the word defunct every 10 second

http://i223.photobucket.com/albums/d...w/Untitled.png




I hope this helps with the issue I'm having if you are able to detect anything wrong ..

Please understand I'm new and is my first time running a VPS which I only run 3 site on it . mostly wordpress and PHPBB3

Last edited by thirty5tech; 08-02-2012 at 01:57 AM. Reason: added more info
 
Old 08-02-2012, 03:39 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by thirty5tech View Post
Code:
[Wed Aug 01 22:51:57 2012] [notice] child pid 1888 exit signal Segmentation fault (11)
zend_mm_heap corrupted
[Wed Aug 01 23:00:15 2012] [notice] child pid 1944 exit signal Segmentation fault (11)
[Wed Aug 01 23:12:13 2012] [notice] child pid 3312 exit signal Segmentation fault (11)
zend_mm_heap corrupted
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 29642    0 29642    0     0  83228      0 --:--:-- --:--:-- --:--:--  578k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 29642    0 29642    0     0   299k      0 --:--:-- --:--:-- --:--:-- 1113k
[Wed Aug 01 23:23:18 2012] [notice] child pid 3449 exit signal Segmentation fault (11)
(..) I only run 3 site on it . mostly wordpress and PHPBB3
You have curl output in your error log. This could potentially be an indication of unwanted activity.
Please check your:
- access log for probing and requests that fopen remote files.
- network connections for "odd" connections.
- Wordpress, PHPBB and any 3rd party plugin versions and ensure they are the latest stable version.
- locations the web server can write to and web sites itself for anomalous files or header / footer / .js content.
 
Old 08-02-2012, 04:53 AM   #3
thirty5tech
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for the reply

This is the only thing I have on my access log

access_log
Code:
::1 - - [01/Aug/2012:22:48:29 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:30 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:33 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:35 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:41 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:45 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:53 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:48:56 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:49:07 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:49:09 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:49:38 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:49:47 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:49:50 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
::1 - - [01/Aug/2012:22:49:53 -0700] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.3 (CentOS) (internal dummy connection)"
on one of my site error log I'm getting tons of this

Code:
[Wed Aug 01 23:15:47 2012] [error] [client 220.181.124.179] PHP Warning:  Attempt to assign property of non-object in /home/psvitacfw/public_html/wp-content/plugins/transposh-translation-filter-for-wordpress/core/parser.php on line 656
[Wed Aug 01 23:15:47 2012] [error] [client 66.249.72.48] PHP Warning:  Attempt to assign property of non-object in /home/psvitacfw/public_html/wp-content/plugins/transposh-translation-filter-for-wordpress/core/parser.php on line 656
[Wed Aug 01 23:15:51 2012] [error] [client 66.249.72.48] PHP Warning:  Attempt to assign property of non-object in /home/psvitacfw/public_html/wp-content/plugins/transposh-translation-filter-for-wordpress/core/parser.php on line 656
[Wed Aug 01 23:15:53 2012] [error] [client 66.249.72.48] PHP Warning:  Attempt to assign property of non-object in /home/psvitacfw/public_html/wp-content/plugins/transposh-translation-filter-for-wordpress/core/parser.php on line 656
[Wed Aug 01 23:16:02 2012] [error] [client 66.249.72.48] PHP Warning:  Attempt to assign property of non-object in /home/psvitacfw/public_html/wp-content/plugins/transposh-translation-filter-for-wordpress/core/parser.php on line 656
Here are the error log and access log for my site

http://mikoulloa.com/tmp/pspcustomfi...access_log.txt
http://mikoulloa.com/tmp/pspcustomfi..._error_log.txt
http://mikoulloa.com/tmp/psvitacfw.com_access_log.txt
http://mikoulloa.com/tmp/psvitacfw.com_error_log.txt

Thanks guy for all your help ..

one things that does come into mind is a Translator known as Transposh plugin that I'm using on both of my site ..
 
Old 08-02-2012, 05:49 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by thirty5tech View Post
Here are the error log and access log for my site
Thanks for the logs (but next time please gzip or bzip2 them). If I grep the logs for "Xferd" curl output it is not shown. I don't know what site you displayed the error_log from in your first post but it isn't one of those I downloaded. BTW is there a reason why you only responded to 1 out of 4 questions?


Quote:
Originally Posted by thirty5tech View Post
one things that does come into mind is a Translator known as Transposh plugin that I'm using on both of my site ..
Should it be using Curl or libcurl in the way shown in the first error_log?
 
Old 08-02-2012, 11:58 AM   #5
thirty5tech
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for the reply and sorry I did not answer your question all four of them, as I'm new ..

- access log for probing and requests that fopen remote files.

Code:
Sorry as I do not know which log name this is located in . Can you tell me which log to look for and will get the information .

network connections for "odd" connections.

Code:
Same as above
Wordpress, PHPBB and any 3rd party plugin versions and ensure they are the latest stable version.

Code:
I have double check and all is up to date .
locations the web server can write to and web sites itself for anomalous files or header / footer / .js content.
Code:
The sites I run are psvitacfw and pspcustomfirmware dot com . if this is what you mean . If not can you put a little example and will try to get the information for you ..
- Should it be using Curl or libcurl in the way shown in the first error_log?

Code:
I do not know , I have email the developer of the plugin for that information and is awaiting his response, I will give you the information once I get it ..
Thanks and do hope this answers you question and once again sorry as I'm new to all this ..
 
Old 08-02-2012, 01:33 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by thirty5tech View Post
Sorry as I do not know which log name this is located in . Can you tell me which log to look for and will get the information.
Your access and error log files.


Quote:
Originally Posted by thirty5tech View Post
network connections for "odd" connections.
Same as above
Run 'netstat -antupe' as root.


Quote:
Originally Posted by thirty5tech View Post
Wordpress, PHPBB and any 3rd party plugin versions and ensure they are the latest stable version.
I have double check and all is up to date .
OK, if you say so.


Quote:
Originally Posted by thirty5tech View Post
can you put a little example and will try to get the information for you ..
I meant /tmp and /var/tmp. If you find any odd items run 'stat' on them as root.


Quote:
Originally Posted by thirty5tech View Post
Should it be using Curl or libcurl in the way shown in the first error_log?
I do not know , I have email the developer of the plugin for that information and is awaiting his response, I will give you the information once I get it ..
Searching trac.transposh.org for "curl" shows it apparently does need Curl...


BTW:
- the mod_jk log suggests you run a Tomcat connector. If you don't need mod_jk then disable it and all other modules you don't need now.
- wrt "Apache/2.2.3 (CentOS) (internal dummy connection)" see http://wiki.apache.org/httpd/InternalDummyConnection
- the "zend_mm_heap corrupted" error may have any number of causes. See https://bugs.php.net/search.php?cmd=...rupted&x=0&y=0 for an overview.
 
Old 08-02-2012, 02:32 PM   #7
thirty5tech
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Run 'netstat -antupe' as root.

Code:
I see about 5 to 10 connection of each of this IP's

173.245.56.65

91.201.64.21

108.162.237.14

71.204.5.178
======================================================


- the mod_jk log suggests you run a Tomcat connector. If you don't need mod_jk then disable it and all other modules you don't need now.

Code:
If you are talking about modules, This is the only one I could think of unless there are he wrong one

LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so
======================================

the "zend_mm_heap corrupted" error may have any number of causes. See https://bugs.php.net/search.php?cmd=...rupted&x=0&y=0 for an overview.
Code:
Can that be disable as I only run wordpress and PHPBB3 on my site .

==============================

I meant /tmp and /var/tmp. If you find any odd items run 'stat' on them as root.

This is what I found in those location

http://i223.photobucket.com/albums/d...c-repair/2.png

http://i223.photobucket.com/albums/d...c-repair/1.png

==================================

Thanks again for all your help in helping me out with this issue .
 
Old 08-02-2012, 02:35 PM   #8
thirty5tech
LQ Newbie
 
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Sorry forgot to mention, Then I'm using CloudFlare the free package in case that helps ..
 
Old 08-02-2012, 04:13 PM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Moved: This thread is more suitable in Linux - Security and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-02-2012, 08:19 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by thirty5tech View Post
Run 'netstat -antupe' as root.
I see about 5 to 10 connection of each of this IP's
I notice you are using a web-based management panel. Providing a "good" control panel is one of the unique selling points for hosting companies. Used correctly it does make server management easier. But only if you understand Linux basics and server administration you get the most out of it. Wrt netstat the idea is to scrub your own and the servers IP address and post full output because listing IP addresses alone does not show their context. Note connections are transient and other than those resulting in a request to a daemon like the web server Linux does not record any. Should you wish to see what each remote IP is up to wrt web pages then you can 'grep -r /var/log/http -e [IP address]' to find all references in the current logs or for example 'grep -r /var/log/http -e [IP address].*GET.*[[:blank:]]200[[:blank:]]' to see all succeeding requests or for instance 'grep -r /var/log/http -e [IP address].*GET.*[[:blank:]]40[0-9]\{1\}[[:blank:]]' to see all requests for the remote IP that do not succeed. Also note that with console access you can have access to all sorts of diagnostic tools like Apachetop and MySQLtop. These days, when confronted with large logs, I tend to first run 'petit --hash /var/log/somelogfile' to get an idea of what to expect.
*BTW, should you think you could benefit from more thorough log file inspection then I suggest you run them through Logwatch with the "--detail High --service All --range All --archives --numeric --save /var/log/logwatch.log" switches. Do not hesitate to share /var/log/logwatch.log if any output seems suspicious.

Back to selling points, it matters for hosting companies that Linux is available free of cost.
Please realize that the fact it is available free of cost does not mean running Linux is free of responsibilities.
Get acquainted with www.centos.org/docs/ and wiki.centos.org/ and maybe get your self an on-line Linux basics and server administration book.


Quote:
Originally Posted by thirty5tech View Post
- the mod_jk log suggests you run a Tomcat connector. If you don't need mod_jk then disable it and all other modules you don't need now.
If you are talking about modules, This is the only one I could think of unless there are he wrong one
You have not indicated if you need and run Jakarta or not.

Next to MPM your Apache main configuration file lists only built-ins and without knowing /etc/httpd/conf.d/ configuration file details it would be unwise and counter-productive to make suggestions for pruning modules. The Apache web site provides detailed information for each module but IIRC not dependencies. This means you should read up on what a module does, assess if you need it and then test a copy of your web server configuration, preferably on a staging area, before committing changes to your production host. Note that depending on circumstances "staging" may mean copying over a modified /etc/httpd tree and starting Apache on a separate port, another VPS you can use or local virtualization if you run VMWare, QEmu, VirtualBox, XEN or whatever else you choose. Pruning modules may make the web server process relatively lighter to start up, restricts functionality to only what you need (I doubt you need any LDAP-related, WebDAV or proxy modules) and may avoid exposing unnecessary information (Apachetop relies on modules/mod_status.so and modules/mod_info.so IIRC).


Quote:
Originally Posted by thirty5tech View Post
the "zend_mm_heap corrupted" error may have any number of causes. See https://bugs.php.net/search.php?cmd=...rupted&x=0&y=0 for an overview.
Can that be disable as I only run wordpress and PHPBB3 on my site.
From your screen shots I see you run or ran the memcache daemon. See if restarting it solves the error message.


Quote:
Originally Posted by thirty5tech View Post
I meant /tmp and /var/tmp. If you find any odd items run 'stat' on them as root.
This is what I found in those location
Apart from obviously-named files and directories most files in /tmp are empty, owned by and only writable by user apache which is good.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The server is loosing connection. Is it a hardware issue or a software issue? THpubs Linux - Networking 6 02-12-2012 03:51 AM
1 server was Byte Order mark & whitespace issue's. 1 server ok SmurfGGM Linux - Server 0 12-14-2010 05:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration