How to Solve WordPress Could Not Create Directory

Standard

WordPress is an interesting platform to build your website but when you get this kind of errors, you feel like plucking your hair off your head because nothing is happening. I have tried like 10 solutions but never got it right until now.

Am sure you have gotten something like this when trying to update your plugin or upgrading WordPress.

This is the error for the Upgrading of WordPress

Downloading update from http://wordpress.org/wordpress-4.4.zip…

Unpacking the update…

Could not create directory.

Installation Failed

This is the error for the plugin update

  Downloading update from http://downloads.wordpress.org/plugin/your-plugin.0.9.3.1.zip…

  Unpacking the update…

  Could not create directory. /wp-content/upgrade/yourplugin.tmp
 
  Return to Plugins page

SOLUTION:
Step 1:

Plugin: Just change the permission of /public_html/wp-content and /public_html/wp-content/plugins to 775. If the update succeed just revert it back to its default permission.

Upgrading: Just change the permission of /public_html/wp-content and /public_html/wp-content/upgrade to 775. If the upgrade succeed just revert it back to its default permission.


chmod 775 /var/www/html/wordpress/wp-content/

chmod 775 /var/www/html/wordpress/wp-content/plugins

chmod 775 /var/www/html/wordpress/wp-content/upgrade

Step 2:

Add the proper group permissions most likely to the same that Apache is running under.

ps aux | grep apache 

You will see the Apache user group on the left.

See my example of how I did it:

Screen Shot 2015-12-15 at 11.37.13 AM

Step 3:

Now change your WordPress folder to the same user group, you can do this in a parent folder or sub folder but for sanity it usually best for parent folder, use -R to recursively do it.

chown -R apache:apache /path/to/wp-root-folder
  • To login on windows use Putty
  • Enter your hostname and port
  • Choose connection type depending on server settings
  • Click open

If you try to chown and get denied you will need root privileges , type sudo su and your password.

Now try updating the plugin or Upgrading WordPress.

Awesome!!! Now we have solved that issue.

Solution by Wyck

 

If it helped you out, please don’t forget to like and share 🙂

How to Install Drivers for Canon Printers PIXMA IP Series on Ubuntu 12.04 – 14.04

Standard

Canon is the largest printer manufacturer, but it does not have drivers for every printer model, running on Linux.

I will show you how to install the Ubuntu drivers for Canon IP Series Printers, on Ubuntu 14.04 Trusty Tahr, Ubuntu 13.10 Saucy Salamander, Ubuntu 13.04 Raring Ringtail, Ubuntu 12.10 Quantal Quetzal and Ubuntu 12.04 Precise Pangolin

The installation instructions are for the following Canon printers:

  • Canon iP100 Ubuntu Driver –  cnijfilter-ip100series
  • Canon iP1800 Ubuntu Driver – cnijfilter-ip1800series
  • Canon iP1000 Ubuntu Driver – cnijfilter-pixmaip1000series
  • Canon iP1500 Ubuntu Driver – cnijfilter-pixmaip1500series
  • Canon iP1900 Ubuntu Driver – cnijfilter-ip1900series
  • Canon iP 2200 Ubuntu Driver – cnijfilter-ip2200series
  • Canon iP2500 Ubuntu Driver – cnijfilter-ip2500series
  • Canon iP2600 Ubuntu Driver – cnijfilter-ip2600series
  • Canon iP2700 Ubuntu Driver – cnijfilter-ip2700series
  • Canon iP3300 Ubuntu Driver – cnijfilter-ip3300series
  • Canon iP3500 Ubuntu Driver – cnijfilter-ip3500series
  • Canon iP3600 Ubuntu Driver – cnijfilter-ip3600series
  • Canon iP4200 Ubuntu Driver – cnijfilter-ip4200series
  • Canon iP4500 Ubuntu Driver – cnijfilter-ip4500series
  • Canon iP4700 Ubuntu Driver – cnijfilter-ip4700series
  • Canon iP4800 Ubuntu Driver – cnijfilter-ip4800series
  • Canon iP5200 Ubuntu Driver – cnijfilter-ip5200series
  • Canon iP6600 Ubuntu Driver – cnijfilter-ip6600series
  • Canon iP7500 Ubuntu Driver – cnijfilter-ip7500series

Add the repository and update the system:

$ sudo add-apt-repository ppa:michael-gruz/canon-trunk
$ sudo apt-get update

For Ubuntu 14.04 Trusty Tahr ONLY, you need the libtiff4 library which is not available via the default repositories, but we can download it from the Debian Sid sources.

Download and install the libtiff4 library, for either 32 bit and 64 bit systems:

How to install the libtiff4 library on 32 bit Ubuntu 14.04 system:

$ wget http://cz.archive.ubuntu.com/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_i386.deb
$ sudo dpkg -i libtiff4_3.9.7-2ubuntu1_i386.deb
$ sudo apt-get install -f

How to install the libtiff4 library on 64 bit Ubuntu 14.04 system:

$ wget http://cz.archive.ubuntu.com/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_amd64.deb
$ sudo dpkg -i libtiff4_3.9.7-2ubuntu1_amd64.deb
$ sudo apt-get install -f

And install the drivers for your printer:

Canon iP100 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip100series

Canon iP1800, iP1880, iP1890 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip1800series

Canon iP1000 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-pixmaip1000series

Canon iP1500 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-pixmaip1500series

Canon iP1900 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip1900series

Canon iP2200 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip2200series

Canon iP2500 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip2500series

Canon iP2600 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip2600series

Canon iP2700 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip2700series

Canon iP3300 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip3300series

Canon iP3500 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip3500series

Canon iP3600 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip3600series

Canon iP4200 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip4200series

Canon iP4500 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip4500series

Canon iP4700 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip4700series

Canon iP4800 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip4800series

Canon iP5200 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip5200series

Canon iP6600D Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip6600dseries

Canon iP7500 Ubuntu Drivers:

$ sudo apt-get install cnijfilter-ip7500series

Now plug in your Printer and enjoy!
Cheers!
Lima Kilo

Finding a computer’s model using command prompt & terminal

Standard

May be you want to find out the drivers for your PC and you need to be specific, you have to have the model of your PC. It’s fairly simple.

A. On Windows Command Prompt:

wmic csproduct get name

On my machine that returns two lines, one saying Name and another with my machine’s model name:

Dell Inspiron 15 N5040

Now that’s cool!!

B. For Linux Terminal:

sudo dmidecode | grep -A3 '^System Information'

1

This is what you get:

2

Hope it helped.

Cheers!

Lima Kilo

“Open In Terminal” action in Ubuntu 14.04

Standard

When I was installing Whatsapp on my Ubuntu PC, there was a step where I had to “Open in Terminal” but my Ubuntu 14.04 had no such option, so I did some digging and this is how you do it.

nautilus-open-terminal and nautilus-actions packages are available in Universe repository of Ubuntu 14.04. So run the below commands to enable universe repository and also to install above mentioned packages.

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install nautilus-open-terminal
sudo apt-get install nautilus-actions

Finally run

nautilus -q

command to quit nautilus. Now you can be able to see Open in terminal option on right-clicking.

Hope that helps.

Cheers!

Lima Kilo

Cannot Install Tor Browser Behind Proxy Ubuntu 14.04

Standard

When you install it the normal way then you encounter this kind of error:

Errors were encountered while processing:
 /var/cache/apt/archives/tor_0.2.4.20-1_amd64.deb

Just follow the below steps to help you out.

Execute these commands in your Terminal  Ctrl + Alt + t:

sudo dpkg -r tor-browser tor-geoipdb
sudo apt-get install -f

You need to export your proxy environment variables using

export http_proxy=http://username:password@host:port/
export https_proxy=https://username:password@host:port/

and then tell sudo to use them using:

 sudo -E add-apt-repository ppa:webupd8team/tor-browser

Run these commands to install TOR:

sudo add-apt-repository ppa:webupd8team/tor-browser
sudo apt-get update
sudo apt-get install tor-browser

Hope that helps you out.

Cheers!

Lima Kilo