Archive for the ‘Uncategorized’ Category

WordPress on Windows

February 27, 2010

Wanted to have a hands on experience with wordpress so wanted to install it myself on my own machine. But my linux machine was already running some processes and so didn’t want to disturb it. Rather checked for some way of doing it on my XP machine.

While surfing the internet found the http://geeksaresexy.blogspot.com/2006/06/installing-wordpress-locally-under.html It was usefull.

The process consists of two stages. Ist the XAMPP Lite should be installed and configured and then the wordpress should be installed.

Stage I

  1. Installing XAMPP Lite

    XAMPP is an ‘open source cross platform‘ web server package. It includes all the dependencies that are reauired for the installation. It is installed and configured from command prompt but its wonderfull as it provides you all that you need for your installation in one go.

  2. Download the XAMPPLITE.

    xampplite downlaod

    From this page download XAMPP Lite 1.7.3 ZIP file (61 MB).
    Extract the contenets of the file to C: drive. Navigate to My Computer >>C:\Exampp and run the setup_xampp.bat file by double clicing it.

  3. Configuring XAMPP Lite

    Double click xampp_control.exe. This will open Xampp Control Panel Application window. Click start the Apache and MySql by clicking the start buttons,

    Xampp_Control_Panel Window


    Imprtant: Note that you shouldn’t have the Apache and MySql already installed before installing XAMPP Lite. In that case you won’t be able to access required interface at localhost for proceeding further

  4. Creating a Database in MySql

    Now both the services are started the rest of the job will be done from the browser. Open the browser and in the address window type http://localhost or http://<&gt; or http://127.0.0.1 If all the steps till now were successfull you will find a window similar to the one shown bellow,

    Xampp for Windows

    Choose your language.

    On the left side menu click phpMyAdmin. A new window like one shown bellow appear,

    PHP MySql Administrator


    Give the name ‘wordpress’ to the database in the Create New Database window and choose utf8_unicode_ci in MySql Connections Collation dropdown.

    Stage II

  1. Download wordpress zip file and extract its contents to C:\xampplite\htdocs. Now go to My Computer >> C:\xampplite\htdocs\wordpress and open the file named wp-config-sample.php in notepad. Edit this file as under,

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘wordpress’);

    /** MySQL database username */
    define(‘DB_USER’, ‘root’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ”);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

  2. Configuring Wordprss

    Now open the web browser once again and in the address bar enter http://localhost/wordpress/wp-admin/install.php Follow the on screen instructions and you are ready with the wordpress.

    You will be provided a password for admin user and you can use this password whenever you want to login to wordpress. To open login in the address bar of your browser enter http://localhost/wordpress/wp-admin. To read a blog simply enter in the browser address bar http://localhost/wordpress. Remember that you can also replace ‘localhost’ with the IP address of the machine or simply the loopback IP i.e. 127.0.0.1

FTP from Linux/UNIX Server

January 27, 2010

Downloading files from UNIX/Linux server using ftp

FTP – File Transfer Protocol is a protocol that helps download files quickly and accurately. Using ftp is quite easy. All you need is to have is a login ID and PassWord to authenticate your access to the ftp server.

FTP Server: FTP Server can be found on almost all distributions of UNIX/Linux as it is installed when the OS is installed. It is widely used to download softwares from server archives over the internet. To access the files/softwares from a server using ftp a ftp client is a must. The amount and type of access to a ftp server depends on the choice and willingness of the server administrator. He/she can provide open access for one and all as ‘anonymous’ user or can restrict the access to the choosen few. If the access is resticed then a login ID and PassWord is required to access the server. (Important: The amount of access and activities of the user can also be controlled by the administrator.) It is all a matter of how the server has been configured by the administrator

FTP Client: Your favourite web browser can also act as a ftp client but to a limited extent. The client can be GUI based or command line. There are many GUI based clients that are freely available. One such client is shown bellow:

Screen Shot: FTP Client

FTP Client

Here all you need to do is provide the hostname (can be IP of the server or domoin name), the user ID and password. In case anonymous login is allowed then you can simply omit or provide you email ID etc. as login ID and password. The graphic based ftp client though convenient to use are considered to less reliable as compared to the command line downloading (especially by those who are more comfortable with the command line and have becode habitual). But the new ftp clients are coming with many added state-of-the-art features like. Many of them can resume the download/upload process if were disconnected somehow from the server on reconnection.

The command line clients are there for quite a while and are the most reliable. They offer many options and added features (but only to those who are comfortable with the command line).

Connecting: Before connecting to the ftp server it is important to decide the type of client to use. It can be done using some SSH client like putty from a window machine or a linux machine can be used to connect directly form command prompt. The SSH Client looks like

SSH Secure Shell

SSH Connection to the ftp server

It is quite easy to connect to connect to a ftp server and perform some basic operations. Here is how:

Important: It is important to note that you should Ist navigate to the directory where you want to store the downloaded files or the directory that contains the files to be uploaded on the local machine. The current directory acts as a default directory for uploading/downloading.

Commands:

To login into a ftp server type the following command at the command prompt:

ftp –host name–

Host name can be either the IP of the server or the domain if its having one.

Then it will ask for Login ID and then the PassWord. Enter the same and you will get access to the ftp> prompt. It will look as under:

ftp>

Once logged into the ftp server as above you can start using commands to uploading/downloading files from/to the server. You need to use different commands to for the purpsose. Some basic commands are discribed below.

To navigate to a particular directory on the remote machine use,

ftp> cd –path/file name–

To change to binary mode from ASCII,

ftp> binary

The binary mode is considered to be more fast and efficient mode of file transffer.

To download a file from the remote machine type,

ftp> get –File Name–

To download more than one file at the same time type,

ftp> mget –Remote Files–

Wild characters like * can be used to download multiple from from the current directory on the remote machine to the local machine.

To uplaod files to a remote machine type,

ftp> put –File Name–

To uplaod multiple files type,

ftp> mput –Remote Files–

To know you current location on the remote machine type,

fpt> pwd

To know your current loation on the local machine type,

ftp> !pwd

To view the contents of a folder on remote server type,

ftp> ls

To view the contents of a current folder on local machine type,

ftp> !ls

To logout of the ftp server type,

ftp> quit

Comments and Suggestions are Welcome.


Hello world!

January 27, 2010

Hi!!! Welcome to my Blog.