Sunday, December 1, 2019

Many Spam User Accounts in Magento2

I was having a lot of spam user accounts in magento2,

Solution
1. Login to magento Admin
2. Go to Stores -> Configuration -> SECURITY -> Google reCaptcha (If you don't have your website added in google reCaptcha go to https://www.google.com/recaptcha/intro/v3.html and follow the steps )
3.


My spam account creation has been solved doing this. 

Thursday, July 16, 2015

Importing Magento website from shared hosting to your new VPS Server

In my case both shared hosting and vps were bought from the same hosting provider "Godaddy"
1. Open you VPS Account
You will see
Click on Import an existing site, it will list you website hosted in your shared hosting, click that website and click on okay.
It will take couple of hours when you be able to see Cpanel for your imported website.

2. Setting up DNS for newly imported website.
Leave this step at the end as we need to first fully test our website than we will forward visitors to newly imported website. OR better to create subdomain to test imported magento application.

3. Create an IP Address for imported website, by default the imported cpanel would be pointing to your old hosting ip address. to do that go to detail tab and click on IP section add an IP there, note down the newly create IP Address.

4. Changing IP address
Click on Manage Server

Go to List Accounts and click on '+' sign

Change IP Address Button

Select newly created IP address from the drop and and click on Change button
5. Check your magento application, <newly create ip>/~<username or directory>
it would be like http://166.62.xx.xx/~myusername/
You should be redirected to your old hosting account,
If your application already in production, I suggest you to create a new subdomain and test magento application there, to do that.
HOW TO CREATE SUBDOMAIN

After creating sub domain go to control panel of imported website, find phpMyAdmin browse database and update web/secure/base_url and web/unsecure/base_url to http://<subdomain>.mydomain.com in mage_core_config_data table


Changing this URL, you won't be redirected to your old domain <mydomain.com>
6. Test your application using new.yourdomain.com or what ever is your subdomain  name.


I had many issues moving my magento application to godaddy VPS server, please see below links if you have any related issues. When below issues are fixed, you will be ready to update mage_core_config_data to your domain. Change ip address in your DNS setting and point to new IP address. (changing ip will take couple of hours or minutes)

When installing magento application in VPS godaddy gives error message php-pdo-mysql-version-minimum v1 (detect: OFF)

Place Order button does not redirect to success page, though the order created.

When click on Place Order in magento does not redirect to Success page, order created in backend.





Check Mbstring





Hope it will fixed the checkout issue.

When installing magento application in VPS godaddy gives error message php-pdo-mysql-version-minimum v1 (detect: OFF)


Click on MANAGE SERVER, Login to WHM, find EasyApache. Click on Customize profile icon of selected Profile, Click Next, and when you see button Exhaustive Options List click on it. and select PDO MySQL option follow step and rebuilt apache.

Creating Subdomain in godaddy




Provide your ip address to Point to


To check your domain is up, open cachecheck.opendns.com website, provide your new subdomain name followed by .your domain name, and click on Check This domain. When IPs are listed means your subdomain successfully registered.

Wednesday, May 20, 2015

Applying magento patches godaddy server

Recently I received an email from my hosting "Apply this critical security patch for your magento website", so I gone through a process that how to apply patch on magento hosted in an online server.

In my case the patch SUPEE-5344 was patch.

Downloading patch

  1. Log in to your Magento admin panel (http://your domain name/admin).
  2. Note your version, which displays at the bottom of the page as Magento ver.
  3. Go to the Magento website.
  4. In the Magento Community Edition Patches area, next to SUPEE-5344, from the Select your format menu, click the option that corresponds to your version of Magento.

    For example, if you have Magento version 1.6.2.0, you would click Magento-CE-v1.6.1.x-1.6.2.x
  5. Click Download.
  6. Log in to your Magento account to complete the download.
  7. Copy down the name of the extension that you download.

Upload patch

Apply patch

  1. Enable SSH on your server, in godaddy server you can find it in security section SSH Access. Click on "SSH Access"
    Click on SSH Access
Click on Manage SSH Keys

Click on Generate New Key

Provide parameters and Click on Generate Key



Click on Manage link on newly generated Key

Authorize it

Click on newly generated private key View/Download link

Provide password and click on convert

Download Key to use it in putty

Open Putty enter your website address

Browse downloaded key

Click on Open button

Provide username and password which you use to login on your server (hosting server)

Once you logged in, go to public_html where you have uploaded your patch file, depending on patch file type run command as above.
sh <patchfile name>


Reference : godaddy.com

Wednesday, April 29, 2015

After upgrade from 1.9.0.1 to 1.9.1.0 magent sales email not working - No heartbeat task found. Check if cron is configured correctly

When I upgraded Magento 1.9.0.1 to 1.9.1.0 I noticed that sales email not working.

I read that
Starting with Magento 1.9.1 the emails are not being sent directly during checkout but instead are being queued. The queue is being processed via your Magento cronjob

To resolve this issue, I installed http://www.magentocommerce.com/magento-connect/aoe-scheduler.html extension. But had error message on magento admin "No heartbeat task found. Check if cron is configured correctly" and still no sales email was being sent.

My hosting is on godaddy server, to resolve No heartbeat task found, did following steps

1. Logged in to goDaddy
2. In Advance section, go to Crons Jobs
3. Add new Cron Job with command /bin/sh /home/<your hosting>/public_html/scheduler_cron.sh

Hope it will resolve the email sending issue.
 
Note if you are not able to install  aoe-scheduler, download its zipped version from "https://github.com/AOEpeople/Aoe_Scheduler", and copy it to your domain directly wisely. To take back is recommended.

References
http://magento.stackexchange.com/questions/45571/new-order-email-confirmation-not-being-sent-magento-1-9-1