AWSUbuntu: Difference between revisions

From Wiki RB4
Line 1: Line 1:
==Data==
==Data==
public DNS: ec2-34-217-148-49.us-west-2.compute.amazonaws.com
* public DNS: ec2-34-217-148-49.us-west-2.compute.amazonaws.com
IP: 34.217.148.49
* IP: 34.217.148.49
* Key Pair Name: aws-ubuntu-magento2-test1




===obsolete===
===obsolete===
public DNS: <s>ec2-34-220-188-76.us-west-2.compute.amazonaws.com</s>
* public DNS: <s>ec2-34-220-188-76.us-west-2.compute.amazonaws.com</s>
IP: <s>34.220.188.76</s>
* IP: <s>34.220.188.76</s>


==[[Magento|Magento]]==
==[[Magento|Magento]]==

Revision as of 10:01, 13 February 2019

Data

  • public DNS: ec2-34-217-148-49.us-west-2.compute.amazonaws.com
  • IP: 34.217.148.49
  • Key Pair Name: aws-ubuntu-magento2-test1


obsolete

  • public DNS: ec2-34-220-188-76.us-west-2.compute.amazonaws.com
  • IP: 34.220.188.76

Magento

  • installation according to here and update for PHP 7.2 according to here and here (list of old libs in myphppackages.txt)
  • create DB m2_1 manually by phpmyadmin
  • encryption key 2f7c4769764188104e57771b2081b9ff
  • DB-User root Password: ******
  • php bin/magento cron:install
  • recursively set 777 to <MAGENTO_DIR>/var/ and <MAGENTO_DIR>/generated/
  • http://34.220.188.76/magento2/
  • http://34.220.188.76/magento2/admin_xq3nc0
  • give full access e.g to SAMBA users
sudo chmod -R 777 /var/www/html/

MySQL

  • version
mysql -V // -> 5.7.25
sudo /etc/init.d/mysql stop
sudo mkdir /var/run/mysqld/
sudo chown mysql /var/run/mysqld/
sudo mysqld_safe --skip-grant-tables &
ENTER
sudo mysql -u root
use mysql;
update user set authentication_string=PASSWORD("pHalloo0@1p") where User='root';
flush privileges;
exit;
sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start
// test
sudo mysql -u root -p

PHPMyAdmin

  • sudo apt-get install -y phpmyadmin
  • use MySQL root password
  • change PHPMyAdmin URL
cd /etc/apache2/conf-available/
alias phpmyadmin -> phpxmyadmin
  • ren /var/www/html/phpmyadmin
cd /var/www/html/
mv phpmyadmin phpxmyadmin
  • restart apache
sudo service apache2 restart

Samba

  • installation according to here
    • user: ubuntu
    • password: Halloo0@1
    • share: HTML_SHARE
    • backup of configuration
\etc\samba\smb.conf.sik
  • edit security group according to here