| Private Hosting Questions about VPS, dedicated servers and colocation. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Surpass Fan
Super #1
Joined in Mar 2006
1,024 posts
Gave thanks: 66
Thanked 55 times
|
Useful File Locations
Useful File Locations
This is something that I wish I had known when I first started out, now i am completely clued up so thought I would share my knowledge with this that have not had as much experience or need somewhere to start: HTTPD Conf: /etc/httpd/conf/httpd.conf (edit with care) PHP.ini (When using ZEND): /usr/local/Zend/etc/php.ini I have attached a simple info.php file for people to use so they can check php settings easily. (Just renamed the extension from .txt to .php and upload. General Server Logs: /usr/local/apache/logs/error_log /usr/local/apache/logs/access_log /usr/local/apache/domlogs/sitename.com /var/log/messages /var/log/dmesg /var/log/maillog /var/log/exim* * = All files starting with exim are important to view and monitor /usr/local/apache/logs/* * = All log files inside the above directory are important to view and monitor /usr/local/cpanel/logs/* * = All log files inside the above directory are important to view and monitor Server Login/Access Logs: /var/log/secure /var/log/logins_log CPanel Logs: /usr/local/cpanel/logs/access_log To view the logs: pico -w <log file path & name here> Example: pico -w /var/log/maillog To view the files inside the * directories you simply type. cd <directory> ls View your logs in realtime tail -f <complete_file_name> Login Notification CSF/LFD provides you with automated notification when someone logs in as root via ssh but if you do not have it installed, here is a way to recieve notification: Step 1 - login and in the root directory and run: PHP Code:
PHP Code:
Step 4 - Save and exit PHP Code:
Last edited by deastwood; December 6th, 2006 at 7:43 AM. |
|
|
|
|
|
#2 (permalink) |
|
バタフライ
Joined in May 2003
Lives in Orlando
|
Do you mind if I post your articles into the wiki as well?
http://wiki.surpasshosting.com We are about to start a massive Wiki mission to get it filled up, and your articles would be very useful. =)
__________________
|
|
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Super #1
Joined in Mar 2006
1,024 posts
Gave thanks: 66
Thanked 55 times
|
go for it, just trying to pay back all the help i got from you guys and this forum, alot of it is just info collated from different sources and stuff that i use.
*would just like to add im proud to be the first person removed has thanked! |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jul 2004
Lives in NY, NY
Hosted on I dont know!
47 posts
Gave thanks: 0
Thanked 0 times
|
That's very cool. I love the bash root login trick.
__________________
Hosted By Surpasshosting on sh99 : SimFIA, TheNZ. Hosted By KingPinServers : Eagle Race Team.
|
|
|
|
|
|
#6 (permalink) |
|
Registered User
Fresh Surpasser
Joined in May 2006
8 posts
Gave thanks: 0
Thanked 0 times
|
When I use the bash root login code above, I get the "you must specify recipients wiht -s, -c or -b" error and it never sends mail. Did I miss something?
__________________
Joe VPS Customer |
|
|
|