View Full Version : now what about these mounting points
--::wizZzard::--
17th January 2006, 20:50
at first my dedicated server has an 80GB HD.
my /etc/fstab looks like this:
#<file sys> <mount point> <type> <options> <dump> <pass>
/dev/hda1 / ext3
rw,errors=remount-ro,usrquota,grpquota 0 1
/dev/hda2 none swap rw 0 0
none /proc proc defaults 0 0
/dev/hda3 /home ext3 rw 0 2
none /proc/bus/usb usbdevfs defaults
/dev/fd0 /floppy auto users,noauto 0 0
to me (an complete Linux newbie) seems as there are 3 hardrives, or partitions and one Floppy mounted.
my ISPConfig sais to me that on hda1 are 5GB on hda2 237MB and hda3 are 67GB. this all is ok!
to hda1 is mounted: /
and
to hda3 is mounted /home
my web server data directory is /var/www
is this directory now on hda1? yes?
how do i get it to hda3 (without loosing all the data in it)? because this seems to me is the best way of using all the space for an server which only provides an Web and Mailserver.
falko
18th January 2006, 18:18
at first my dedicated server has an 80GB HD.
my /etc/fstab looks like this:
#<file sys> <mount point> <type> <options> <dump> <pass>
/dev/hda1 / ext3
rw,errors=remount-ro,usrquota,grpquota 0 1
/dev/hda2 none swap rw 0 0
none /proc proc defaults 0 0
/dev/hda3 /home ext3 rw 0 2
none /proc/bus/usb usbdevfs defaults
/dev/fd0 /floppy auto users,noauto 0 0
to me (an complete Linux newbie) seems as there are 3 hardrives, or partitions and one Floppy mounted.
Yes, you have 3 partitions, one of them is swap space.
is this directory now on hda1? yes?
Yes.
how do i get it to hda3 (without loosing all the data in it)? because this seems to me is the best way of using all the space for an server which only provides an Web and Mailserver.
Run mv /var/www /home/www
Then replace all occurrences of /var/www with /home/www in your Apache configuration file and also in the files that are included in your Apache configuration file. Afterwards, restart Apache.
--::wizZzard::--
18th January 2006, 18:42
must i also alter ISPConfig configuration? Or only apche2 config?
nveid
18th January 2006, 18:46
Judging by the demo site, it seems /home/www is what ISPconfig defaults to access those files.
So I'd say best bet modify your apache configuration files where its looking from /var/www to /home/www
falko
18th January 2006, 19:46
must i also alter ISPConfig configuration? Or only apche2 config?
I didn't know that you have ISPConfig installed. Yes, you must change the ISPConfig configuration. Adjust the values in the table isp_server, in Vhosts_ispconfig.conf, the users' homedirs in /etc/passwd. I hope I didn't forget anything.
Restart Apache afterwards.
--::wizZzard::--
27th February 2006, 23:03
so, now that my exams are over i tried to make the changes, apache2 itself works properly. but the php or pear (i am not quit familiar whats the difference) isn't working.
i looked through the files in /etc/apache2/mods-enabled/ but there arent any /var/www/ strings in it. where is php4 or pear also configured?
^^problem solved, it was only an absulute path saved in my joomla config file (wich now points also to /home/www/ )
But now:
Where do i find the file "Vhosts-ispconfig.conf" and the table "isp_server" ?
In ISP Configs Web Interface i altered all entries from /var/www to /home/www
falko
27th February 2006, 23:54
Where do i find the file "Vhosts-ispconfig.conf" and the table "isp_server" ?
Do you use Debian Sarge? Then Vhosts_ispconfig.conf is in /etc/apache2/vhosts.
The table isp_server is in the ISPConfig MySQL database. You can use phpMyAdmin to access it.
--::wizZzard::--
27th February 2006, 23:59
Do you use Debian Sarge? Then Vhosts_ispconfig.conf is in /etc/apache2/vhosts.
The table isp_server is in the ISPConfig MySQL database. You can use phpMyAdmin to access it.
oh, then i already alterd Vhosts_ispconfig.conf :) and as i see the table was perfectly altered by ISPConfig itself through the Webinterface, where you can enter the webservers document root!
so i think for now are no more problems, i hope so! :D
--::wizZzard::--
28th February 2006, 01:07
i have found one problem :eek:
in the /home/www/ there are located the web# and there corrosponding link files.
but after the changes, the link files aren't working anymore. how do i change them?
falko
28th February 2006, 10:05
i have found one problem :eek:
in the /home/www/ there are located the web# and there corrosponding link files.
but after the changes, the link files aren't working anymore. how do i change them?
Can you explain in more detail what you did and what is the problem now?
--::wizZzard::--
28th February 2006, 16:16
ok...
for each web (web1 to web999 or something like that)
ISPConfig creates some sort of LINK (don't know how else i could name it)
example:
web6 = www.wizzzard.de
/home/www/web6 is the root directory of the web "www.wizzzard.de"
before i made the changes, when i could simply go to my web root (when i logged in via SSH) by typing
cd /var/www/www.wizzzard.de <return>
now after the changes debian says that /home/www/www.wizzzard.de is not an directory
i think through moving the whole directory the links are destroyed and i must renew them or something else, but i don't know how.
falko
28th February 2006, 18:19
Please post the output of ls -la /home/www
--::wizZzard::--
28th February 2006, 18:56
85-31-186-56:~# ls -la /home/www
total 52
drwxr-xr-x 12 root root 4096 Jan 25 13:51 .
drwxrwsr-x 8 root staff 4096 Feb 28 01:50 ..
drwxr-xr-x 2 root root 4096 Dec 23 17:24 apache2-default
-rw-r--r-- 1 root root 19 Dec 24 16:48 info.php
drwxr-xr-x 3 root root 4096 Jan 5 00:30 localhost
drwxr-xr-x 2 root root 4096 Jan 4 00:41 sharedip
drwxr-xr-x 2 root root 4096 May 24 2005 squid-reports
drwxr-xr-x 8 web11_admin-duke13.de web11 4096 Feb 28 00:09 web11
drwxr-xr-x 8 web6_admin-wizzzard web6 4096 Feb 28 00:09 web6
drwxr-xr-x 8 www-data web7 4096 Jan 8 04:00 web7
drwxr-xr-x 8 web8_project-bizarre.de web8 4096 Feb 28 00:09 web8
drwxr-xr-x 9 web9_admin-wijena.de web9 4096 Feb 28 00:09 web9
drwxr-xr-x 2 root root 4096 Dec 23 17:24 webalizer
lrwxrwxrwx 1 www-data web11 14 Feb 27 23:39 www.duke13.de -> /var/www/web11
lrwxrwxrwx 1 www-data web7 13 Feb 27 23:39 www.project-bizarre.com -> /var/www/web7
lrwxrwxrwx 1 www-data web8 13 Feb 27 23:39 www.project-bizarre.de -> /var/www/web8
lrwxrwxrwx 1 www-data web9 13 Feb 27 23:39 www.wijena.de -> /var/www/web9
lrwxrwxrwx 1 www-data web6 13 Feb 27 23:39 www.wizzzard.de -> /var/www/web6
so, but how do i edit this links? they point to the old directory!
falko
1st March 2006, 10:19
You do it like this:
cd /home/www
rm -f www.duke13.de
ln -s /home/www/web11 www.duke13.de
--::wizZzard::--
2nd March 2006, 15:02
THX a lot. I hope this was the last problem! :D
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.