This how-to guide explains how to install the latest version of the Apache 2.4, MariaDB/MySQL 5.5, and PHP 5.5/PHP 5.6 along with the required PHP modules on RHEL / CentOS 7/6 and Fedora 18-24. Install Apache, MySQL/MariaDB and PHP on CentOS/RHEL/Fedora This combination of operating system (Linux) with web server (Apache), database server (MariaDB/MySQL) and server-side scripting language (PHP) is known as Full Article…
Search the Wiki
Centos – Subscription-manager: command not found
If you see this message when you are installing Remi, you should follow this way For Centos 6 wget -O /etc/yum.repos.d/epel-rhsm.repo http://repos.fedorapeople.org/repos/candlepin/subscription-manager/epel-subscription-manager.repo yum install subscription-manager -y
MySql – Concatenate many rows into a single text string
I had an issue when I was trying to join two tables with one-to-many relationships. If there is a table called STUDENTS SubjectID StudentName ———- ————- 1 Mary 1 John 1 Sam 2 Alaina 2 Edward Result I expected was: SubjectID StudentName ———- ————- 1 Mary, John, Sam 2 Alaina, Edward * Solution: In Full Article…
Magento – Set and unset system messages
You can use this code to clear error message Mage::getSingleton('core/session')->getMessages(true); // The true is for clearing them after loading them You can use the following code show the Magento message //A Success Message Mage::getSingleton('core/session')->addSuccess("Some success message"); //A Error Message Mage::getSingleton('core/session')->addError("Some error message"); //A Info Message (See link below) Mage::getSingleton('core/session')->addNotice("This is just a FYI message…"); //These Full Article…
Git – Revert change to specific commit
Temporarily switch to a different commit If you want to temporarily go back to it, fool around, then come back to where you are, all you have to do is check out the desired commit: # This will detach your HEAD, that is, leave you with no branch checked out: git checkout 0d1d7fc32 Or if Full Article…
Error when using REGEXP in mysql
If you face this issue "exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1139 Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp'" It means your web server doesn't support UTF-8. I had the same error after an upgrade from ubuntu 14.04 to 16.04. I'm using Full Article…
CREATING CANADIAN TAX RULES IN MAGENTO
As a business owner and eMerchant operating and selling within Canada, it is important to know what the amount is to charge for sales tax on the goods and services that you offer your customers. This is vital in the online world of eCommerce as the customer base you sell to can also be nationwide. Full Article…
Magento – Get simple product info from configurable product in wishlist page
Here the way to get simple product info from configurable product in wishlist page.
jQuery – Get & format HTML tags from a simple string
I have a String variable say strHTML = "<div class='abc'> This is a test <span class='xyz'> String </span> </div> " that i m receiving from server. When I use $('#container').append(strHTML); or $('#container').text(strHTML); it is displaying the whole string including HTML tag in "container". What i want is to take each HTML tag as HTML element Full Article…
Mac OS X – Changing DNS settings
Here we'll show you how to manually assign DNS (Domain Name Service) servers for your Internet connection using OS X 10.6 Open System Preferences (either by clicking the icon on the dock or by clicking the Apple Icon and selecting it from the list). Double-click the Network icon. Double-click the connection you want to change DNS for. The connection Full Article…