Monday, December 19, 2011

Wordpress - Permalink Problem


I've just set up WordPress on my personal FreeBSD server, and now I'm trying to configure permalinks to this format:

This is not working. I've followed those instructions as well as I can, but it's still not working.

In httpd.conf:

Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

Then,I chmod'ed the .htaccess-file so WordPress could edit the file. The file is now containing this:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

After some reading and checking, I found out that my .htaccess-file is not being read! How to solve this?

From forum I read, he says that "You see AllowOverride None anywhere in your config files?"

So in my httpd.conf, I found it here:

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
# AllowOverride None
AllowOverride All

I comment the original setting, and set to AllowOverride All.
After restart apache, the permalinks now working like a charm.


Tuesday, November 22, 2011


Troubleshoot : 504 Gateway Time Out

1) Check dr server haproxy 81
2)Check file configuration setting
#ee /usr/local/etc/haproxy.conf

3)Test tutup satu server 221
4)Restart haproxy
# /usr/local/etc/rc.d/haproxy restart

5) Test application from browser
6) Check open cluster server log
#tail -f /var/log/apache2/access.log
*make sure that all access & process are here.

7) Check who access the server
#netstat -4

8) Open back the cluster server 221 and cloase another one 222
9) Repeat step 4-7. If the server cannot open or hang, go to management server.
10) Push power off and reboot from here..
* Some case might need both server to reboot at the same time. It depends on the issue.


Thursday, August 4, 2011

How to Create .bz2 files in Linux/Unix Server?


tar -cvjf test.tar.bz2 test1 test2

tar -cfz  blah.tar.gz *.db

tar xvjf test.tar.bz2
tar -xzvf something.tar.gz

Thursday, February 24, 2011

Drupal: How to enable Clean Urls Module

  1. Edit apache configuration
    ee /usr/local/etc/apache22/httpd.conf

    and set
    AllowOverride All

  2. Make sure
    LoadModule rewrite_module modules/

    is enable.

  3. Edit .htaccess file and change

    # RewriteBase /

    RewriteBase /

  4. Restart Server

Another way

If you have locked yourself out, visit just like you do to re-enable offline sites. You can log in there, enough to become admin, although none of the navigation will work yet.

Next, enter (in DRUPAL 5 and 6) to view the page where you can unset clean URLs.
Your interface will be usable again.

Other options that should get the same result include:

  • Run the drush commands:
    drush vset clean_url 1 --yes

  • Run the mysql commands:
    UPDATE variable SET value = 's:1:"0";' WHERE name = 'clean_url';
    DELETE FROM cache;

  • Alternatively, you can modify the appropriate settings.php file to include the line
    $conf['clean_url'] = 0;
    at the bottom (or similar code in the site settings array you'll see there).


Monday, February 7, 2011

How to enable HTTPS support in Drupal

Web server configuration

  1. Get a certificate. many hosting providers set these up for you - either automatically or for a fee. Simply ask your hosting provider.

  2. Configure your web server. A few helpful links:

    Chances are, your webhost will do this for you if you are on shared hosting.

Drupal configuration

  • If you want to support mixed-mode HTTPS and HTTP sessions open up sites/default/settings.php and add $conf['https'] = TRUE;.
    This enables you use the same session over HTTP and HTTPS both -- but with two cookies where the HTTPS cookie is sent over HTTPS only. You will need to use contributed modules like securepages to do anything useful with this mode, like submitting forms over HTTPS and so on. While your HTTP cookie is still vulnerable to all usual attacks, a hijacked insecure session cookie can only be used to gain authenticated access to the HTTP site. It will not be valid on the HTTPS site. Whether this is a problem or not depends on the needs of your site and the various module configurations. For example, if all forms are set to go through HTTPS and your visitors can see the same information as logged in users then this is not a problem.

  • For even better security, leave $conf['https'] at the default value (FALSE) and send all authenticated traffic through HTTPS and use HTTP for anonymous sessions. Once again contributed modules like Secure Login can help you here. Drupal 7 automatically enables the session.cookie_secure PHP configuration on HTTPS sites, which causes SSL-only secure session cookies to be issued to the browser.

  • For best-possible security, setup your site to only use HTTPS, not even responding to HTTP with a redirect. HTTPS is vulnerable to man-in-the-middle attacks if the connection starts out as a HTTP connection before being redirected to HTTPS. $conf['https'] can be left at its default value (FALSE) on pure-HTTPS sites.


Sunday, January 2, 2011

Fixing Google Chrome to read WP RSS feeds correctly?

Using google chrome make my all site RSS Feed cannot display properly like in other browser. All of the writing in one big mess of an entry.


To fix this issue, i need to install extension for my chrome.
There are many rss extenions in the extension gallery

Just install it. And It works!


Follow Me Social Media Wordpress Plugin

The Follow Me widget allows you to display links to all your social media profiles in one, easy-to-access button or window.

Download the Follow Me plugin here.

How to Install:

  1. Upload the “Follow Me” folder with all contained files to your wp-content/plugins directory.
  2. Go to the Plug-ins page in the Wordpress Dashboard and click “Activate” on the Follow-Me plugin.
  3. Go to “Settings > Follow Me Options ” in the Dashboard and add links to your social media profiles (make sure to use ‘http://’ before ‘www’ or the link will not work)
  4. Select the appropriate size and design for the button: default(small), medium, large, or box.
  5. Finally, go to “Design > Widgets” in the Dashboard and add the Follow me widget to the sidebar.
** If you do not have a widget supported theme then simply drop in
[open php tag] FollowMeSocialMedia() [close php tag] anywhere you want the widget to show up.