![]() |
|
|
|
||||||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Are there any log files on a virtual server?
I have asked my host they told me it wasnt possible to download logfiles from a virtual server. They use awstats , no control panel. Anyone care to comment on what else i could do.
I guess awstats needs to read some files somewhere in order to display data,right, why cant i download those?
|
|
#2
|
||||
|
||||
|
They *should* offer raw log files; but it depends on the host. And it's no big deal to grep your site from the apache logfiles and write to a texfile. Even simpler; config apache to give you your logfiles.
Do you happen to have a cpanel server? If so; it can be configured to save your logfiles so you can get the raw logs once a month. This can be configured in the cpanel. |
|
#3
|
|||
|
|||
|
Nope wish i had a Cpanel but i dont. I ll just make a call on monday and ask them whether they can give me permission to download the log files. Im already aware of what directory they are in but i dont have permission to enter the dir.
|
|
#4
|
|||
|
|||
|
I agree with flawebworks, you should be able to look at the logs. Analysis data just doesn't offer the same level of information (e.g. if somebody tried to hack your website).
From the configuration point of view, there are two ways to produce per-virtual host logs: a) using CustomLog and ErrorLog inside VirtualHost section in the main configuration file; b) by logging the host name (%v) and splitting the main log file once in a while. In the first case you will have log information as soon as Apache flushes it current log buffers, in the second, usually, once a day. Some hosting companies avoid the first method because it puts additional strain on the system. J.D. |
|
#5
|
||||
|
||||
|
Crazyhorse; I just had a thought. What kind of operating system is your site on and where are the log files? (path)
|
|
#6
|
|||
|
|||
|
Well i had a look at the config file of awstat and this is what i can come up with:
LogFile="/usr/local/apache2/logs/www.precon-nederland.nl.log" Not sure this is the path we are looking for but i guess it is. And if not mistaking its linux that is used as OS. |
|
#7
|
||||
|
||||
|
Quote:
I found this back when I had a hosting account that didn't offer log files; ran it in a cron job once a day. It at least gave me my logs. Create a text file; name it log.sh, put it in your root directory. Put this in it: #!/bin/sh DATE=`date +%m%d` LOGDIR='/usr/local/apache2/logs' TODIR='/home/youruserid/public_html/logdirectory' cp $LOGDIR/www.precon-nederland.nl $TODIR/youruserid$DATE.log The LOGDIR is the log directory on your hosting server. The TODIR is your directory you want to put the log files in in your root directory. You may or may not have a public_html directory; use whatever applies to you. You may also have to play with this some; you may have to use the /usr/local/apache2/logs/www.precon-nederland.nl.log for the LOGDIR command; but try with out first. |
|
#8
|
|||
|
|||
|
This explains why you can't access your log files - your hosting company produces per-site log files, but keeps all of them in the same directory. It's a misconfiguration on their part. If they can't configure Apache to output log files in one of your directories, they should run a job to copy your files from the shared directory to one of yours.
I'd be very surprised if you could access any of the files in the shared directory - this would be a huge security hole. Before trying the script, do ls -al /usr/local/apache2/logs/ to see if you have read access. If you do, and you see other people's files in there, it's time to change your hosting company. J.D. |
|
#9
|
|||
|
|||
|
Quote:
|
|
#10
|
|||
|
|||
|
Quote:
|
|
#11
|
|||
|
|||
|
Quote:
J.D. |
|
#12
|
|||
|
|||
|
Well the first thing that came up in my mind is adding a extra link, in the config awstats file, that would give me in a instant 1000 maybe less or more new fresh set of backlinks. I know its bad to think like that but that was the first thing that came into my mind. Still appreciate what you just mentioned above and i will notify them about it and then continue on how to get the log files so that i eventually can do some studying on the actual data.
|
|
#13
|
|||
|
|||
|
Hi!
Don't you have root access to your virtual server? All my virtual servers have logs in /var/log just like the real thing. I, myself, would never have a virtual server I didn't have root access to and complete control. Bryon |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Transitioning Optigold to a New Server | nuwanet | Optigold ISP | 8 | Jan 18th 2007 2:08 pm |
| PHP in HTML with IIS Solution | ProductivePC | Setup / Validation Help | 19 | May 30th 2006 8:40 am |
| how to insert header/footer server side for existing html files | jjdubb | Programming | 30 | Jan 28th 2006 10:54 pm |
| Preview in a webbrowser on a virtual server? | crazyhorse | Site & Server Administration | 14 | Feb 8th 2005 12:55 am |
| passthru.php, shtml files, etc. | Owlcroft | Co-op Advertising Network | 3 | Dec 20th 2004 3:39 pm |