How to Host multiple Websites on Apache2

March 29, 2012 in Apache Configuration

How to Host multiple Websites on Apache2

Let’s say that we own 2 or more domain names (hostpage1.com and hostpage2.com). We also have 2 web pages (hostpage1 and hostpage2). But we have only 1 webserver and 1 public IP (for this example i will use local IP but it will be the same if you own a public static IP)

Setting up the Domain names.

First thing is to create an “A record” in the DNS of your Domain Names to point “www” to your public or local IP address of your Web Server. I use local DNS in this example. So i will point the “www” for both of my domain names to 192.168.0.31. So it will be something like that:

www.hostpage1.com –> 192.168.0.31

www.hostpage2.com –> 192.168.0.31

Read the rest of this entry →

host a forum

March 26, 2012 in forum

How to create and host your own forum on Ubuntu.

Requirements

A web server With PHP Support. (In this tutorial I use Apache2)

SQL database. (In this tutorial i use Mysql and PhpMyadmin to configure Mysql)

If you already have Apache Php Mysql and Phpmyadmin installed then you are ready to go if not please follow these tutorials first (Lamp on ubuntu and Phpmyadmin)

Installation:

First we will need an empty database where our forum will store contents.

Read the rest of this entry →

How to run PHP on Ubuntu

March 21, 2012 in Php

How to run PHP on Ubuntu.

First of all you will need a web-server to host our PHP pages.

In this tutorial I ll use Apache2. You can install Apache2 from the Terminal by using:

sudo apt-get update
sudo apt-get install apache2

when the installation is finished, Apache is up and running and you can test that by pointing your web browser at http://localhost/

The default page will come up with a message “it works” and some more info.This html file is located under your local file system in folder /var/www/html/

Now you have to install PHP.

To install PHP and PHP support for Apache, just write the following in console:

Read the rest of this entry →

How to install WordPress 3.3 on ubuntu 11.10

March 20, 2012 in CMS

How to install WordPress 3.3.1 on Ubuntu

This is a full article on how to install WordPress on Ubuntu, that means you can use this guide even if you have a clean installation of Ubuntu, and I will try to keep it as simple as I can.

What you will need in order to install WordPress.

First of all you will need a LAMP Server(more information can be found here).

Lets set up our LAMP Server.

1. You have to install a Linux system(you can choose whatever you want. A guide on how to install Ubuntu can be found here).It doesn’t really matter if you choose a desktop or server edition but if you are planning to publish your WordPress website I strongly recommend to use a server edition of Ubuntu for example.

2. You will need Apache (more information can be found here)

3. You will need MySQL (more information can be found here)

4. You will need PhP (more information can be found here)

5. And last but not least you will need to download WordPress from official site.

Let’s go to the next Part and Install Lamp

Joomla 2.5.3 on Ubuntu

March 17, 2012 in CMS

How to install Joomla 2.5.3 on Ubuntu 11.10 Part 1

This is a full article on how to install Joomla on Ubuntu, that means that you can use this guide even if you have a clean installation of Ubuntu, and i will try to keep it as simply as i can.

What you will need in order to install Joomla

First of all you will need a LAMP Server(more information can be found here).

Lets set up our LAMP Server.

1. You have to install a Linux system(you can choose what ever you want. A guide on how to install Ubuntu can be found here).It doesn’t really matter if you choose a desktop or server edition but if you planning to publish your Joomla website i strongly recommend to use a server edition of Ubuntu for example.

2. You will need Apache (more information can be found here)

3. You will need MySQL (more information can be found here)

4. You will need PhP (more information can be found here)

5. And last but not least you will need to download Joomla from official site.

Lets start by installing Lamp:

LAMP

March 16, 2012 in Services

how to install LAMP on Ubuntu

What is LAMP?

LAMP is stand for Linux, Apache, Mysql, and PhP. Lamp is need it by the most popular cms like Drupal, Joomla, WordPress, etc. In order to install successfully one of those cms you have to install LAMP first.

How to install Lamp.

There is no specific way to install lamp. You can install one component at a time or you can use tasksel to install all of them at once. In order to install every component manually you have to follow the instructions on how to install every single one by clicking the following links: Apache, MySQL, PhP.

But here i will saw you an easier way to that, using tasksel!

Read the rest of this entry →

How to Install classic desktop on ubuntu 11.10

March 16, 2012 in Tips

How to Install classic desktop on ubuntu 11.10

Ubuntu 11.10 comes with out the classic gnome desktop that was included in version 11.04. But you can install the old fashion, and good looking desktop at any time you want. So if you Want to make you Ubuntu look like the older versions of Ubuntu open a terminal and type the following:

sudo apt-get install gnome-panel

When that finish go on and log out or restart you system and at the logon screen next to your username there is a settings button click it and select Gnome Classic or Gnome Classic (No effect). Then type your password and you have the classic Gnome desktop.

If you have autologin “ON” and you want to login to gnome panel everytime then open a terminal and write:

sudo gedit /etc/lightdm/lightdm.conf

and change:

user-session=ubuntu

to

user-session=gnome-classic

Save and exit, restart

How to enable root password on Ubuntu

March 15, 2012 in Tips

How to enable root password on Ubuntu

During the installation of Ubuntu you can create a user and you can set a password for that user. Ubuntu also create a root user who can have full access to Ubuntu system. For example if you try to install a new software on Ubuntu from Graphic User Interface or from shell the Ubuntu will ask you for your password to do that. If you login with “root” user the Ubuntu will never ask you for passwords every time you do a change to the system.

But you cant login with “root” user until you set up a password for this user. To do so open a terminal and type

sudo passwd root

then type a password for “root” user. when done you can switch to “root” user by typing

su root

and by giving the password for “root” user

Now you have full access to your system.

Tasksel

March 14, 2012 in Tasksel

Tasksel

what is Tasksel?

Tasksel is an easy way to install services in your system. It is something like Synaptic package manager but it can be used from terminal and even if you don’t have any graphic user interface.

How to use Tasksel

You can access tasksel from the terminal

Read the rest of this entry →

basic linux commands

March 14, 2012 in shell (Command line)

Basic Linux Comands

Here you will find the most common commands that you can you use under the Linux shell.

Do not expect to find all Linux commands here this post contains only what we use in our posts. So this is a good place to find some more information about the commands that we use in our tutorials.

ls -> List of files and folders

Options

-l returns detailed list about files and folders

-g returns detailed list about files and folders without the owners

-a list hidden items

-t sort by time

cd ->Change Directory

Read the rest of this entry →