Monday, January 16, 2012

Installing Wordpress in Linux servers without control panels

Wordpress is a popular bloging tool and a famous CMS which uses mysql and php. Its most widely used because of its simplicity.

To instal wordpress in a linux server, follow the steps below:

1.Navigate to the Document root of the domain.
2. wget http://wordpress.org/latest.tar.gz
3. tar -xzvf wordpress-3.3.1.tar.gz
4. mv wordpress/* .
5. cp -p wp-config-sample.php wp-config.php
6. Open wp-config.php and give the DB info.
7. Open url : domainname/wp-login.php
8. Fill the details and click install wordpress.

Thats it. You have successfully installed wordpress :)

Monday, January 9, 2012

Configure IP address in FreeBSD

FreeBSD is a free Unix-like operating system descended from AT&T UNIX via BSD UNIX.  Although for legal reasons FreeBSD cannot be called "UNIX", as the direct descendant of BSD UNIX (many of whose original developers became FreeBSD developers), FreeBSD's internals and system APIs are UNIX-compliant.
To set using command (temporarily)

ifconfig interface inet IP
eg: ifconfig lnc0 inet 192.168.1.2

lnc0 -->  interface name which can be obtained using ifconfig -a command

To set permanently
vi /etc/rc.conf
hostname="linux4starters.com"
ifconfig_lnc0="inet 192.168.0.3 netmask 255.255.255.0"





Run /etc/netstart script.

Saturday, January 7, 2012

Configure Network Debian

Those who work in redhat flavour will find setting network in debian a bit tricky. Here is the simple and correct way of doing it.

Open the file: /etc/network/interfaces. This is the file where we can add single or muliple ips. I will show examples of how to do both and also to set via DHCP.

Setup interface to dhcp
auto eth0
iface eth0 inet dhcp

To add single IP
auto eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254

To add multiple ips
auto eth0 eth0:1 eth0:2 eth0:3 eth0:4
iface eth0 inet static
    address 74.120.246.194
        netmask 255.255.255.192
        gateway 74.120.246.193
iface eth0:1 inet static
        address 74.120.246.195
        netmask 255.255.255.192
        gateway 74.120.246.193
iface eth0:2 inet static
        address 74.120.246.196
        netmask 255.255.255.192
        gateway 74.120.246.193
iface eth0:3 inet static
        address 74.120.246.197
        netmask 255.255.255.192
        gateway 74.120.246.193
iface eth0:4 inet static
        address 74.120.246.198
        netmask 255.255.255.192
        gateway 74.120.246.193




Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews