Tech-Today
Wordpress directory and file permission
The issue of setting the correct permission hits me every time I install Wordpress. So I've created a script that will set its content to the correct permission. Below is part of the script:
// Make sure that the proper owner is set since I'm deploying to Amazon this time, my user is bitnami. But normally we use wordpress.
>sudo chgrp -R bitnami /WORDPRESS_DIR
// Find and sets all the directories permission to 775. This operation is recursive.
>sudo find /WORDPRESS_DIR -type d -exec chmod 775 {} \;
// Find and sets all the files permission to 664. This operation is recursive.
>sudo find /WORDPRESS_DIR -type f -exec chmod 664 {} \;
-
How To Migrate Your Godaddy Web Hosting To Digitalocean
Lately I've been reading some good articles about DigitalOcean as a cheap VPS option in online hosting and so I decided to try and subscribe to one. Since my wordpress website hosting is already expiring I decided to moved the hosting to DigitalOcean...
-
Configure Custom Wordpress Permalink
The following guidelines will help us debug a custom wordpress permalink. Normally we want the URL to be customized, has sense for SEO purposes but wordpress by default use the jurassic id system (page_id=xxx). Fortunately wordpress already offer this...
-
How To Install Subversion And Websvn On Ubuntu 12.04
This write-up contains a set of instruction on how to install and configure svn as well as setup websvn on an ubuntu 12.04 machine. 1.) Install subversion and apache2 sudo apt-get install subversion sudo apt-get install apache2 sudo apt-get install libapache2-svn...
-
Replace Openjdk7 With Sun-java 1.6 In Ubuntu
Note that I'm using ubuntu 11.10 Oneiric Ocelot 1.) Execute the following commands: sudo apt-get install python-software-properties sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugin...
-
How To Get Imei From Android Or Iphone
For android it's pretty straight forward. You just have to add read phone state permission. <uses-permission android:name="android.permission.READ_PHONE_STATE"/> And call the API: String imei = TelephonyManager.getDefault().getDeviceId(); if (TextUtils.isEmpty(imei))...
Tech-Today