Ubuntu directory for storing files [closed] - linux

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 12 years ago.
Improve this question
I have a server running on Ubuntu which creates lots of data and media files. I would like to know what is the best location to store the files.
Requirment :
My application running on java server(tomcat) needs to read, write and delete these files.
There could be 100s of these files and the files could be huge.
I would like to know what is the best location(directory) for storing the files.
thank you

Being linux, there are several possible locations that make sense. There is no technical limitation on where they can go - tomcat can access them anywhere. If it were me, I think I might choose this structure:
/var/<app>/media/
/var/<app>/data/
(where <app> is the name of your app)

Related

.ogg-files are not working on my website [closed]

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
". ogg" files will not play on my website. The browser displays a 404.3-error. It has probably something to do with the configuration of the server. When I asked the server administrator, he referred to http://blogs.iis.net/bills/archive/2008/03/25/how-to-add-mime-types-with-iis7-web-config.aspx. But thats a guide that is intended for. NET users - and my website are made in classic ASP. How is the solution implemented in classic ASP - is it possible?
See also: https://developer.mozilla.org/en-US/docs/Configuring_servers_for_Ogg_media
You need to use IIS manager, which means you either need a remote desktop connection to your server or you need to get your server admin to do it for you.
Either way, instructions on how to add a mime type are here
http://technet.microsoft.com/en-us/library/cc725608(v=ws.10).aspx

How do I avoid permissions problems when syncing files between several Linux systems? [closed]

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 have been using dropbox to sync between 8 different Linux machines. I use BasKet notepads to keep track of projects and it as well as many other applications seem to have problems syncing due to permissions, claiming 'can't sync "such and such file": permission denied.' There are plenty of guides on how to fix this temporarily, involving using the hidden "fix permissions" button in the interface, or using chmod, but the problem comes back because of the umask creating permissions that can't be synced between systems.
What is the best practice for solving this issue? Is there another system such as perhaps Isync with Google Drive, OwnCloud, or Ubuntu One that would be better than Dropbox in this case? Do I just need to host my Dropbox on a FAT partition? Any recommendations would be greatly appreciated, thank you!

How to find used memory on linux server in ssh [closed]

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 have a site which is a 1and1 dedicated Linux server.
It has the /dev/mapper/vg-00-var at a stupidly high, 148G and is at 88% which considering the actual website size is only 250MB there is obviously something wrong.
I have looked with the server error logs on the ftp client and find no errors.
How do I find why the memory usage is so high using ssh?
Try typing in the command prompt
top
To find out where the instance is type
which instaceName
Like
which ruby
Should give
/etc/ruby
Or what not

Unauthorised Perl Scripts [closed]

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
One of my servers just had the memory exhausted by a load of Perl scripts, we use plesk and they seem to have appeared under the /var/www/vhosts/domainexample.com/cgi-bin/ directory, I managed to stop all of the processes and delete the scripts but I have absolutely no idea how they would've got there.
Can someone point me in the right direction in order to prevent further attacks?
Who should have access to your webserver machine?
Does this include the owner/operator of domainexample.com?
Do you expect the owner to be placing cgis on your server?
Does domainexample.com need to run cgis?
does domainexample.com need to run perl?
You might want to start researching here:
http://httpd.apache.org/docs/current/misc/security_tips.html

Is it possible to clean a Linux VPS using the shell? [closed]

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 11 years ago.
Improve this question
Sometimes my friend give me root access to his CentOS VPS to help him install some programs and he leaves. Sometimes I mess with it, but I don't have the login information for Parallels Virtuozzo Containers, so can I clean the VPS using SSH?
It's faster than formatting the VPS and re-installing the OS.
You could always take a backup before you being work and revert the changes after the face. rsync is one potential tool you could use to do this.

Resources