<=> PHP7 and Magento (M)

 PHP7 and Magento (M)

magento-php7

I finally installed PHP7 this weekend and ran some Magento local dev sites. The speed increase is impressive! It’s so much faster that it should be a mandatory requirement.

There’s only a couple of minor quirks, like not having dl() support which killed a couple of the extensions that had copy-protection on one site.  There’s a couple of small things to do to make PHP7 work but it’s covered below.  If you’re ready to take the Magento/PHP7 plunge and are using Ubuntu then this is how you can do it.

First, you have to remove your php5 install.

Remove php5

Warning: This will remove php5 from your system completely. 

sudo apt-get purge php5-*

Add the PHP7 repository

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

Install PHP7

sudo apt-get install php7.0

Install PHP7 components

sudo apt-get install php7.0-cli php7.0-common libapache2-mod-php7.0 php7.0 php7.0-mysql php7.0-fpm php7.0-curl php7.0-json php7.0-cgi php7.0-mcrypt

sudo service php7.0-fpm restart

sudo service apache2 restart

The Magento PHP7 Fix

Inchoo has this ready in an easy to install extension: https://github.com/Inchoo/Inchoo_PHP7

 

Common problems with Magento after installing PHP7

If Apache is dumping plain text php instead of rendering it then be sure that you’ve installed libapache2-mod-php7.0.

sudo apt-get install libapache2-mod-php7.0

sudo service php7.0-fpm restart

sudo service apache2 restart

Getting a white page or error about mcrypt in Magento?

sudo apt-get install php7.0-mcrypt

sudo service php7.0-fpm restart

sudo service apache2 restart

 

php7

Read More

Dr. Horrible’s Traceroute

Dr. Horrible’s Traceroute

horrible

 

Dr. Horrible’s Sing-A-Long Blog is great.  Someone set up a series of hops that can be seen with a traceroute.  Here’s the whole thing when it works:

horribletraceroute

 

Here is as far as it gets for me:

13 bad.horse (162.252.205.130) 89.856 ms 89.849 ms 91.998 ms
14 bad.horse (162.252.205.131) 98.748 ms 96.610 ms 98.771 ms
15 bad.horse (162.252.205.132) 106.758 ms 109.627 ms 111.734 ms
16 bad.horse (162.252.205.133) 115.985 ms 117.089 ms 116.059 ms
17 he.rides.across.the.nation (162.252.205.134) 126.142 ms 127.243 ms 100.983 ms
18 the.thoroughbred.of.sin (162.252.205.135) 110.806 ms 116.876 ms 114.169 ms
19 he.got.the.application (162.252.205.136) 121.451 ms 126.479 ms 121.535 ms
20 that.you.just.sent.in (162.252.205.137) 127.869 ms 132.238 ms 132.122 ms
21 it.needs.evaluation (162.252.205.138) 137.586 ms 137.481 ms 141.631 ms
22 so.let.the.games.begin (162.252.205.139) 151.420 ms 151.885 ms 149.410 ms
23 a.heinous.crime (162.252.205.140) 134.791 ms 135.484 ms

It timed out here but still very cool.

Read More

Magento Imagine 2015 – Monday

Magento Imagine 2015 – Monday

walking

Lots of walking at Imagine.  This was for today according to my phone’s pedometer.

Goodnight. More of the same all day tomorrow!

Read More

Netgear A6100 WiFi USB Mini Adapter install for Ubuntu/Lubuntu

Netgear A6100 WiFi USB Mini Adapter install for Ubuntu/Lubuntu

nic2nic1

 

Operating System: Lubuntu 14.10

My laptop’s internal wireless adapter decided to start acting up a few weeks ago.  I tried to deal with it but the frequent disconnections were affecting my ability to work efficiently.  I needed an external wireless card but I wanted the smallest possible one that I could find.

I picked one up at my local Walmart for about $34. This thing is very small and fits extra snugly into the USB port.  So snug that it makes me think I’m going to pull the case off of it when removing it from the port.  It’s pretty solid though.  I don’t intend on ever removing it so it’s fine with me.

I run Lubuntu on my main laptop.  It’s a very fast OS without a lot of bells and whistles.  What it lacks in special effects it makes up for in speed.

When I plugged in the Mini Adapter nothing happened. It wasn’t showing up on the wireless monitor at all. The instructions I found on Google were easy to follow and worked right away with no problems so I wanted to share them here.

 

Start by plugging in the adapter.

Open a terminal and run:

sudo apt-get install –reinstall linux-headers-$(uname -r) build-essential

After it finishes, go to a system that has an internet connection and navigate to the following Github page:

https://github.com/abperiasamy/rtl8812AU_8821AU_linux

Download the repo from the button labeled “Download ZIP” on the right-hand side of the page.  Copy the file to the system that the Mini Adapter is located.

Unzip the file you downloaded then cd to the folder it creates.

Run the following commands:

make
sudo make install
sudo modprobe 8812au

After everything completes, unplug then replug your USB card.

That’s all! Now you can connect to your network.

I’ve been running this adapter for a few days and it works perfectly.  It’s easily 5x-10x faster than my laptop’s failing built in wireless card. There were some areas of my house I couldn’t get a connection before but now it’s fast no matter where I am.

Thank you to the people that took the time to figure this out and share it with the community!

Source: http://ubuntuforums.org/showthread.php?t=2235778
Contributor name: Hadaka

and

Source: http://askubuntu.com/questions/368015/problem-with-building-compiling-a-driver-for-edimax-wireless-adapter-ew-7822uac
Contributor: http://askubuntu.com/users/19421/chili555

 

Read More

Zend Certified PHP Engineer

I passed the ZCPE test yesterday on Friday the 13th. I’ve been studying for this test since it was PHP 4 but never felt quite ready enough to attempt it. When I finally passed my Magento Certified Developer test in 2012 I decided to buckle down, study and learn as much as possible about everything php. My history of learning and developing with php goes back to the pre-Y2K bug years. Working with it as my full-time career and on my own time as a hobby made getting this certification important to me.

After the test I had hoped to see a score instead of just “PASSED” but it beats the alternative. It seemed like it went well because everything just clicked into place for me.

I’m not sure what to go for next. I have a LOT of learning to do before I even think about trying for the Zend Framework certifications. I have had my eye on the LPI Linux cert since it came out. Since Linux a large part of my daily life and pretty much everything in my home runs on it (Ubuntu, Crunchbang, Xubuntu, Fedora, etc.) it seems like a good choice. However, I do need to update my Magento MCD to MCD+. They have a couple of new ones now that look interesting.

Read More