Month: July 2011

Google Street Map can’t work in WordPress 3.2 Solved!

Google Street Map can’t work in WordPress 3.2 Solved!

I tried to embed Google Map into WordPress 3.2 and see it’s works without any failure. But, not with Google Street Map. When i trying embed this javascript code, it’s only show boxes and not images. I thought it was my NGINX configuration or w3-total cache plugin conflict with Google Street Map. So, i try …

+ Read More

Uninstall Xcache and solving error Failed loading cannot open shared object file: No such file or directory

Uninstall Xcache and solving error Failed loading cannot open shared object file: No such file or directory

When you got this 1"Failed loading /usr/lib/php5/20090626/xcache.so:  /usr/lib/php5/20090626/xcache.so: cannot open shared object file: No such file or directory This because you not removing xcache configuration from php. In this example, i using php5-fpm. If you’re using apache2 + php5, so you can find it on /etc/php5/apache2/ How to solve this problem: 11. Removing extension="xcache.so" from …

+ Read More

Phpmyadmin blank page using Eaccelerator

Phpmyadmin blank page using Eaccelerator

When you using eaccelerator, somehow it have effects with Phpmyadmin. It’s seems this happen because Eaccelerator can’t compiling Phpmyadmin in good way and should be disabled when we want to use Phpmyadmin. So, open your php.ini, there should be configuration like this : 1234567891011121314eaccelerator.enable = "1" zend_extension = "/usr/lib/php5/20090626/eaccelerator.so" eaccelerator.shm_size = "16" eaccelerator.cache_dir = "/var/cache/eaccelerator" …

+ Read More

How to optimize WordPress in EC2 in very overkill way!

How to optimize WordPress in EC2 in very overkill way!

When i wrote this thing, i’m actually put my sites for testing. I’m running micro (612 MB) instance EC2 which there are Drupal, CodeIgniter and WordPress in same servers. I thought that WordPress have more resource than anothers. So i start to optimize this server and WordPress in Overkill way! First, i assume you already …

+ Read More

NGINX configuration for WordPress 3.2 Single and Multiple Sites

NGINX configuration for WordPress 3.2 Single and Multiple Sites

Using WordPress with NGINX will boost page load. Configuration NGINX needed for enabling permalinks / rewrite URL in WordPress. There are 2 NGINX configuration for WordPress depend on what mode will used. If you have single WordPress only, then you should use this configuration : 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556server {          server_name lanuka.com;     …

+ Read More

One engine for several / multiple sites in WordPress 3.2 domain using NGINX

One engine for several / multiple sites in WordPress 3.2 domain using NGINX

Multiple sites in WordPress 3.2, by default, it’s only supported on subdomain. But, we want create multiple sites by one wordpress engine on several domains. We want this wordpress serve independent domain. Just like what Drupal have, WordPress can do thing too (not in easy way). I will use pydemo.com as example. What we will …

+ Read More

How to create template system layouts in CodeIgniter 2.0

How to create template system layouts in CodeIgniter 2.0

Templating in CodeIgniter, it’s mean we should make your own layouts system. If you have using CakePHP before, then you see there no automatic templating views in CodeIgniter. After searching and compare with anothers, i get Philsturgeon template is near with CakePHP template system ( http://getsparks.org/packages/template/show ). So, first step, download and install it. See …

+ Read More

NGINX configuration for CodeIgniter 2.0

NGINX configuration for CodeIgniter 2.0

This is my NGINX configuration for running CodeIgniter 2.0. 123456789101112131415161718192021222324252627282930313233343536373839404142434445server {     listen   80; ## listen for ipv4     server_name ci;     root        /your-public-html;     access_log  /var/log/nginx/yourdomain.access.log;     error_log  /var/log/nginx/yourdomain.error.log;     # If file is an asset, set expires and break     location ~* …

+ Read More

Solving RSS Feed error in Codeigniter 2.0

Solving RSS Feed error in Codeigniter 2.0

There are several commmon error when building RSS Feed in CodeIgniter 2.0. Somehow we made mistakes and here are top list case. When we got ErrorException [ Parse Error ]: syntax error, unexpected T_STRING, this happen because you have PHP short_tags enabled, which means <? is shorthand for <?php and opens a PHP code block. …

+ Read More

How to fix Codeigniter blank / white page error

How to fix Codeigniter blank / white page error

Sometimes when we developing our Codeigniter application, suddenly it gave us White of Screen or blank page error. To solve this problem, we need to configure our PHP.ini to show error. So, if you using Ubuntu, go to /etc/php5/apache2/php.ini and edit : 12error_reporting = E_ALL | E_STRICT display_errors = On

Solve blank page URL Rewrite CodeIgniter in Subfolder using .htaccess

Solve blank page URL Rewrite CodeIgniter in Subfolder using .htaccess

When we place CodeIgniter as subfolder in localhost environment, it will have some problem with URL rewrite. For example, i have http://localhost/codeigniter. So, if we using default tutorial on CodeIgniter without carefully then it will throw us into “blank page” and without any error. Configuring Codeigniter for subfolder is easy. Here the steps : 1. …

+ Read More

How to use Zend Framework in CodeIgniter 2.0

How to use Zend Framework in CodeIgniter 2.0

Combine Zend Framework with Codeigniter will give great result and cutting development time. Intergrating Zend Framework into CodeIgniter 2.0 is very easy. First, you download new Zend Framework here . After downloading, unpack it package and get Zend folder. Put this Zend folder into app/libraries in CodeIgniter. Then, we create Zend libraries :

How to disable Crontab in WordPress 3.2

How to disable Crontab in WordPress 3.2

When page load, WordPress will doing cron stuff. This meaning, every page load by visitors, WordPress always checking what task in cron queque. If you curios how cron is working on WordPress, see this : 12345678910wp-settings.php: +requires wp-includes/default-filters.php -contains the action hook to the function wp_cron() +requires wp-includes/cron.php -contains functions that perform cron related tasks, …

+ Read More

How to disable comments in WordPress 3.2.1

How to disable comments in WordPress 3.2.1

Disabling comments in WordPress 3.2 is not different as old wordpress version before. But for new guy at WordPress, it’s confusing. Actually, new WordPress hiding several option like revision, author and discussion which have disable comments feature. So, before we can disable comments, we should show this menu in our editing Post or Page. Go …

+ Read More