Category Archives: Wordpress

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

This new server with Ubuntu 16.04 LTS cames with PHP 7.0.

The backup that I have from my client has some old WordPress blogs…

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

I need to downgrade PHP 7.0 to PHP 5.6, at least for now.

Before you procede with the tutorial on the following link, and if you are running a new Ubuntu 16 installation you might get upon the following error while following the tutorial.

[email protected]:/home/httpd/html# sudo add-apt-repository ppa:ondrej/php
sudo: add-apt-repository: command not found

To install add-apt-repository you will need to run the following command

sudo apt-get install software-properties-common

Now the solution  How can I downgrade from PHP 7 to PHP 5.6 on Ubuntu 16.04? [duplicate].

 

Export & Import WordPress

I regularly work with WordPress… sometimes I install the working version on one of my servers and then move to the client’s server. Most of the times is a PAIN in the ass work…

I used to dump the mysql database, search and replace the older domain/subdomain for the new one and then import the database on the new server bla bla bla.

Users passwords stop working, themes and plugins sh*ts disappeared….

Yesterday I’v found a plugin who exports the DB PERFECTLY!

WP Migrate DB
https://wordpress.org/plugins/wp-migrate-db/

wp-migrate-db_reviews

woocommerce – my-account/lost-password/

On a new woocommerce store, the “Forget password” password was sending me to http://www.domain.com/my-account/lost-password/

In the funcions.php of the current theme that I’m using, I add the following lines…

function reset_pass_url() {
    $siteURL = get_option('siteurl');
    return "{$siteURL}/wp-login.php?action=lostpassword";
}
add_filter( 'lostpassword_url',  'reset_pass_url', 11, 0 );

 

For a deep reading and correct resolution
https://support.woothemes.com/hc/en-us/community/posts/201543505-Lost-Password-Endpoint-Shortcode-Not-Working

Pingdom Full Page Test, tweaking the result

Results of a WordPress without ZenCache

Google Chrome 57

Load time/waterfall of index.php
Google Chrome 56

After install ZenCache WordPress Plugin

Google Chrome 58

Load time/waterfall of index.php
Google Chrome 54

ZenChache results
<!-- ZenCache file path: /cache/zencache/cache/http/www-domain-com/index.html -->
<!-- ZenCache file built for (http://www.domain.com/) in 7.51658 seconds, on: May 29th, 2015 @ 4:00 pm UTC. -->
<!-- This ZenCache file will auto-expire (and be rebuilt) on: Jun 5th, 2015 @ 4:00 pm UTC (based on your configured expiration time). -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- ZenCache fully functional :-) Cache file served for (http://www.domain.com/) in 0.00275 seconds, on: May 29th, 2015 @ 4:06 pm UTC. -->