resize /var/www (debian)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users resize /var/www (debian)
# 1  
Old 12-09-2007
resize /var/www (debian)

I have several live websites running in the /var/www/XXXX directory. Initially when I did the Debian install I limited the web directory to 6GB. I am now outgrowing that limit. Question is:

Is there a simple way to add space to the web directory???

I'd hate to have to redo the whole server, or install another drive. Any ideas?

PS. Please only comment if you have good working knowledge in this area, I don't want to try something and have to start from scratch.
# 2  
Old 12-10-2007
Look at the pages for LVM or "parted", but before you start invoking commands, make sure you have backup.
# 3  
Old 12-11-2007
Add more HDD

Hi,
You can install one more HDD in system and create Partition/FileSystem on that.
fdisk /dev/hdb
press m for help, n for create partition, t for changing FileSystem
Then after you can mount that HDD partition on some temperory location.
mount -t ext3 /dev/hdb1 /mnt/tmp

copy all of your existing /var/www content to /mnt/tmp. Example
cp -dpRf /var/www/* /mnt/tmp
After "successful" copy make sure to "sync" then, you can remove the contents of /var/www
To test you can unmount /mnt/tmp and mount /dev/hdb1 partition to /var/www location.
Finally create this mount point entry in /etc/fstab file
# 4  
Old 12-17-2007
Or you can link to another partition where is more space, for example:
ln -s /partition/with/more/space /var/www/directory

Note that the option "FollowSymLinks" is active in the directory section of apache Webserver.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Csh , how to set var value into new var, in short string concatenation

i try to find way to make string concatenation in csh ( sorry this is what i have ) so i found out i can't do : set string_buff = "" foreach line("`cat $source_dir/$f`") $string_buff = string_buff $line end how can i do string concatenation? (1 Reply)
Discussion started by: umen
1 Replies

2. Web Development

$_SERVER['DOCUMENT_ROOT'] directs to /var/www not ~/public_html

Hi all, Exactly like my title says. I am learning PHP and MySQL and I used to use /var/www/ to host (contain or store) my files (.htm/.php) for testing. I could configure, finally, apache2 to use ~/public_html instead. Now I when I tried to use $_SERVER it still directs (I used echo to show... (7 Replies)
Discussion started by: faizlo
7 Replies

3. Debian

Help request. FTP user to var/www/html

Hi all. I appologise this is my first post, I will gladly have a further look around to see if this has been posted elsewhere, but so far it has not, or it doesnt quite explain in full what I need. If anyone here can help me out, I would really appreciate this. I want to make sure I do this... (1 Reply)
Discussion started by: Pinkfloyd
1 Replies

4. UNIX for Dummies Questions & Answers

How to protect directory var/www in debian?

hi i need somme help to protect directory in debian with user and pass var/www thank's (6 Replies)
Discussion started by: azzeddine2005
6 Replies

5. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

6. Solaris

/var/adm & /var/sadm

what is the difference between tha /var/adm and /var/sadm files in solaris 10 Os please can any one respond quickly thanking you (2 Replies)
Discussion started by: wkbn86
2 Replies

7. UNIX for Dummies Questions & Answers

Permissions of the folder var/www

what should be the permissions of the folder var/www in my ubuntu ? I need it to be safe and at the same time I need ftp users to be able to edit it. I was wondering if I should create a group with all permissions and add ftp users to this group in unix. what's the standard way to do it ?... (4 Replies)
Discussion started by: aneuryzma
4 Replies

8. Web Development

var/www/html permissions

Hi, first post. I have no Linux experience. I have an e-friend that set me up a VPS and my website with Apache and FTP access so I could upload my files the way I do it regularly with my shared hosting. The OS in the VPS is Fedora by the way. Now the thing is: http ://www.mydomain.com presents... (0 Replies)
Discussion started by: JPA
0 Replies

9. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies
Login or Register to Ask a Question