desde cero
cd /var/www/html
sudo wget https://wordpress.org/latest.tar.gz
sudo tar -xzvf latest.tar.gz
sudo chown -R www-data:www-data /var/www/html
sudo find /var/www/html/ -type d -exec chmod 755 {} \;
sudo find /var/www/html/ -type f -exec chmod 644 {} \;
alternativa
sudo su
sudo mysql -u root -p
CREATE DATABASE wordpressDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
create user wordpressusr@localhost identified by 'eve';
grant all privileges on wordpressDB.* to wordpressusr@localhost;
FLUSH PRIVILEGES;
exit;
cd /var/www/html
curl -O https://wordpress.org/latest.tar.gz
tar xzvf latest.tar.gz
rm -r latest.tar.gz
touch /var/www/html/wordpress/.htaccess
chmod 660 /var/www/html/wordpress/.htaccess
cp /var/www/html/wordpress/wp-config-sample.php /var/www/html/wordpress/wp-config.php
mkdir /var/www/html/wordpress/wp-content/upgrade
sudo cp -a /var/www/html/wordpress/. /var/www/html/wp-content/upgrade
curl -s https://api.wordpress.org/secret-key/1.1/salt/
----------------(copiar la salida del comando API)--------------
nano /var/www/html/wordpress/wp-config.php
------cambiar el nombre de servidor x wordpressDB
------usuario x wordpressusr
------password x eve
----------(pegar en vez de los otos API)--------------
systemctl restart apache2
http://10.10.10.133/wordpress/wp-admin/install.php
No hay comentarios.:
Publicar un comentario