Friday, May 15, 2020

magento-2-installing-and-problem solving on AWS Ubuntu 16.04

FTP on Amazon  EC2 Server ( preinstalled Magneto using Bitnami)

Replace IP ON TIP vsftpd.conf file

For New install : sudo apt-get install vsftpd

FTP Port config on EC2 instance

TCP 20-21
TCP 1024-1048




PUTTY
 update command
#apt-get update

#sudo su
add this in
#nano /etc/vsftpd.conf
is access not permit use sudo nano


anonymous_enable=NO
write_enable=YES
local_enable=YES
pasv_enable=YES
pasv_min_port=1024
pasv_max_port=1048
port_enable=YES
pasv_address=54.151.195.180
pasv_addr_resolve=YES
chroot_chroot_local_user=YES

CTRL+X Y Enter

service vsftpd restart
or
sudo /etc/init.d/vsftpd restart

sudo adduser ftpuser

root folder access

sudo usermod -d /opt/bitnami/apps/  dhamu


write_enable=YES

file permition 
 chmod 077 -R /opt/bitnami/apps/magento/


sudo chmod a+rwx /opt/bitnami/apps/magento/htdocs/var/import_history





Connecting to the MySQL Command-Line Tool


$ mysql --user=username
To GRANT ALL privileges to a user, allowing that user full control over a specific database, use the following syntax:
mysql> GRANT ALL PRIVILEGES ON magento2.* TO 'root'@'localhost';

Creating Another Super User

While not particularly secure, in some cases you may wish to create another ‘super user’, that has ALL privileges across ALL databases on the server. That can be performed similar to above, but by replacing the database_name with the wildcard asterisk:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'tolkien'@'%';
Now tolkien has the same privileges as the default root account, beware!

Saving Your Changes

As a final step following any updates to the user privileges, be sure to save the changes by issuing the FLUSH PRIVILEGES command from the mysql prompt:
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)

Magento image upload not working even after giving all folders 777 permissions

  • pub/media/catalog/
  • pub/media/catalog/category
  • pub/media/catalog/product
  • pub/media/images
  • pub/media/wysiwyg/