This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get purge php5-common | |
sudo apt-get install libapache2-mod-php5.6 | |
sudo a2dismod php5 | |
sudo a2enmod php5.6 # after this command I get 'Module php5.6 does not exist' | |
sudo service apache2 restart | |
https://www.howtoforge.com/tutorial/how-to-install-ioncube-loader/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create database and grant permission | |
CREATE DATABASE m234; | |
CREATE USER 'm234'@'localhost' IDENTIFIED BY '123456'; | |
GRANT ALL ON m234.* to 'm234'@'localhost' IDENTIFIED BY '123456' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
EXIT; | |
// Install magento with command | |
bin/magento setup:install \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo usermod -aG docker ${USER} | |
// Logout and Login | |
su - ${USER} | |
id -nG | |
sudo usermod -aG docker username |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Install docker | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
sudo apt update | |
apt-cache policy docker-ce | |
sudo apt install docker-ce | |
// Check docker installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var conn = mongoose.connect('mongodb://admin:123456@localhost:27017', { | |
useNewUrlParser: true, | |
useUnifiedTopology: true, | |
serverSelectionTimeoutMS: 5000 | |
}).then(() => { | |
console.log("Connected to DB"); | |
}).catch((err) => { | |
console.log(err); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# default | |
var MongoClient = require('mongodb').MongoClient; | |
// Connection URL | |
var url = 'mongodb://admin:123456@localhost:27017?authMechanism=DEFAULT'; | |
// Use connect method to connect to the Server | |
MongoClient.connect(url, { useUnifiedTopology: true }, function (err, db) { | |
if (err) throw err; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Magento 2 | |
UPDATE core_config_data | |
SET value = 'http://ravensrv.niteco.se:81/' | |
WHERE path IN ('web/secure/base_url', 'web/unsecure/base_url'); | |
9kwxhkf23h89lz7qgulit9w004xns4i3 | |
uvq1xcfqylf9gsf6oiotysbd33uddnlv | |
y9w80027c06jqnjxttpw7rhgrpntirsv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php bin/magento dev:urn-catalog:generate .idea/misc.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dos2unix bin/bash/* |