About Me

Please scroll down (bottom of the page) to see links to previous posts.

Monday, May 7, 2012

Dharma

What is Dharma ?

I believe what I do is my Karma and what I think is my Dharma. This defines the difference between body and soul.
To understand this perspective or any other related to these topics, it is critical to understand the difference between
'My World' and 'The World'.

(refer to the tale of Ganesha and Karthikeya doing pradakshinna according to their perspective of their world)

Saturday, March 24, 2012

Install WordPress


Installing wordpress is really easy, just as the wordpress team tells us.
Download wordpress zip/tar file (I downloaded the 3.3.1 version during this writing).
Extract this file to find a lot of php files in it.
Copy this folder to the document root of Apache. Have a look at my previous blogs to get an idea of a native installation of MySQL, Apache and PHP.

Create a new user in MySQL 'wordpress' also create a new schema 'wordpress'. Assign all the privileges necessary to this user/schema combination, assign the connection parameters such as %, localhost, 127.0.0.1 as necessary to your situation.

Now open your fav browser and visit http://localhost/wordpress. 
You will be directed to http://localhost/wordpress/wp-admin/setup-config.php and the screen will look like the following. After that follow the next few screens and you should be ready to see the dashboard and your site configured under the world's easiest Web Content Management (WCM) and publishing environment 'Wordpress'.




If an error like the following shows up, that could be due to insufficient permissions for the user doing the installation. Its not a big problem ...
As it can be easily solved. Just select all content and copy in a file (which you will create now) in the documentroot/wordpress folder called wp-config.php. No need to restart any servers, just click the Run the install button as mentioned above and you should get to the next screen.

This is setting up login credentials for entering the wordpress admin section to manage the website. The admin user will be able to create additional users later on for any workflow capabilities for content publishing.

And that's it. Click log In to visit the admin dashboard for your website. You can of course configure any additional parameters from this dashboard.

Finally give permissions to apache user (_www by default) to write files in the wordpress directory.

sudo chown -R _www wordpress
sudo chmod -R g+w wordpress

Wednesday, March 21, 2012

phpmyadmin on MacOsX native


After enabling httpd (apache), php and installing mysql, the next step is to get a great tool like phpmyadmin working on apache.
Download phpmyadmin and extract it in the document root. I renamed the folder to phpmyadmin ofcourse.
cp config.sample.inc.php config.inc.php 
vi /Library/Webservers/Documents/phpmyadmin/config.inc.php

change 
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
to
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['AllowNoPassword'] = true;

chmod o+r config.inc.php
In my case, my server location and port number are the default localhost:3306 so I don't have much changes in the file. 

Now if you go to http://localhost/phpmyadmin/ you should see the login screen. Login with an existing user/passwd. If you don't have one, I would encourage you to create one via the GUI tool MySQL Administrator, which is natively delivered by MySQL.

Notes: The default connection type is set to Cookie and not Socket. So the browser's cookie settings need to be compliant. If socket is desirable then the path typically is /tmp/mysql.sock.