Categories
Linux Solutions Ubuntu Web

WordPress: Error Uploading Media Files

I recently got the following error while uploading media to my wordpress site:

Unable to create directory uploads/2016/06. Is its parent directory writable by the server?

Here are the steps to fix the issue:

  • Possible Issue 1: Incorrect Directory pointed to in the settings:
    • Open your WordPress Admin page (this is usually at /wp-admin)
    • Hover over the sidebar menu “Settings” and then click on “Media
    • Check the section “Uploading Files“(If this section is missing then try the next solution)
    • check the value for “Store Uploads in This Folder
    • Most commonly the value should be “wp-content/uploads“, if not is should be pointing to the correct folder on the server. My setup had it pointing to the wrong directory with the wrong permissions.
  • Possible Issue 2: Wrong permissions
    • Login to your server via ssh or ftp
    • Traverse to the installation folder of the WordPress site
    • Check and see if the user:group settings are correct (Usually for UNIX systems its www-data:www-data)
    • If that is fine look at the permissions for the ‘uploads‘ directory and its sub directories
    • running a command ‘ls -l uploads‘, will give you the permissions set
    • The ideal permission is of 755. For this run the command “chmod -r 755 uploads

Hopefully that will solve your problems.

Categories
Device Hardware Linux Open Source Solutions Ubuntu

Fixing USB Keyboard & Mouse Boot Problems in Ubuntu

USB Cables
USB Cables (Photo credit: incurable_hippie)

Sometimes on startup, Ubuntu does not recognize my USB Keyboard & Mouse. This problem is frustrating as Windows seems to recognize them.

It took me a while to recognize the root of the problem was with the USB 3.0 ports on the Motherboard. By moving the usb connections to the USB 2.0 ports on the motherboard this problem was solved.

Problem: USB Keyboard and Mouse dont work on boot up.
Solution: Move the connectors to the devices from a standard USB 3.0 port to standard USB 2.0 port(check with your motherboard manual for specifics)

Enhanced by Zemanta
Categories
Linux Ubuntu

Choqok – Patch for Twitter API 1.1


This file is created by Roozbeh Shafiee for Ch...

With the recent move by Twitter to support only clients that use its API version 1.1, Choqok has stopped updating feeds in its latest official build. There is frantic work going on in the background to get the support up and running but till its available via official channels here is a quick way to get Choqok working again.

Categories
Hardware Solutions Ubuntu

Ubuntu Check Disk for BadBlocks & Errors

Toshiba HDD2189 2.5" hard disk drive plat...
Toshiba HDD2189 2.5″ hard disk drive platters, head and actuator arm. near 1:1 macro. (Photo credit: Wikipedia)

If your system regularly does ubuntu check disk or scan disks on boot up and if it often finds errors during the check, its highly possible that you have bad sectors on your hard disk.  In such cases its highly recommended to do a disk check to detect if you have bad sectors on the disk.

Categories
Device Hardware Laptop Linux Solutions Ubuntu

Getting the Latest Ubuntu Graphics Drivers on Samsung NC20

Official Ubuntu circle with wordmark. Replace ...
Image via Wikipedia

To get the best graphics performance out of your Samsung NC20, you will need to install the latest graphics drivers.  These drivers unfortunatey are not easy to find on the web, so here is a step-by-step installation instructions for driver installation on Ubuntu 10.10.  Special thanks to the wonderful folks at Ubuntu Forums(Wonderful source, thumbs up to the contributors).
{adinserter 2}
The steps explained below were taken from post #542 from this Ubuntu Forums page.

  1. Download this zip file via_chrome9_drv_u1010_v2.zip and unzip it
  2. Open a terminal window and change into that directory (“cd ~” for home dir)
  3. Install the “dkms” package from Ubuntu package repository
    $ sudo apt-get install dkms
  4. Install the kernel driver:
    $ sudo dpkg -i chrome9-drm_87a.55689-maverick1_all.deb
  5. Install the X.org driver:
    $ sudo dpkg -i --force-confmiss --force-confnew xserver-xorg-video-chrome9_87a.55729-maverick1_i386.deb
  6. Update /etc/X11/xorg.conf file
  7. Copy the provided xorg.conf.nc20 file to xorg.conf
    $ sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
    $ sudo cp /etc/X11/xorg.conf.nc20 /etc/X11/xorg.conf
  8. Reboot Ubuntu
  9. Check if it’s working: Open /var/log/Xorg.0.log in a text editor. If you see several lines containing “VIA(0)”, then the new driver is being used.

Also note:

  • The sample xorg.conf.nc20 is only installed if you add the “–force-confmiss –force-confnew” options to dpkg.
  • Although VIA marks the source code this hacked driver is based on as stable, I cannot guarantee it to be bug-free. Use with caution.
Enhanced by Zemanta