I am using Debian 7 on VirutalBox as my virtual web server. Now, my /var/www directory is almost full. I added 27 GB of space to my VM as a new partition, formatted the partition with ext4 but my /var/www directory still doesn't have enough space.How can I resize /var/www?The output of df -h:
My /var/www directory is full
debian;webserver;www
Since the biggest partition appears to be /home, here is one solution (assuming there is no /home/webpages directory):cd /varcp -a www /home/webpages/rm -fr wwwln -s /home/webpages/ wwwWhat this does is:Enter the /var/ direcotoryMake an (as much as possible) exact copy of /var/www in the directory /home/webpagesComplete destroy the contents of the www directory (to save disk space).  rm -fr is a very dangerous command Always use rm -fr with the utmost of careMake a symbolic link (symlink) so that /var/www now uses the files in /home/webpagesNow, sometimes web servers have issues with symlinks (I know Apache, in some configurations, refuses to follow a symlink), but, as I recall, this is not an issue if the document root (the directory the web server uses to publish files on the web) points to a symlink or if the symlink is below the document root.  But, if it is an issue, it may be necessary to set up Apache to allow symlinks.