vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Question About Dedicated Server (https://vborg.vbsupport.ru/showthread.php?t=146964)

badboyz 05-11-2007 02:53 AM

Question About Dedicated Server
 
How do i check httpd loges in ssh?

anyone help me with this please

Wizardjv 05-11-2007 03:09 AM

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

badboyz 05-11-2007 03:13 AM

No such file or directory

im getting this error when i type "the cd /home/user/logs/domain.com/http "on ssh

Wizardjv 05-11-2007 03:17 AM

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?

badboyz 05-11-2007 03:18 AM

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

Wizardjv 05-11-2007 03:22 AM

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.

badboyz 05-11-2007 03:24 AM

Quote:

Originally Posted by Wizardjv (Post 1245393)
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

Wizardjv 05-11-2007 03:36 AM

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 :)

badboyz 05-11-2007 03:39 AM

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

MrPHD 05-11-2007 03:59 PM

Quote:

Originally Posted by badboyz (Post 1245404)
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


All times are GMT. The time now is 10:25 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.00996 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete