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/

Monday, January 10, 2011

How To: Remove a worm virus from your computer

How worms spread

Using the Internet, worms can spread so rapidly that they may often go undetected by anti-virus software because the updates that would enable the software to detect the worm have not yet been developed or downloaded. Because of this, it's advisable to use an anti-virus product that updates frequently (like Kaspersky AntiVirus) which cuts the delay between a virus appearing and the updates arriving to a minimum. Free anti-virus products may only update once or twice a week, leaving your computer vulnerable during the critical period when a new worm is most active.

Even using the best anti-virus, it's a good idea to train the virus detector between your ears to recognize potential worms and avoid being tricked into activating them. But it's easy to be fooled, with the end result that you have a worm on your computer sending copies of itself to every address known to you.

An Internet worm has a number of common characteristics:

  • It spreads across the Internet using email, instant messaging or peer-to-peer file sharing networks;
  • It uses a trick - known as "social engineering" - to get you to open the email or run the file, which installs the worm on your computer and activates it;
  • It may install one or several files on your computer, often masquerading as system files, or with randomly generated names to make removal more difficult;
  • It installs entries in the system registry and other places to ensure that the worm is activated whenever you use your computer.

Problems removing worms

Unlike most viruses, worms do not usually modify or "infect" existing files on a computer. They are usually self-contained files, often dropped into system folders such as the Windows folder. Therefore, removing a worm from a computer should simply be a matter of identifying and deleting the files it installed, and the registry links that may be pointing to them. However, removal may be made more complicated because:

  • The worm is active, so the files are in use and cannot be deleted;
  • More than one worm process may be running, and they may act in such a way as to restart one another whenever they are stopped, making manual removal difficult;
  • The registry links may have been made in such a way that if the worm files are removed, vital system processes are prevented from running, making Windows difficult to use, or unusable.
  • Windows' System Restore has backed up the worm files and its registry changes, making it possible for the worm to be restored, and causing false alarms that the worm is still present on the computer because copies are found in the System Restore folder.

Virus scanners are good at detecting and removing the files belonging to worms, but they often do not repair or remove the registry changes correctly. Therefore an anti-virus program can sometimes do more harm than the worm, by removing it and leaving the computer unusable, or displaying various error messages when you use it.

How to Learn Virus Removal Tips and Tricks

  • 1

    Burn a CD to protect your files. You can find downloadable services on the web that allows you to copy your files onto a CD in the case that your system becomes infected with a virus. F-Prot is one site that you can use to perform this task.

  • 2

    Review your antivirus software from time to time. You want to make sure that you have a current subscription and that it has all the latest security features.

  • 3

    Install all security patches. If you constantly stay on top of updates with your operating system, your system is less vulnerable to attacks.

  • 4

    Use a firewall to protect your system. It takes more than simply running an occasional virus scan on your computer to protect your files. A firewall gives you around-the-clock protection.

  • 5

    Make smart computing choices. Many viruses occur because users are not cautious enough. Never click on links or open e-mails that look suspicious.

  • 6

    Learn how to repair viruses. If you research the basics of repairing viruses that affect your computer it can help save you a lot of money. Most viruses can be repaired through your antivirus software.