sudo dpkg-reconfigure mysql-server-5.5
change the root password.
sudo dpkg-reconfigure mysql-server-5.5
change the root password.
https://twitter.com/officialstupid/status/676987514045997056
last part.
go to bin
php magento sampledata:deploy
php magento setup:di:compile
php magento setup:upgrade
############################################
## workaround for HTTP authorization
## in CGI environment
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
############################################
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks
RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* – [L,R=405]
magento 2 installation digitalocean lamp #bookmark
apt-get update apt-get install git wget wget -O /usr/local/bin/composer http://getcomposer.org/composer.phar chmod +x /usr/local/bin/composer
cd /var/www/html download and upload magento file https://www.magentocommerce.com/download upload and unzip tar xjf file.tar.bz2 cd /var/www/html/theory composer install
chown -R root:www-data /var/www/html/theory find /var/www/html/theory -type f -print0 | xargs -r0 chmod 640 find /var/www/html/theory -type d -print0 | xargs -r0 chmod 750 chmod -R g+w /var/www/html/theory/{pub,var}
chmod -R g+w /var/www/html/theory/{app/etc,vendor}
DATABASE
https://www.digitalocean.com/community/tutorials/a-basic-mysql-tutorial
mysql -u root -p
SHOW DATABASES;
CREATE DATABASE database name;
DROP DATABASE database name;
GRANT ALL PRIVILEGES ON databasename.* TO 'databaseuser'@'localhost' IDENTIFIED BY 'passwordfordatabase';
completely remove a folder and all of its contents, including both files and sub folders:
rm -R DIRECTORY_NAME
sudo apt-get install php5-xsl
Sudo apt-get install php5-mcrypt
apt-get install php5-intl
service apache2 restart
sudo apt-get purge mysql-server*
and after that, I did this:
sudo apt-get install mysql-server-5.6
Start:
sudo /etc/init.d/mysql start
Stop:
sudo /etc/init.d/mysql stop
Restart / reload configs:
sudo /etc/init.d/mysql restart
Check run status:
sudo /etc/init.d/mysql status
// redirects for login / logout
add_filter(‘woocommerce_login_redirect’, ‘login_redirect’);
function login_redirect($redirect_to) {
return home_url();
}
add_action(‘wp_logout’,’logout_redirect’);
function logout_redirect(){
wp_redirect( home_url() );
exit();
}
Deny from 24.213.139.114
Deny from 87.144.218.222
Deny from 95.5.32.79
Deny from 213.251.186.27
Deny from 88.191.93.186
Deny from 91.121.136.44
Deny from 50.56.92.47
Deny from 174.143.148.105
Deny from 82.170.168.91
Deny from 24.213.139.114
Deny from 61.147.110.14
Deny from 188.134.42.65
Deny from 122.164.215.155
Deny from 65.49.68.173
Deny from 220.155.1.166
Deny from 218.38.16.26
Deny from 50.56.92.47
Deny from 24.213.139.114
Deny from 91.200.19.84
Deny from 31.44.199.131
Deny from 49.50.8.63
Deny from 171.221.126.73 – 8 days ago CN