INSTALL WORDPRESS,APACHE,PHP & MYSQL

Develop your own WORD PRESS – BLOG SITE


Pre-Installation process:
Make sure these paths are added

/usr/sbin:/usr/bin:/usr/bin/nsr:/usr/ccs/bin:/usr/local/bin


Installation of Apache:

1. you can download the software from : http://httpd.apache.org/download.cgi
2. installable: httpd-2.2.8.tar.gz
3. If gz file
Run the cmd:
gunzip httpd-2.2.8.tar.gz

4. Extract the file :
Run the cmd to extract the tar file:
tar –xvf httpd-2.2.8.tar


5. Configure Apache:
./configure --prefix=/usr/local/apache2


6. Build the File:
make

7. Install the built source
make install

8. To start/stop server

Path: $APACHE-HOME/bin
./apachectl start/stop/restart



9. Access the server
http:///



10. TroubleShooting

When encoutering the below problem while running make command do the following

line 5904: ar: command not found

Solution: add /usr/ccs/bin to the PATH in /etc/profile and then run the command.

Reference forum link: http://forum.java.sun.com/thread.jspa?threadID=5214471&messageID=9869011

11. The httpd.conf file has to be configured in which the document root should be added where the Wordpress is to be placed, see the httpd.conf file for more details.


Installation of MySql:


1). Download mysql-5.0.51.tar
from address given below (as a mirror image) :

http://dev.mysql.com/get/Downloads/

2). Keep the downloaded file to the /opt/portal/ directory. If the extn of the file is tar.tar ,change the file extension to .gz. Then gunzip the file by using the gunzip command as

gunzip

3). tar -xvf mysql-5.0.51.tar

4) mv mysql-5.0.51 MySql

5) Link the MySql Folder to mysql folder by going to /usr/local/ and running the command as

ln -s /app/blog/Mysql/ mysql



*** Rather than creating a link , we can directly put the contents of mysql-5.0.51.tar
in /usr/local/mysql

Build the File:
make

make test

Install the built source

make install
6) Follow the steps as given in "INSTALL-BINARY" file in MySql folder.

7)PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:


MySql/bin/mysqladmin -u root password 'new-password'


8)We can check the mysql is running or not by using the command as

ps -ef |grep mysql

9) When the server is up, Enter mysql mode by using the following command:

mysql --user=username(e.g.root) --password

press enter.

then you will be asked for the password of user. Enter the password.

10) Create a DB using the following command:

create database tatasky_blogdb;


GRANT ALL PRIVILEGES ON tatasky_blogdb.* TO 'blog' IDENTIFIED BY ‘blog123’;



This command is to provide user blog all the privilages over tatasky_blogdb from local environment (provided '@localhost') .

GRANT ALL PRIVILEGES ON tatasky_blogdb.* TO 'blog' @ ‘PBLOGA01.tatasky.com' IDENTIFIED BY 'blog123';

This command is to provide user blog all the privilages over tatasky_blogdb from local environment (provided '@ PBLOGA01.tatasky.com ') .




IDENTIFIED BY clause is to provide the password for the user.




Installation of php:

1. you can download the software from : http://httpd.apache.org/download.cgi
2. installable: php5.0..tar.gz
3. If gz file
Run the cmd:
gunzip php-5.2.5.tar.gz

4. Extract the file :
Run the cmd to extract the tar file:
tar –xvf php-5.2.5.tar

5. Configure php:

./configure --with-apxs2=/usr/local/bin/apxs
--with-mysql=/usr/local/
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-zlib

6. Build the File:
make

7. Compile the file

make test

8. Install the built source

make install

9. finally

make clean

Now installation of PHP is done

After these installation are complete, installation of WORDPRESS is two page job,
Installation of WORDPRESS
1. Unzip the package in an empty directory.
2. Open up wp-config-sample.php with a text editor like WordPad or similar and fill in your database connection details.
3. Save the file as wp-config.php , and change the required parameters in the config file
// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// Change SECRET_KEY to a unique phrase. You won't have to remember it later,
// so make it long and complicated. You can visit http://api.wordpress.org/secret-key/1.0/
// to get a secret key generated for you, or just make something up.
define('SECRET_KEY', 'put your unique phrase here'); // Change this to a unique phrase.

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to 'de'
// to enable German language support.
define ('WPLANG', '');

/* That's all, stop editing! Happy blogging. */

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
4. Upload everything.
5. Open /wp-admin/install.php in your browser. This should setup the tables needed for your blog. If there is an error, double check your wp-config.php file, and try again. If it fails again, please go to the support forums with as much data as you can gather.
6. Note the password given to you.
7. The install script should then send you to the login page. Sign in with the username admin and the password generated during the installation. You can then click on 'Profile' to change the password.


After the completion of installation, use the wordpress manual to customize your wordpress,

The best site for debutants in the website world

How to Save a File with Notepad Without the TXT Extension

Rab Ne Bana di Jodi




CLICK HERE to download Rab Ne Bana di Jodi hindi songs

starrer -- sharukh khan, anushka sharma

My Goa trip


I just toned up to start on this. The experience because of the significance required a phase of mind to capture it upon…….GOA is the city they christen, and FUN is the trait I would glue upon.
G – GO HIGH
O – ON THE ROCKS
A – ADIEU

While beer bottles cling the bags underneath our bus seats, we decided to gather for the first round table conference inside the orange liner that peeped its way through the shinning sun. It was a great deal of contentment to be the bottle opener or the receiver, because it serves as a re-union /fun trip and also as a flee factor from the trick of corporate life. Everyone had their own know-how to share but only after a bottom sip or a slow drift.
Round after round,
Hour after hour,
Our mind went for it;
Our heart searched for it………..
As the journey progressed the bus marched towards “JOG” …In those pinch of darkness we the admirers of nature throbbed our heart…..We were filled with our salutes, dreams , memories for the mother nature carving its own fashion kingdom in grandeur. The gorgeous “JOG” flowed with utmost vigor with rock as its sanctuary. Some of our guys did craft a vow to make merry of their honey-moon in a spectator area @ the top of “JOG”. …lol?..........
The orange liner traverses the bushy forests swarming with woods towards the alluring city of GOA.
Goa , a place overflowing with excitement, clouded with beaches…….with its own nest of outsiders ….The seashore gave us the aura to catch up for a sport on the shore …perhaps sky is the lifeline to record our events. To trip and add much more vibrancy, we had the CRUSIE to bring much more escapade. The beach with its beautiful angels turned the glasses of all our guys towards the leeward destination of “Beautiful Babes”. Night festivity starts, with bottle taking the throne we left our minds to be invaded by angel called alcohol. In those state of mind a placid walk on the shore is worth an injection. It takes you to a celestial world of stars, calmness…..recollection…….plus a few puffs @ 12:00 would steal the show…..Merry, happy for the day ?


St.Xavier church: Admiration adorned my mind @ the great structure that lay a hand on the sky…….. Its beauty are left to unknown words to describe ……kudos to the hands that would take the praise of generations yet to come , for the movement of their hands that led to those fine arts. Back to the beach with a few shots of “FENNY” already acting on our central nervous system, we decided to pick the best even in absolute “Mappu”…how??? Volleyball is the game they call……..we volleyed with that oval curvature ? ………..with alcoholic effect spiraling we fell to the mother earth to save the ball from touching it. Determination...u c……..Then comes a gentle boat ride….away from the shore we viewed with gratitude @ the beauty of small dwarfs standing miles apart………..then came the grand day for the grand bet on the island…………….
With two boats accelerating its intensity with utmost vigor, towards the unknown island…our visit was payed tribute by a school of dolphins…Then a gentle dip into the midst of sea …..To live, love and learn the beauty of sea…..silent with its waves, it embraced the first time jumpers ……..of course few bites from jelly fish for intrusion from humanity…..
As the rider went towards the island we saw “THE HANDS OF NATURE” carving its way out in splendor by the image of the landscape…….departing from the rider our hands and throat went in thirst of “B….R”………….now competition for the best among the best bottom sippers…….
’Man u…..me…….he……….hey allllllllllllll……….thumbs up”………………
With assiduous trees showing their love and way for the visitors we marched towards the top of island to sense and have a high regard for the salubriousness of the nature &morning………….
so much tranquil propelled with just 20 populating those unknown forts , left outs…..left us with a sense of triumph….a feel that we had invaded the unknown empire , fort , light house ……In those light tones a pen and paper would unwind your poetic version ?
In those undulating neighborhood,
I establish a life to re-think upon,
Not alone to breathe upon,
But also to be loved upon……….
The sea touches its mother rocks with a silent wave,
A wave that carries the love of billion aquatics across the sea,
And thousand minds across the shore,
We stood there as emperors ….
To jump upon, to drink upon,
To live upon, to rock upon………………
As the boat retreats from the island we leave a flag of happiness on this greenly pasture……..
Our smiles are recorded on those rocks and our love carved on that leaf …..
That would serve for centuries yet to visit and share……….

That’s GOA for us with the gang bidding a big good bye to the marvelous city with a “TAKILA” shot to celebrate the birth calendar day our dear friend “RED”……..
The entire trip took its zeal for just a bet on “BEER”………..and I guess it had served the purpose ?

JAVA MESSAGE SERVICE

Short for Java Message Service, JMS is a Sun Microsystems API that provides a standard way for Java programs to access and interact with an enterprise asynchronous messaging system. JMS is used to write business applications to create, send, receive, and read an enterprise messaging systems' messages. The JMS API defines a vendor-neutral, but Java-specific set of interfaces that identify how a JMS client accesses the facilities of an enterprise messaging product. The JMS standard is a part of the Java 2 Platform, Enterprise Edition (J2EE) and can be used to write business applications to create, send, receive and read messages.
Its important to note that while the term messaging can be used to describe e-mail, fax or instant messages, in JMS terminology the word messaging is used to describe asynchronous messages that consists of requests, reports or events that are consumed by enterprise applications and not humans. These messages contain information that is needed to coordinate systems and track progress of the enterprise.


The Java Message Service (JMS) API is a messaging standard that allows application components based on the Java 2 Platform, Enterprise Edition (J2EE) to create, send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and asynchronous
in JMS the message sender just sends the message to the destination and continues it's own processing. The sender does not wait for the receiver to respond. This is asynchronous behavior.
JMS is asynchronous in nature. Thus not all the pieces need to be up all the time for the application to function as a whole. Even if the receiver is down the MOM will store the messages on it's behalf and will send them once it comes back up. Thus at least a part of application can still function as there is no blocking.
The different messaging paradigms JMS supports Publish and Subscribe i.e. pub/suc and Point to Point i.e. p2p.
A topic is typically used for one to many messaging i.e. it supports publish subscribe model of messaging. While queue is used for one-to-one messaging i.e. it supports Point to Point Messaging.
Publish Subscribe model is typically used in one-to-many situation. It is unreliable but very fast. P2P model is used in one-to-one situation. It is highly reliable.
BytesMessage
BytesMessage contains an array of primitive bytes in it's payload. Thus it can be used for transfer of data between two applications in their native format which may not be compatible with other Message types. It is also useful where JMS is used purely as a transport between two systems and the message payload is opaque to the JMS client. Whenever you store any primitive type, it is converted into it's byte representation and then stored in the payload. There is no boundary line between the different data types stored. Thus you can even read a long as short. This would result in erroneous data and hence it is advisable that the payload be read in the same order and using the same type in which it was created by the sender.
StreamMessage
StreamMessage carries a stream of Java primitive types as it's payload. It contains some conveient methods for reading the data stored in the payload. However StreamMessage prevents reading a long value as short, something that is allwed in case of BytesMessage. This is so because the StreamMessage also writes the type information alonwgith the value of the primitive type and enforces a set of strict conversion rules which actually prevents reading of one primitive type as another.
TextMessage
TextMessage contains instance of java.lang.String as it's payload. Thus it is very useful for exchanging textual data. It can also be used for exchanging complex character data such as an XML document.
ObjectMessage
ObjectMessage contains a Serializable java object as it's payload. Thus it allows exchange of Java objects between applications. This in itself mandates that both the applications be Java applications. The consumer of the message must typecast the object received to it's appropriate type. Thus the consumer should before hand know the actual type of the object sent by the sender. Wrong type casting would result in ClassCastException. Moreover the class definition of the object set in the payload should be available on both the machine, the sender as well as the consumer. If the class definition is not available in the consumer machine, an attempt to type cast would result in ClassNotFoundException. Some of the MOMs might support dynamic loading of the desired class over the network, but the JMS specification does not mandate this behavior and would be a value added service if provided by your vendor. And relying on any such vendor specific functionality would hamper the portability of your application. Most of the time the class need to be put in the classpath of both, the sender and the consumer, manually by the developer.
MapMessage
A MapMessage carries name-value pair as it's payload. Thus it's payload is similar to the java.util.Properties object of Java. The values can be Java primitives or their wrappers.
Difference between BytesMessage and StreamMessage??
BytesMessage stores the primitive data types by converting them to their byte representation. Thus the message is one contiguous stream of bytes. While the StreamMessage maintains a boundary between the different data types stored because it also stores the type information along with the value of the primitive being stored. BytesMessage allows data to be read using any type. Thus even if your payload contains a long value, you can invoke a method to read a short and it will return you something. It will not give you a semantically correct data but the call will succeed in reading the first two bytes of data. This is strictly prohibited in the StreamMessage. It maintains the type information of the data being stored and enforces strict conversion rules on the data being read.