ssh -p portnumber mysite.comCategory: blog
sudo pkill php5-fpm; sudo service php5-fpm startsudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt install mysql-serverChanges in php.ini
To change max file upload size to 100MB
Editβ¦
vim /etc/php5/fpm/php.ini
Setβ¦
upload_max_filesize = 100M post_max_size = 100M
Change in Nginx config
Add following line to http{..} block in nginx config:Β /etc/nginx/nginx.conf
http {
#...
client_max_body_size 100m;
#...
}Reload PHP-FPM & Nginx
service php5-fpm reload service nginx reload
sudo dpkg-reconfigure mysql-server-5.5change the root password.
https://twitter.com/officialstupid/status/676987514045997056
last part.
go to bin
php magento sampledata:deployphp 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]
######################################
## Add custom headers
<IfModule mod_headers.c>
Header set X-Content-Type-Options “nosniff”
Header set X-XSS-Protection “1; mode=block”
</IfModule>
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
