Server :: Clear All Apache Log Files?
Nov 14, 2010
i've had my dedicated server for about 16 months now and my log files are huge and I host a few small sites but one of them is quite large and can get a log file (access.log and error.log) of 1-2gb a month so over a year can take up almost 30gb just for that site so I clean them out regularly but I'm wanting a more automated way to do thisi've been thinking of using the find command using something like this but it isn't workingCode:find /var/www -name "*.log" -type f -size +10M -exec echo > {} /;
View 13 Replies
ADVERTISEMENT
Feb 4, 2010
Any one have an idea How to clear apache cache without restarting apache server.
View 5 Replies
View Related
Sep 1, 2010
I'm getting a weird situation where even though I updated an image in a folder for a website in apache, it's still showing the old image. And yes, I checked it in multiple browsers and on diff. computers. (Apache is in a virtualbox OS)
Here's what I've done:
1. Checked it in firefox on the host, cleared cache, reloaded
2. Restarted apache
3. Checked it in konqueror for first time, still showing old version
4. Checked it in the actual file folder and it's correct there
5. Checked it for first time on virtual machine's OS in its firefox, and it shows the wrong/old image
View 9 Replies
View Related
Jul 13, 2010
I am not clear with certain sections of apache I saw a default virtual host file. as follows
[code]...
What does Directory / here represents is it same as document root or different. The following section where /var/www is included in Directory Index
[code]...
I am not clear as why by default ScriptAlias is present in the default vhost is it necessary to keep in other Virtual Hosts. Similarly /doc/ what is this referring to in following section
[code]...
View 2 Replies
View Related
Feb 2, 2011
I try to config my apache server to list all my files: c/c++, php, java files, like the txt file on my server,
e.g /var/www/mydomain/pub
i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name,
if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file,
Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?
View 1 Replies
View Related
Feb 23, 2011
config my apache server to list all my files: c/c++, php, java files, like the txt file on my server, e.g /var/www/mydomain/pub i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name, if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file, Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?
View 1 Replies
View Related
May 23, 2011
Is there a cc cleaner equivalent for linux to clear out tmp, internet files, etc.?
View 9 Replies
View Related
Jul 2, 2010
i installed apache 2.2.15 in my system its working properly.... but i deployed some php files in /usr/local/apache2/htdocs ... i was not able to run that php files ..... if i run that php file in browser it shows content of that file... for an example i created one test.php file(it contains <?php echo "hello world" ?>) and put it in /usr/local/apache2/htdocs... if i run in browser using this [URL] its shows in browse like this <?php echo "hello world" ?>......
View 1 Replies
View Related
Oct 27, 2009
Possibly off-topic, as this is in a VServer, running a non-standard kernel, but both the host and the VServer are running CentOS, so.....I've been happily running a small web site on a CentOS 5.3 host, using Linux-VServer. (So it actually runs on a 2.6.22 special VServer kernel.)This *might* be connected with updating to 5.4, but I'm not sure how. VServer itself was not touched, and httpd runs inside it (that is, using the VServer's httpd, not the CentOS one. Vserver however, is running Centos.
Suddenly, anything I load into the VServer DocumentRoot is not visible. A ls -l of files that show and files that don't show the exact same thing. That is, for example-rw-r--r-- 1 root wheel 106314 Oct 5 22:38 mutt.html-rw-r--r-- 1 root wheel 390 Oct 26 22:09 new.htmlYet, mutt is viewable and new.html just gives me a 404.
So, I then edited the mutt.html.I added a line like line for testing or something similar.That too, does not show up. That is, the mutt page shows, but the change I made in it doesn't show. I've tried restarting the vserver, but that did nothing.(And yes, I did hit refresh on the browser and also used another browser, to be sure.)I raised apache log level to debug, but neither access nor error shows me anything.I'm not even sure what terms to use in googling, trying things like newer files apache not visible and similar have brought me no luck.
View 6 Replies
View Related
Feb 19, 2009
We are having an odd apache issue. Certain files are not being served out.The files actually live in a remote DFS volume served off a windows system. They're mounted under /data/vizwx. There's a subfolder here called wx_intranet which has all the data.The Document root for this virtual host is /data/www/htdocs. There is a data/vizwxsubdirectory with a symlink named wx_intranet which points to /data/vizwx/wx_intranet .SELinux is completely disabled (not even permissive).
When a user requests a file from http://<host>/data/vizwx/wx_intranet/VizWx_14c.jpg no error is given to the browser. Firefox just shows the URL in question (I can't even view source). The <vhost>_access.log file shows: wx_access.log:172.16.1.16 - - [19/Feb/2009:15:30:16 +0000] "GET /data/vizwx/wx_intranet/VizWx_14c.jpg HTTP/1.1" 206 167791And there's nothing in the <vhost>_error.log, even after cranking the LogLevel up to info.
The permissions on the files in the share are slightly weird for reasons I don't fully understand, but they should work... the files are an effective 'chmod 3777 <file>' for all files in the mounted directory... that's with Sticky and SetGID bit set.What am I missing here? Oh, I also modified the Vhost's options from "Options all' to 'Options all -SymLinksIfOwnerMatch" to see if that was the problem... no dice.)CentOS v5.2, apache 2.2.3
View 9 Replies
View Related
Mar 30, 2010
I recently started using SVN with Apache for my web development, although I find it really annoying that I have to issue two SVN commands (one local, one remote) to update my web site. I have been looking into SVN post-commit hooks to solve this problem. The only problem is that apache does not have permission to modify files in my user directory... So here is how everything is setup. I am running Slackware 13 full install. There have been no installations overriding any of the default installs.
[Code]....
View 1 Replies
View Related
Jul 2, 2010
I'd like to permit to start download file when I click over some links. How can I to start download files through http protocol with apache 2?
View 5 Replies
View Related
Jan 6, 2011
my task is to store the data to a file at server sent via HTTP POST, i written suitable cgi script in C, but the PROBLEM is that i can't complete the task, I guess i require server permission to do so, how to configure server or how to get access right from server to store data to a file.
View 3 Replies
View Related
Sep 11, 2010
How can I disable Options +FollowSymlinks in .htaccess files on an Apache web server?
View 3 Replies
View Related
Sep 6, 2010
So if I disable apache 2 my ngnix server will serve the files in /var/www automatically.
View 1 Replies
View Related
Oct 20, 2009
I suspect that this has come up numerous times, but I am new to Linux and I am setting up a new in-house server using Ubuntu 9.04 and Apache, etc. I can see the welcoming "It Works!" message when I log in via Firefox. I can see "index.html" when I FTP the server with the site name and password at /var/www. I can also see the -rw-r-r-- attributes, but I can't edit the HTML file or replace it. When I try to rename the "index.html" file.
I get the following message: "Request denied. Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation."
I haven't been able to determine where to enter the password or what changes I need to make to be able to work with the /var/www directory via FTP.
View 4 Replies
View Related
Jun 9, 2010
I'm trying to send files from a Unix server using http/curl to a Linux webserver running Apache. I get the following PUT error message when and the file does not send:
<title>405 Method Not Allowed</title>
</head><body>
<h1>Method Not Allowed</h1>
<p>The requested method PUT is not allowed for the URL
View 2 Replies
View Related
Oct 14, 2010
I am trying to solve a problem where Apache stats aren't displaying correctly in Munin. I've ran through quite a bit of checks and tests regarding Munin setup, but I think my issue is related to Apache, but my skill set there is lacking.
first, system info:
monitored server:
CentOS 5.3 2.6.18-128.1.1.el5
[code]....
View 7 Replies
View Related
Jun 23, 2010
I just noticed that my hard drive is filling up with unnecessary files. what is the command to clean it up?
I've had to do this in Mandriva a while ago on my other pc. I'm running opensuse 11.2 KDE 64 bit
View 5 Replies
View Related
Jun 13, 2011
I'm trying to setup an Apache server on my computer which will allow browsing of files in a specific directory and subdirectories, without needing any sort of authentication.
I've got the Apache2 server up and running through yast, and everything works fine as long as I try to point it to the /www/htdocs folder. However, I want to point it at another folder, which is on another partition. This partition is formatted as NTFS, if that matters at all (here's some background on some permissions issues I had with the NTFS partitions recently).
When I change the "Directory" setting in the Yast http server configuration utility to the directory on the NTFS partition I wish to use, attempting to access the server results in the following error:
Code: Access Forbidden: You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster.
Error 403
192.168.1.100
Mon Jun 13 23:43:29 2011
Apache/2.2.17 (Linux/SUSE)
View 4 Replies
View Related
May 14, 2011
I am using Files and Folders search application in Ubuntu 11 recent version. App that shows up on side. However I am not sure how clean its search result. I do not see any option.
View 2 Replies
View Related
Apr 19, 2011
No more than 15 hours after a breezy installation and setup I somehow managed to stop the desktop manager from displaying. Once you boot into Suse, the loading bar goes across, a white flash, then a blank screen forever. I figured it was KDM once I booted into x11safemode and tried to boot the desktop manager, it recreated the situation.
I've tried un-installing and installing KDM again, however it seems to reuse the same config file. I'm thinking about deleting the config file mentioned, but I'm not sure what will happen when I install the desktop manager, if there's any setting up to get it to work with my setup, or even if that will fix the situation.
View 3 Replies
View Related
Apr 13, 2011
I realise KPDF is quite old now but as this issue may recur when I move to a newer distro (well, newer than Hardy) with Okular I thought I'd better ask.I use Gnome, but prefer KPDF to evince when viewing PDF files. However, KPDF's "Open Recent" list behaves very oddly - there's no apparent way to clear it, and items which were on the list one day aren't on it another day (coinciding with old items reappearing on the list).
Is there any way to clear this list?Similarly, is there any way to clear the list of recently opened files in the "Location" drop-down box in File-Open? (which also seems to mysteriously lose list items inbetween reboots).
View 1 Replies
View Related
May 20, 2010
Is there any way to clear them without reboot.kill is not working because process are in D state.
View 1 Replies
View Related
Jan 24, 2010
I am upgrading my server and I have a lot of sites. Since I cannot take my server down for a few days, maybe a week until I manage to migrate all the sites to the new machine, I figured I could migrate them one by one. After migrating one, I would somehow tunnel the requests of that name virtual host to my internal machine. When everything is migrated, I would then switch the machines, update ip's and stuff and everything will work just fine.
However I cannot seem to find a way to do this tunneling. is this at all possible? If not, what alternatives do I have?
View 5 Replies
View Related
Mar 13, 2011
My var partition is full. The main culprit is NOW the mail file. What is the command to empty the mail files?The mqueue and clientmqueue files are now low on usage but the mail file is responsible for filling up the var partition.
View 1 Replies
View Related
Feb 4, 2010
I have a dedicated server and I am having email issues etc (seemingly) because the /var directory is 97% full
I would like to know if it is safe to clear it and how to clear it (assuming it will not disrupt/kill server services to do so).
I have a 'Matrix' control panel so i can view the storage etc but it does not have an way of clearing the /Var directory.
I have Putty Access to root but do not know much about command line access.
I found a few threads but the information is not clear to me as there seems to be an assumption of (basic?) knowledge I don't yet have.
My linux support guru that usually does this kind of thing for me is away and not contactable and my server is grinding to a halt and unable to store/send email.
I have only a very basic understanding of command line but really need to get this sorted ASAP.
Is it possible and SAFE to delete files via FTP from the /var/cache/apt/archives?
View 12 Replies
View Related
May 19, 2010
I have an Ubuntu server running with lighttpd.
The file, access.log has utilized 73GB at: logs/lighttpd/, which contains data since 3 to 4 years (approx.)
So, i need to have only last 6 months logs in the file and the rest to be cleared.
View 4 Replies
View Related
Nov 9, 2009
is there any way to scheduled cache clear auomatically instead of manual in squid.
View 1 Replies
View Related
Jan 20, 2011
I am installing Big Brother on a CentOS 5.2 running the default Apache 2.2.3. When I try to access any web page I get the following error: Forbidden You don't have permission to access /bb/ on this server. Apache/2.2.3 (CentOS) Server at fmsubbnix Port 80 So far I have:
1) Set the Directory options to FollowSymLinks
2) Verified all directory and file permissions are at 755
3) Set permissions temporarily to 777 and received same error so I am assuming the issue is in a config file somewhere
4) in hhtpd.conf verified <Files ~ "^.ht"> is correct
5) verified the "default" directory is correct (/var/www/html)
I have read and tried several ideas in posts listed on the web but to no avail and am at a loss as to what to look for next..
View 3 Replies
View Related