Debian Configuration :: Awstats Access To Apache Logs?
Mar 10, 2011
In a squeeze box, I installed awstats and it's working like a charm. Its cron job update the awstats database every 10 minutes (as it runs as root). But I would like to be able to update the statistics from the browser as well. So I setup everything as required and I gave "read" access to "others" to every apache log file. Now, a couple of questions came to my mind:
1. Am I compromising server's security giving "read" access to "others" to apache log files?
2. Instead of giving "read" access to "others", I could add www-data user to adm group (as apache log files are owned by root:adm and permissions are rw-r----). Is this more secure than giving "read" access to "others"? 3. If the option would be giving "read" access to "others" at the end, a log file would be owned by root:adm and its permissions be rw-r--r--. As apache rotates its log files, when Apache create a new log file, does it preserve the permissions (rw-r--r--) or create it with the default permissions (rw-r-----)?
View 1 Replies
ADVERTISEMENT
Sep 1, 2011
We had recently got some problem with our server(local server) and we recently upgraded from Ubuntu server 8.04 to 10.04 and we were not able to access awstats logs from web.So can any one say a method to get back the logs from the server?
View 1 Replies
View Related
Sep 7, 2010
wants some sort of logging capability on the system. to have a log of every change to every file, although that might be a bit unwieldy. perhaps a simpler compromise would be some way of monitoring a few specific folders, and tracking all changes to them, including the user that did so. Particularly important is that it should be possible to work with access through samba, as we want to track what users on the network are creating or changing files. Is there functionality like this already built into debian or samba? is there a useful additional app to gather this information? or am I going to need to be grep'ing log files to present something useable?
View 2 Replies
View Related
May 23, 2011
Having some memory loss i think (in my head not my pc). I have set up apache before , then changed to dsl in the last week and cant seem to get this new modem/router to work. i can get the loopback address to work, as well as the network ip. can NOT get my other machines to hit the server on the network .
also no connection from outside the network from port 80. my modem is a motorola (att) ,apache2 on my toshiba laptop, amd x2, 3gigs ram.
View 9 Replies
View Related
Aug 21, 2010
I have installed apache php and mysql on my pc during debian installation... some of my friends complain they cannot access my webserver from their home and it's available only within my local network... Please help regarding this...
View 6 Replies
View Related
Jul 6, 2011
I am new to web server support. I have a request from my management to modify the logging slightly. Effectively I need to redirect a custom string from our http response into the apache access logs. When a user navigates to our site they receive a "dye" number that is associated with them. This number follows them to whatever cluster they are directed too. The string is formatted as such, com-company-dye: d0a2#6dfce. I need that that header dye to appear in the access logs so we can use that dye number as a key for troubleshooting issues though out our various monitoring systems.
View 3 Replies
View Related
Jul 29, 2010
I want to restrict the access to my local web server by IP address. Im in a LAN (192.168.200.xx) so i have this:
[code]....
But when i try to connect from 192.168.200.4 it says i don't have permission to access
View 1 Replies
View Related
Apr 22, 2009
I don't mind that apache logs "rotate". By that, I mean that periodically the most recent log is renamed "*.1" and the older logs are bumped up a number In my particular situation, I do mind that the log that was "*.4" is deleted rather than being renamed to "*.5" when that periodic renaming happens.
I know most of the other /var/log files have the same behavior. What does this? Can I change it so my apache logs are "rotated" up but aren't deleted? I know this will take some hard drive space, but I have a lot of it.
EDIT: CentOS 5.3, kernel 2.6.18-128.1.6.el5, Apache 2.2.3
View 1 Replies
View Related
Feb 28, 2009
I just installed AWStats on a new server and can't get perl to properly work as a cgi in apache. I've done this before and got it to work, and I've tried a couple suggestions found from google with no luck. When I try to access [URL] from my browser, Apache doesn't give any errors or anything, it just outputs the perl file in plain text, which implies that it's not handling the .pl file as a perl cgi, but I just don't know why.
Code:
<VirtualHost *:80>
DocumentRoot /webs/mysite.com/wwwroot
ServerName mysite.com
ServerAlias www.mysite.com
[code]....
View 12 Replies
View Related
Mar 30, 2010
I noticed i have quite a few logs that end with .[number] for example "syslog.1" "mail.info.1" etc, why is this and why are they there since almost nothing is logged in them ??
Question 2: on my server im running a script like imagebam and imageshack with hosts images so i have quite a few apache requests to my server. I am wonder why apache takes up so much CPU for some of the requests? in Htop some requests take up 1.2% CPU while other take up 3-5% etc, so the total load is about 1.50 0.58 0.84 to 2.61 1.08 1.14 with about 128-150 apache requests all the time while sometimes the CPU load can be almost 0 with the same ammount of requests. is this normal? what could cause this in apache ?? the server is just running apache2. MYSQL is running on another server.
View 1 Replies
View Related
Dec 1, 2015
How to enable persistent logging with systemd? I find it really weird that all this machinery that is systemd doesn't store persistent logs, what if I'm trying to retrieve some information regarding previous boots?
For instance: I have random suspend issues, after rebooting the computer there's no trace left in the logs of what happened, and furthermore (at least in Jessie) I can no longer see a pm-suspend log.
So, at first it sounds like all you have to do is edit journald.conf setting #Storage=auto to "persistent" and create the /var/log/journal directory, but then reading here /usr/share/doc/systemd/README.Debian
Code: Select allEnabling persistent logging in journald
=======================================
To enable persistent logging, create /var/log/journal and set up proper permissions:
install -d -g systemd-journal /var/log/journal
setfacl -R -nm g:adm:rx,d:g:adm:rx /var/log/journal
and here [URL] ....
There are two main reasons why I decided to not enable persistent logging just yet ....
We did get corrupt journal files in the past where the journal then no longer worked at all [1]. With volatile you can just reboot and have a clean state again. Admittedly, the journal has seen a lot of improvements in the mean time and hopefully is more robust, so this point is no longer true.
We still install rsyslog by default. That means we get store them twice. This is something we don't want to do atm.
View 3 Replies
View Related
Jun 22, 2015
So the question is simple what I need is to run file.sh after user logs into desktop LXDE.
Ive been trying whole day tried to put my file.sh into /etc/init.d and ever created symbolic link to /etc/rc4.d etc..
BUT after I log into desktop nothing happens?
I am coming from ubntu there it was easy just add that script into startup applications.
View 14 Replies
View Related
Apr 22, 2016
I've enabled permanent systemd logs in Jessie, and after a while I'm seeing messages about corrupted logs when checking with journalctl --verify
Code: Select allInvalid tail monotonic timestamp 0%
File corruption detected at /var/log/journal/..........
as far as I can see, there is currently no option to delete this files from within systemd facilities, is that correct?
Should they be deleted manually, or just left alone?
Apparently I can still read all older logs regardless of such reported corruption, using the journalctl --boot -n option.
EDIT:Another thing coming to mind is that this has been happening for me not only in Jessie but in every systemd-based distro that I've tried, once permanent logging is enabled: is that some kind of systemd bug?
What would exactly mean
Code: Select allFile corruption detected at /var/log/journal/38d5e6b861134eadb37cbd64b98a66bd/user-65534@d1745ac610d2459f940a24f27abd6d47-0000000000000f14-00051b8d2dabdcac.journal:000000 (of 8388608 bytes, 0%)
in particular, the 0% of 8388608 bytes part ?
View 0 Replies
View Related
May 7, 2011
i get file system errors on boot up. found logs in /var/logs but cant access them. second best thing i can do is to re-install debian but no one seems to want to say how thats done. my disk wont run in wine (some error i dont remember) so i cant use my CD /flashdrive to re-install.
1) i need to read the log files and try to fix the install
2) if i cant fix i need to know how to wipe the OS and do a fresh install
View 2 Replies
View Related
Jul 1, 2010
My first message on this forum, I'm a new comer in the Suse world (after 10 years of debian, ouch) I really like this distro so far. Fast, clean, simple. I got an "acess denied" issue with the apache configuration though. I've installed apache through yast and configured it with yast-http. Permissions are okay and a index.htm file is in the directory.
I won't ask for a direct answer cause everything can be found on the wiki. However, I'm surprised that configuration files are not erased when the related software is uninstalled. I've spent the afternoon trying to make it work so I guess the config files are spoiled right now. I tried to erase all the config file but can't find the yast-http ones, so it does not launch the wizard like the first time. yast-http also warns about my network ruled by NetworkManager, and that it could not run properly with it, how come?
View 4 Replies
View Related
Sep 23, 2015
So, my issues since upgrading to Jessie seem to compound. When I fix one issue, two more arise. Right now, I have a full system disk. How it got so full. So I started poking around. I ran
Code: Select all find / -type f -size +50M -exec ls -lh {} ; | awk '{ print $NF ": " $5 }'
Found a few files I could delete, and did, but I also found Code: Select all/var/log/syslog.1: 33G
/var/log/messages: 33G
/var/log/user.log: 33G
What I find strange is that they're all exactly 33G each. So that accounts for the missing 99GB I deleted them, however only recovered 27Gb. Whats weird is when I type df -h I get
Code: Select allFilesystem Size Used Avail Use% Mounted on
/dev/dm-0 106G 74G 27G 74% /
udev 10M 0 10M 0% /dev
tmpfs 3.2G 9.7M 3.2G 1% /run
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda1 228M 27M 189M 13% /boot
/dev/sdb1 1.9T 62G 1.8T 4% /media/ntfs
tmpfs 1.6G 0 1.6G 0% /run/user/0
What are the tmpfs's and how can I reclaim that space, and what is /dev/dm-0 and why is that taking up so much space?
I have 2 LVGs vgdisplay -v
Code: Select allroot@SETV-007-WOWZA:~# vgdisplay -v
DEGRADED MODE. Incomplete RAID LVs will be processed.
Finding all volume groups
Finding volume group "WOWZASERVER"
[Code] ....
After deleting the log files, I was able to regain access to my GDM session. But I still cant find out what /dev/dm-0 is, and where all the 75 GB is being taken up.
I just noticed, however, even though I can access the drive A-OK via browser, terminal, and web services (Our wowza) when I enter gParted I get this error for sda, my primary OS drive!
Code: Select all Libparted Bug Found!
Error informing the kernel about modifications to partition /dev/sda2 -- Invalid argument. This means Linux won't know about any changes you made to /dev/sda2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting
Now that I'm in gParted I see 3 partitions: [URL] ....
It reports now, that I have used ALL of my disk space.
Post Log delete, and fresh reboot, this is what Code: Select alldf -h outputs
Code:
Select all Filesystem Size Used Avail Use% Mounted on
/dev/dm-0 106G 8.7G 92G 9% /
udev 10M 0 10M 0% /dev
tmpfs 3.2G 9.8M 3.2G 1% /run
tmpfs 7.9G 80K 7.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
[Code] ....
What the heck is going on?
View 0 Replies
View Related
Mar 25, 2016
I'm getting BSOD when I'm booting my main system (debian 8 fully updated). I get a BSOD with a _ sign. URL...because I can't access to failed boots files. Besides having the files
Code: Select allfelipe@debian ~ % ls /var/log/journal
362d07f9e18b45f8aec4575c347f181d 92e8a448f7a348719da129184a7e6821
Code: Select allfelipe@debian ~ % journalctl --list-boots
0 0c51ae5b67f144059c5470dbe345d621 vie 2016-03-25 09:05:29 ART—vie 2016-03-25 09:11:58 ART
View 3 Replies
View Related
Jan 18, 2010
i do have a strange problem get running php5 on lenny 64 inside apache2. i had installed it as all instructions on the web does: # apt-get install php5 libapache2-mod-php5 php5-cli php5-common php5-cgi
apt has enabled php automatically, so
/etc/apache2/mods-enabled/php5.conf does have inside:
<ifmodule mod_php5.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</ifmodule>
[Code]...
View 3 Replies
View Related
Jul 31, 2011
I am using Squessze and Gnome. When I try to use the gui System>Administration>Network or Users and Groups I get the error The configuration could not be loaded. You are not allowed to access the system configuration.Everything was working before. I read around a bit. In some cases,it was caused by mismatching group and password files after using the gui. I do not know how to check if they are matching. Of course I do not know for sure that is the problem in my case.
View 14 Replies
View Related
Feb 24, 2011
How can I remove awstats from my Debian Lenny installation, will aptitude remove awstats
View 5 Replies
View Related
Jan 29, 2016
I have a host system which is running Ubuntu and a guest system which is running Debian_squeeze on qemu VM. I need to send created traffic from Ubunto to Apache2 web server which is running on Debian. I made a bridge, and I can access internet from Debian, but this access is limited! I can just open some URLs not all of them! My question is how I can access the webserver from ubuntu?
View 1 Replies
View Related
Feb 10, 2016
I am trying to access logs Apache logs (I just installed Apache) and it is giving me permission denied errors. What permissions did you give to yourself in order to access these logs or should I just add this user(myself) to adm group?I can access other log files with no problems for example ssh logs.
View 6 Replies
View Related
Oct 8, 2010
I just installed a net-install of debian 5.0.6. with no GUI and Apache http d. Does anyone know where I can find or how to do a basic Authentication on my web server (user-name and password) I found some stuff but they include .HTpass (of Apache) etc etc, but I can't find them anywhere
View 1 Replies
View Related
Aug 6, 2015
Since a few month, I upgraded my configuration to an Acer Aspire E 17 laptop. I dropped the Windows 8 that was installed inside by default. Right now my hard disk looks like that :
- A Windows 10 Installation form the final released version's iso
- A Debian 8.1 Installation with Gnome 3.x as desktop
As I am a developper, I enjoy Debian, the power, and the capabilities unlocked with Linux systems. However, I still need my Windows installation for design work, making templates, etc. For now, I need to boot Debian if I want to code, and to boot Windows if I want to use some proprietary programs such as Adobe's softwares. For a lot of reasons I can explain, I don't want to use alternative like Gimp, and I don't want to run so big softwares under Wine.
So, I want to do the following : I want to create a little partition formatted in ext4 on my disk (something like 10gb ?) and make this partition running my local configuration of Apache 2. This way, I could run my webserver, with the same files both on Debian (when I need to code) and Windows (when I need to design / template and to test some stuffs into my templates files). I could mount this partition under Windows using ext2fsd program, but this way of thinking supposes there is both Apache's linux binaries and Apache's windows binaries to run and manage the server in this partition (making something like a " portable " version ?) .
View 4 Replies
View Related
Mar 3, 2011
I haven't used Plone in quite a while and am having problems getting Apache to serve it up now. I'm using the same configuration that I used for proxying Plone sites for a couple of years, but now that same configuration now gives me the following error in Apache's error log: [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.Here's the proxy modules I'm loading for troubleshooting purposes for now.
apache2ctl -t -D DUMP_MODULES | grep proxy
Syntax OK
proxy_module (shared)
proxy_ajp_module (shared)
[code]....
I've Googled this extensively and it seems most people who ran into this problem hadn't loaded the proxy_http module after upgrading to Apache 2.2 from 2.0.
Edit: BTW, I'm using Plone 4.0.3 now. I was running Plone 2.5 before. I don't see why that would be a problem though as VHM's are now built into Zope.
View 1 Replies
View Related
Mar 29, 2011
'm using Debian 6 (Squeeze) and I'm trying to migrate away from Apache to Nginx, but my Nginx installation seems to be showing some weird behavior.
aptitude install nginx-extras
/etc/init.d/apache2 STOP
/etc/init.d/nginx START
the configuration file /etc/nginx/global.conf syntax is ok [alert]: mmap(MAP_ANON|MAP_SHARED, 33554432) failed (28: No space left on device)
configuration file /etc/nginx/global.conf test failed
View 7 Replies
View Related
Sep 30, 2010
i have several sites hosted on one machine (Apache 2.2 on Debian). They are configured at /etc/apache2/sites-available/ with this configuration (part of it):
RewriteMap lowercase int:tolower
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
RewriteRule ^(([^./]+.)?site1.com)/(.*) /www/site1.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site2.com)/(.*) /www/site2.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site3.com)/(.*) /www/site3.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site4.com)/(.*) /www/site4.com/www/root/$3 [L]
[Code]...
View 1 Replies
View Related
Jan 19, 2010
Just installed CentOS 5.4 selecting Server configuration where web server was installed.
After install, I browsed to the ip of the box and no apache test page shows up. /var/log/httpd/error_log doesn't show any browse attempts.
service httpd start
OK
try again and no browsing.
Did a :
yum install httpd
it installed httpd.i386 along some other dependencies.
Did a:
service httpd restart
OK
and still not browsing.
basics of getting apache running and configured on a fresh server?
View 6 Replies
View Related
Mar 4, 2010
I'm having trouble implementing SSL on a AvantFax login screen. I've created the the certificates and keys and have them stored in /etc/apache2/ssl and I'm sort of stuck now. I've been following a guide but any changes to the conf files leads to errors. The system I'm using is Debian 5.0
[Code]...
View 2 Replies
View Related
Oct 16, 2010
my server into the public internet and must have my webserver [2.2.9 (Debian)] act secure. But this does not look very easy [I am searching, reading and working on it already the whole day ]. I read the apache docs, but there is a lot of stuff, which is different in Debian [lenny, 5.0.6]. Apache ignores the host-header given by the browser: [URL] are all served, but should be blocked. I new new to apachy, but on my IIS this works as expected. All browsers act equal [so no browser header problem].I configured two VirtualHosts, an excerpt:
NameVirtualHost hugo:80
<VirtualHost hugo:80>
DocumentRoot /usr/share/doc
[code]....
The I go to my hosts file on any box, and add hugo's ip-address under the new name x. Then, x is served, although the host-header in apache Every user coming from the internet could make the same!
View 13 Replies
View Related