// Aula 4 - Instalando o WordPress no Ubuntu # mysql -u root -p > CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; > GRANT ALL ON wordpress.* TO 'wordpressuser'@'localhost' IDENTIFIED BY '123456'; > FLUSH PRIVILEGES; > EXIT; # apt-get update # apt-get install php-curl php-gd php-mbstring php-xml php-xmlrpc # apt install php-pear # apt-get install libmcrypt-dev libreadline-dev # pecl install mcrypt-1.0.1 # pecl channel-update pecl.php.net # systemctl restart apache2 .htaccess # vim /etc/apache2/apache2.conf AllowOverride All # a2enmod rewrite # apache2ctl configtest # systemctl restart apache2 # cd /tmp # curl -O https://wordpress.org/latest.tar.gz # tar xzvf latest.tar.gz # touch /tmp/wordpress/.htaccess # chmod 660 /tmp/wordpress/.htaccess # cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php # mkdir /tmp/wordpress/wp-content/upgrade # cp -a /tmp/wordpress/. /var/www/html # cd /var/www/html # rm index.html # systemctl restart apache2 # chown -R www-data:www-data /var/www/html # find /var/www/html -type d -exec chmod g+s {} \; # chmod g+w /var/www/html/wp-content # chmod -R g+w /var/www/html/wp-content/themes # chmod -R g+w /var/www/html/wp-content/plugins # curl -s https://api.wordpress.org/secret-key/1.1/salt/ # vim /var/www/html/wp-config.php # vim /var/www/html/wp-config.php define('DB_NAME', 'wordpress'); /** MySQL database username */ define('DB_USER', 'wordpressuser'); /** MySQL database password */ define('DB_PASSWORD', '123456'); . . . define('FS_METHOD', 'direct'); Em seu navegador, vá até o nome de domínio ou endereço IP do servidor: http://domínio_do_servidor_ou_IP