Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I only have 32 GB disk space on my VPS, and currently the logfiles takes 26 GB. I found the files: access.log.1 and error.log.1, which is 17 gb together (var/log/apache2).
Can I just remove these files to free up some space?
Is it possible to stop the logging function? I know very litte about servers, and don't understand the logs anyways.
Thanks
if you dont need them, then remove it.
maybe you should install logrotate to delete these files automaticly after some time.
the access and error logs are mostly used for debugging (in my case) or for statistics or because of legal reasons.
You can also disable them: just comment out the lines regarding log in the config for the site (/etc/apache2/sites-available/*)
Related
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Recently I deleted my huge collection of data that I stored in my hard disc accidentally. I recovered it using some recovery software.
But I want to set my hard disc in such a way that, nobody can delete the files, even it is administrator of my system or other system , until the permission is changed.
I don't like to use any external software for my need.
What can I do?
The closest you can get to this, on Linux and OS X, at least, is setting the sticky bit on the directory containing the files and changing the owner of the directory and those files to a dummy user.
chmod +t /path/to/dir
chown -R someone /path/to/dir
The sticky bit makes it so only the file owner or root (or, on OS X, someone with write access to the directory) can delete or rename files in a directory.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have a folder with thousands of files and I need to rename only some of those files and remove a set of characters. Can anyone tell me which command to use from shell (putty)?
I have something like:
image01-GB.jpg
image02-GB.jpg
image03.jpg
image04GB.jpg
image05.jpg
image06GB.jpg
I need to remove -GB and GB if those characters exist, everything else should stay as is. I've been googling for the past 2 hours and can't find anything useful. Can anyone shed some light, please? BTW, I'm a total noob when it comes to shell.
I think you might be looking for the rename command.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
If yes, how big can my error_log file can get?
And after that, Apache will remove the oldest log from the file or will Apache stop logging?
There is a maximum file size in any file system, after reaching that size apache can't append to it. but making that much request can take decades (100-150 bytes will appended on each file not found error)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to fully backup my Mantis tracking system, what is the easiest way to do this?
If I only backup the database, does it backup everything on Mantis already?
Thanks!!
To completely backup Mantis, the database state must be saved. In addition, you should back up the following files or directories:
the upload directory, if Mantis is configured to store attachments on disk;
the config_inc.php file
any other custom files, like custom_strings_inc.php or custom_constant_inc.php
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am continuously getting Error Code “The ORA-01033: ORACLE initialization or shutdown in progress”
This is happening ever since I physically deleted a couple of .dbf files
I did this meself many years ago, deleting the files from disk before DROPing them from within Oracle. The following link has some steps for getting your database to come up after telling Oracle that the files are no longer there: http://www.mydigitallife.info/how-drop-tablespace-and-recover-oracle-database-when-accidentally-delete-datafile/.
Try Connecting as SYSDBA. Also look at the relevant lines from the alert-log. May be at (%ORACLE_BASE%/diag/rdbms/%ORACLE_SID%/%ORACLE_SID%/trace/alert_%ORACLE_SID%.log).
It is likely that oracle is trying to write to or open one of the .dbf files you deleted. What were the .dbf files?