ABHIONLINUX
Site useful for linux administration and web hosting

2010/10/15

Uploading Error in WordPress. “Unable to create directory-Is its parent directory writable by the server?"

While uploading files such as plugins and themes, we will get an error “Unable to create directory /home/username/public_html/wp-content/uploads/2010/10. Is its parent directory writable by the server?”

This is due to changes in server, host or upgrading to new version

Firstly, we need to check the upload file path.

1. Login to wp-admin
2. Click on setting --> media --> "Store upload in this folder"
   It will be like /home/username/public_html/wp-content/uploads , change it to wp-contents/upload.

This will fix you issue. If this doesnt fix the issue, you need to check the folder permission. Change the permission of wp-content and uploads to 777 and correct ownership of all the files/folders.

2010/10/03

how to set time zone in VPS node (OpenVZ)

Below is the steps to set the time zone for a particular node in VPS.

1. Login to the main node.(SSH).
2. Stop the node(container) which you want to set time.
   # vzctl stop 777
            777 = Container ID
3.Set the container to have capability to change the time zone.
   # vzctl set 777 --capability sys_time:on --save

4. Start the container and login to it.
   # vzctl start 777
   # vzctl enter 777
5. Change your local timezone.
   # mv /etc/localtime /etc/localtime_bk
   # ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
6. Set the date
   # date 100318312010
  time has been set to 18.31 on 3rd Oct 2010
  (10-Month, 03-Day, 06-Hours,  31-Minutes,  2010 -Year