2010
03.04

The IP configurations on Debian are stored in /etc/network/interfaces. Below is an example that will configure the device eth0 to have an IP address of 192.168.1.100 on a class C network with 192.168.1.1 as the default gateway.

vim /etc/network/interfaces

The file will look like the following.

# /etc/network/interfaces – configuration file for ifup(8), ifdown(8)
# the loopback interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

address 192.168.1.100
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

In order to assign multiple IP addresses on the same interface (say eth0), add the following. The below example will add three more IP addresses to the same interface:

auto eth0:0
iface eth0:0 inet static

address 192.168.1.101
netmask 255.255.255.0
broadcast 192.168.1.255

auto eth0:1
iface eth0:1 inet static

address 192.168.1.102
netmask 255.255.255.0
broadcast 192.168.1.255

auto eth0:2
iface eth0:2 inet static

address 192.168.1.103
netmask 255.255.255.0
broadcast 192.168.1.255

To update your IP configuration after saving to /etc/network/interface, execute the command,

# /etc/init.d/networking restart

Make sure to double-check your configuration as this could make your server unreachable if there are any errors.

2010
03.04

How can I move all the files from that folder to the main directory without damaging or changing anything?

Moving the Joomla files and folders up one level will not damage them. You will need to edit your configuration.php file in a text editor to remove the joomla folder from the path for your tmp and log folders. You may also need to rename the welcome.html file to welcome.old or just remove it from your root folder.

If you are using Jooma 1.5.x no configuration file changes should be necessary. You can simply move the files to the new location.

If you are using 1.0.x then you will need to edit the configuration.php file.