Saturday, June 25, 2011

INSTALL TURBOX IN LINUX

Amrit Pal Pathak: INSTALL TURBOX IN LINUX: "
1:Download dosbox from here
2:Now install it.
3:Copy the Tc folder of turboc compiler in ur c drive
4:Now run the dosbox and write the following commands in it step by step
a) mount c c:\TC
b)c:
c)cd BIN
d)tc
Thats all.You can use the alt+enter combination to maximize the screen

Intall wordpress on linux

Step1:First install LAMP on your system .

Step2: Create a database for WordPress and an user who has all privileges for accessing.
So open terminal and type :

mysql -u root -p
mysql> CREATE DATABASE wordpress;
mysql> CREATE USER wpuser;
mysql> SET PASSWORD FOR wpuser = PASSWORS(“wppassword“);
mysql> GRANT ALL PRIVILEGES ON wordpress.* TO wpuser@localhost IDENTIFIED BY ‘wppassword’;
mysql> FLUSH PRIVILEGES;


Step3:Download Wordpress from http://wordpress.org/download
Step4:Move the wordpress directory to the root directory of Apache web site, /var/www/ as
Open terminal and then type

sudo tar -xvzf wordpress-2.9.2.tar.gz -C /var/www


Step5:Now in wordpress directory, rename the wp-config-sample.php file to wp-config.php as
Open terminal and then type

sudo mv wp-config-sample.php wp-config.php

Step6: Now open the terminal type:

sudo gedit /var/www/wordpress/wp-config.php

Change putyourdbnamehere to wordpress.
Change usernamehere to wpuser.
Change yourpasswordhere to the wppassword.

Enjoy,Congrats you have installed wordpress.

Monday, June 20, 2011

Install LAMP in Ubuntu


1:Install Apache

1. Open up the Terminal (Applications > Accessories > Terminal).
2. Copy/Paste the following line of code into Terminal and then press enter:

sudo apt-get install apache2

3. The Terminal will then ask you for you're password, type it and then press enter.

Testing Apache

To make sure everything installed correctly we will now test Apache to ensure it is working properly.

1. Open up any web browser and then enter the following into the web address:

http://localhost/

You should see a folder entitled apache2-default/. Open it and you will see a message saying "It works!" , congrats to you!

2:Install PHP

In this part we will install PHP 5.
Step 1. Again open up the Terminal (Applications > Accessories > Terminal).
Step 2. Copy/Paste the following line into Terminal and press enter:

sudo apt-get install php5 libapache2-mod-php5

Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this:

sudo /etc/init.d/apache2 restart


Test PHP

To ensure there are no issues with PHP let's give it a quick test run.
Step 1. In the terminal copy/paste the following line:

sudo gedit /var/www/testphp.php

This will open up a file called testphp.php.
Step 2. Copy/Paste this line into the testphp.php file:


Step 3. Save and close the file.
Step 4. Now open you're web browser and type the following into the web address:

http://localhost/testphp.php

A page will be pop up .
Congrats you have now installed both Apache and PHP!

3:Install MySQL

Step 1. Once again open up the amazing Terminal and then copy/paste this line:

sudo apt-get install mysql-server

Step 2. This is where things may start to get tricky. Begin by typing the following into Terminal:

mysql -u root -p

Following that copy/paste this line
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
(Make sure to change yourpassword to a password of your choice.)

4:INSTALL PHPMYADMIN

step1. open the terminal copy and paste following command and then enter

sudo apt-get install phpmyadmin

step2. Now type the following

http://localhost/phpmyadmin

If this does not work, then you can do the following to include the phpMyadmin-shipped Apache configuration into Apache:
step3.Type the following command in terminal

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

step 4.Now type following

sudo /etc/init.d/apache2 reload

Step5. Test again your phpmyadmin ,type following:

http://localhost/phpmyadmin


Thats all ,You have successfullly installed LAMP