[root@centos64 ~]# wget http://wordpress.org/latest.tar.gz2. Once downloaded, move yje wordpress file to document root on your web server.
[root@centos64 ~]# mv latest.tar.gz /var/www/html/3. Enter document’s root directory and extract the wordpress file :
[root@centos64 ~]# cd /var/www/html/ [root@centos64 html]# tar xvzf latest.tar.gz4. Make wordpress folder readable :
[root@centos64 ~]# chmod 755 /var/www/html/wordpress5. Create Database name “newwordpress” :
mysql> CREATE DATABASE newwordpress; Query OK, 1 row affected (0.08 sec)6. Create user “newwordpressuser” with password “newwordpresspassword” :
mysql> CREATE USER 'newwordpressuser'@'localhost' IDENTIFIED BY 'newwordpresspassword'; Query OK, 0 rows affected (0.07 sec)7. Grant all privileges to “newwordpress” to user “newwordpressuser” from localhost access :
mysql> GRANT ALL PRIVILEGES ON newwordpress.* to newwordpressuser@localhost; Query OK, 0 rows affected (0.00 sec)8. Verify the granted access for user “newwordpressuser” :
mysql> SHOW GRANTS FOR 'newwordpressuser'@'localhost'; +-------------------------------------------------------------------------------------------------------------------------+ | Grants for newwordpressuser@localhost | +-------------------------------------------------------------------------------------------------------------------------+ | GRANT USAGE ON *.* TO 'newwordpressuser'@'localhost' IDENTIFIED BY PASSWORD '*2E824B82B9B162C4283AA039118AD4C5248380DA' | | GRANT ALL PRIVILEGES ON `newwordpress`.* TO 'newwordpressuser'@'localhost' | +-------------------------------------------------------------------------------------------------------------------------+ 2 rows in set (0.00 sec) mysql>9. Display the created database :
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | newwordpress | +--------------------+ 3 rows in set (0.00 sec)10. Copy and rename wp-config-sample.php to wp-config.php:
[root@centos64 ~]# cp /var/www/html/wordpress/wp-config-sample.php /var/www/html/wordpress/wp-config.php11. Modify the wp-config.php :
[root@centos64 ~]# vi /var/www/html/wordpress/wp-config.php12. Change below database details such as database’ name, database’ username, database’ password nand database’ hostname.
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'newwordpress'); /** MySQL database username */ define('DB_USER', 'newwordpressuser'); /** MySQL database password */ define('DB_PASSWORD', 'newwordpresspassword'); /** MySQL hostname */ define('DB_HOST', 'localhost');13. To install, navigate the browser to http://servername/wordpress/.
http://192.168.2.64/wordpress/
14. To login, navigate the browser to http://servername/wordpress/wp-login.php :
Source:
http://www.ehowstuff.com
Tirage tarot en croix horoscope 20 minutes.fr
ReplyDeleteFeel free to surf to my blog :: voyance par telephone