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.
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