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/wordpress”
then u might be able to see the wordpress page
with an error message, that “wp-config.php is not found ”
then open terminal type this “sudo cp /usr/var/wordpress/ wp-config-sample /usr/var/wordpress/wp-config.php”
this will make a copy of wp-sample-config.php as wp-config.php.
open that by typing “gedit /usr/var/wordpress/wp-config.php”
in that PHP go down and u can see this wriiten there “define(‘DB_USER’, ‘usernamehere’);” and “define(‘DB_PASSWORD’, ‘yourpasswordhere’);”
type the data base name and leave the password section as blank.
then type “http://localhost/wordpress”
u can see wordpress
now u can play with wordpress by applying new themes…