AWSUbuntu: Difference between revisions
(→MySQL) |
(→Samba) |
||
| Line 32: | Line 32: | ||
// test | // test | ||
sudo mysql -u root -p | sudo mysql -u root -p | ||
==PHPMyAdmin== | |||
* <code>sudo apt-get install -y phpmyadmin</code> | |||
* set MySQL root password | |||
* change PHPMyAdmin URL | |||
cd /etc/apache2/conf-available/ | |||
alias phpmyadmin -> phpxmyadmin | |||
* ren <code>/var | |||
cd /var/www/html/ | |||
mv phpmyadmin phpxmyadmin | |||
* restart apache | |||
sudo service apache2 restart | |||
==Samba== | ==Samba== | ||
Revision as of 19:56, 12 February 2019
Magento
mysql --user=root --password=root
- install PHPMyAdmin
- in addition
sudo ln -s /usr/share/phpmyadmin/ /var/www/html/phpmyadmin
- http://34.220.188.76/magento2/
- http://34.220.188.76/magento2/admin
- give full access e.g to SAMBA users
sudo chmod -R 777 /var/www/html/
To avoid errors
sudo chmod -R 777 /var/www/html/magento2/
MySQL
- version
mysql -V // -> 5.7.25
- change mysql root passwort according to https://websiteforstudents.com/resetting-mysql-root-password-on-ubuntu-16-04-17-10-and-18-04-lts/
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- set MySQL root password
- change PHPMyAdmin URL
cd /etc/apache2/conf-available/ alias phpmyadmin -> phpxmyadmin
- ren
/var
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