I did $ df -h and it threw this:
Filesystem Size Used Avail Use% Mounted on
/dev/md1 9.7G 1.7G 7.6G 18% /
/dev/md2 683G 211M 649G 1% /home
tmpfs 4.0K 0 4.0K 0% /dev/shm
The problem is that my websites are located in /var/www, which I guess belongs to /, and they won't be able to use the disk space for things like images, that need to be placed inside the webroot, eg: /var/www/my_site/public_html/
What can I do about it? Should I move disk space from /home to / ? How?
Or move the sites to /home ?
Any thoughts?
Im using centos 5.5 and apache 2
Answer
Easier way will be to move the data to the larger partition, and symlink back into place.
$ mv /var/www /home/
$ ln -s /home/www /var/www
No comments:
Post a Comment