Visualizzazioni totali

mercoledì 15 maggio 2013

installazione di wordpress su centos

devo scaricare wordpress e decomprimerlo
manca pero' wget che installo con yum install wget

wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz

In mysql preparo un database per wordpress e setto i vari utenti-privilegi
mysql -u root -p
- CREATE DATABASE wordpress;
- CREATE USER wordpressuser@localhost;
- SET PASSWORD FOR wordpressuser@localhost= PASSWORD("password");
- GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password';
- FLUSH PRIVILEGES;
- exit


Setup Wordpress
cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php

adatto la configurazione di
vi ~/wordpress/wp-config.php
mettendo le opportune informazioni alle righe
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'wordpressuser');

/** MySQL database password */
define('DB_PASSWORD', 'password');


sudo cp -r ~/wordpress/* /var/www/html
sudo yum install php-gd
sudo service httpd restart

ed ora accedo al mio server aggiungendo all'indirizzo ip xx.xx.xx.xx/wp-admin/install.php

Riferimenti:
https://www.digitalocean.com/community/articles/how-to-install-wordpress-on-centos-6--2

Nessun commento:

Posta un commento