Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2007, 02:53 AM
badboyz badboyz is offline
 
Join Date: May 2006
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Question About Dedicated Server

How do i check httpd loges in ssh?

anyone help me with this please
Reply With Quote
  #2  
Old 05-11-2007, 03:09 AM
Wizardjv Wizardjv is offline
 
Join Date: Feb 2006
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to:

/home/user/logs/domain.com/http

where 'user' is your actual user and 'domain.com' is one of your domains - you'll want to do this for each of the domains under your user

You can use the cd /home/user/logs/domain.com/http

command to get there thats where your logs are
Reply With Quote
  #3  
Old 05-11-2007, 03:13 AM
badboyz badboyz is offline
 
Join Date: May 2006
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No such file or directory

im getting this error when i type "the cd /home/user/logs/domain.com/http "on ssh
Reply With Quote
  #4  
Old 05-11-2007, 03:17 AM
Wizardjv Wizardjv is offline
 
Join Date: Feb 2006
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to replace user with your user name and domain.com with your domain name

like if user was bob and domain google.com

cd /home/bob/logs/google.com/http

get it now?
Reply With Quote
  #5  
Old 05-11-2007, 03:18 AM
badboyz badboyz is offline
 
Join Date: May 2006
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya i did it before.

i typed "cd /home/badboyz/logs/mydomain.com/http"

it said No such file or directory


..
I have linux Dedicated Server
Reply With Quote
  #6  
Old 05-11-2007, 03:22 AM
Wizardjv Wizardjv is offline
 
Join Date: Feb 2006
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well if your having problems getting the logs this way. You could just ftp to your server and grab them. You server may be setup different. But for most servers that is the default way to do it.
Reply With Quote
  #7  
Old 05-11-2007, 03:24 AM
badboyz badboyz is offline
 
Join Date: May 2006
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wizardjv View Post
Well if your having problems getting the logs this way. You could just ftp to your server and grab them. You server may be setup different. But for most servers that is the default way to do it.
my site which was hosted on my server is going down lot of the time (not the server)i asked my server provider guy abut it and he said that its due to server overload and asked me to find file in httpd logs and ban those ip


MY server loads high

i am trying to do this
Reply With Quote
  #8  
Old 05-11-2007, 03:36 AM
Wizardjv Wizardjv is offline
 
Join Date: Feb 2006
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh then you would want to do something like this. All the lines with code tags or the commands.

The main causes you will find are abuse from specific IPs or inefficient scripts. In the case where it is abuse you should be able to determine the cause if you specifically look at each of the access logs for your domains. Go to:
HTML Code:
/home/user/logs/domain.com/http
where 'user' is your actual user and 'domain.com' is one of your domains - you'll want to do this for each of the domains under your user. Enter this command to see the IPs hitting the domain the most:
HTML Code:
tail -10000 access.log| awk '{print $1}' | sort | uniq -c |sort -n
or for the whole log:
HTML Code:
cat access.log| awk '{print $1}' | sort | uniq -c |sort -n
Which gives you something like this (I am just showing the bottom of the output):

364 65.214.44.72
436 64.172.17.3
657 204.74.126.70
1799 33.36.52.212
1847 66.249.66.167

If you find IPs that are connecting a lot first check to see who it is:


HTML Code:
host ipaddy
replace ipaddy with says 66.249.66.167

so

HTML Code:
host 66.249.66.167

Then you would block the ip addy connecting alot.

Maybe that will help if you can find the logs
Reply With Quote
  #9  
Old 05-11-2007, 03:39 AM
badboyz badboyz is offline
 
Join Date: May 2006
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the problem is when i type

(with my own user name and domain name)
/home/user/logs/domain.com/http

it says no such a file
Reply With Quote
  #10  
Old 05-11-2007, 03:59 PM
MrPHD's Avatar
MrPHD MrPHD is offline
 
Join Date: Feb 2006
Location: Portugal
Posts: 385
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by badboyz View Post
the problem is when i type

(with my own user name and domain name)
/home/user/logs/domain.com/http

it says no such a file
Hi, whats your Administration Panel? regards
Reply With Quote
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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04741 seconds
  • Memory Usage 2,253KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete