WordPress.org

Forums

WordPress can run using wampserver? (5 posts)

  1. morthea
    Member
    Posted 2 years ago #

    Im an IT student and i just want to explore different content management stuff,

    I just want to explore wordpress, unfortunately i can't install it, im just using wampserver. and i heard u guys need to have domain?

    am i asking can i run this locally?HOW?

  2. morthea
    Member
    Posted 2 years ago #

    Thank you sir.

    Im finished with the steps, and when i visit http://localhost/wordpress it says

    Error in establishing database connection

    i did made a database using phpmyadmin..
    why i am still seeing this?:(

  3. Tahir Taous
    Member
    Posted 2 years ago #

    You need to add database name user name & password details in wp-config.php file.
    open wordpress directory and find wp-cofig-sample.php file and rename it to wo-config.php. After renaming open this file & find following line

    /** The name of the database for WordPress */
    define('DB_NAME', 'database_name_here');
    
    /** MySQL database username */
    define('DB_USER', 'username_here');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'password_here');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    replace database_name_here with your data base name. for wamp user name is root and password is blank. after adding database name above lines will be like following.

    /** 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');

    now save wp-config.php file and visit localhost/wordpress to complete WordPress installation.

    or you can read step by step instruction at http://wordpressinurdu.com/2013/01/how-to-install-wordpress-locally-on-windows-pc-using-wamp-server/

  4. morthea
    Member
    Posted 2 years ago #

    haha ive done it! thank you sir!:)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags