type “Sudo apt-get install lamp-server^”
This will install Lamp server in ur PC (Linux Apache MySQL PHP), these are the essential things to setup a web server in ur pc.
Creating a database using PHP
open web browser and
in the new window, type “root” as the username and leave the password as blank.
Then enter the name of the Data base u want to create in the data base
after that in the web browser type “http://localhost/drupal-versionno”
then u might be able to see the drupal page
with an error message, that “settings.php not found copy from sites/default/default.settings.php ”
then open terminal type this “sudo cp /usr/var/drupal-“version num”/sites/default/default.settings.php /usr/var/drupal-“version num”/sites/default/settings.php”
this will make a copy of default.settings.php as settings.php.
open that by typing “gedit /usr/var/drupal-“version num”/sites/default/settings.php”
in that PHP go down and u can see this wriiten there $db_url = ‘mysql://username:password@localhost/databasename’;
type the data base name and leave the password section as blank.
then type “http://localhost/drupal-versionno”
u can see drupal,
now u can play with drupal by applying new themes…