Tuesday, September 6, 2011

Multisite Drupal 6 Configuration


Use the following commands, here I have taken example of my system and "arvind" as a working directory.
1: cd /home/arvind/
2: mkdir drupal6
3: cd drupal6
4: mkdir logs
6: tar xvzf drupal-6.22.tar.gz
7: mv drupal-6.22.tar.gz htdocs
8: cd logs
9: cat > error.log
10: cat > access.log
11: pwd
ex:/home/arvindaithal/drupal6/htdocs
12: Go to cd /etc/apache2/sites-available
       Ex:arvindaithal@hoodota:/home$ cd /etc/apache2/sites-available/
       arvindaithal@hoodota:/etc/apache2/sites-available$ ls
              default  defaultbk  default-ssl
       arvindaithal@hoodota:vim default

    Make these changes.
<VirtualHost *:80>
        ServerAdmin webmaster@localhost

         DocumentRoot /home/arvindaithal/drupal6/htdocs/
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /home/arvindaithal/drupal6/htdocs/>
                 Options Indexes FollowSymLinks MultiViews
                 AllowOverride All
                 Order allow,deny
                 allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                 AllowOverride None
                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                     Order allow,deny
                     Allow from all
        </Directory>

         ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
         LogLevel warn

         CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
        <Directory "/usr/share/doc/">
            Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
            Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

Alias /test "/home/arvindaithal/drupal6/htdocs/"
Alias /testsite "/home/arvindaithal/drupal6/htdocs"
13: mkdir 127.0.0.1.test
14: cd ..
15: Change the rewrite base.
vim .htaccess
      ex:arvindaithal@hoodota:~/drupal6/htdocs$ vim .htaccess 
        Add this code(test refers your site name).
            RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/test/(.*)$
    RewriteRule ^(.*)$ /test/index.php?q=$1 [L,QSA]
16: sudo /etc/init.d/apache2 restart
17: 127.0.0.1/test/
18: Make writable settings.php and files.
19: Give database name and password and save.,
20: Copy settings.php and files in 121.0.0.1.testsite/
21: Save.
If you need further information please refer this link http://drupal.org/node/43816.

Monday, September 5, 2011

How to install Drupal in LAMP?


Steps:
1.Extract Drupal and place it in \var\www
         Go to terminal $ :~ wget http://ftp.drupal.org/files/projects/drupal-6.22.tar.gz
                                $:~ tar xvzf drupal-6.22.tar.gz
2.goto sites\default ,copy default.settings.php to settings.php
3.make one new folder called files in default
4.go to terminal : /var/www
5.cd Testsite
6.cd sites
7.chmod 777 settigns.php
8.chmod 777 files
9.Change the mysql user name and password in settings.php
10.Download the modules required.Extract it and place it in sites/all/modules
11.Downlaod the themes requires.Extract it and place it in sites/all/themes

How to add secure pages


Add module content Access.
Create a role for  ex:"site admin"
Create a user test
add content type page for site admin
create content ->page for site admin->test

step 1:Add the role
Step 2:Enable content access module
Step 3:Create a content type for "site admin".
Step 4:Access control and enable the permissions for admin,"site admin".
Step 5:Give the permissions in admin->usermanamgement->permissions
Step 6:Site building->themes->uncheck submitted by for "site admin" content type.(this is not mandatory)
Step 7:Create a view for secure area
Step 8:Check Node Post Date: desc
Step 9:Check Node Published: Yes
Step 10:Check Node type: secure area for site admin
Step 11:Give either the access restriction: roles or in sitebuilding-> blocks ->configure the securearea siteadmin block and give role specification site admin and save.
Step 12:Place this block wherever required.

How to change the Server password?


How to change the Server password?

Login to the server database,check the particular database and write a query

update users set pass=md5('new_password') where uid = 1 ;


Tuesday, March 22, 2011

Android Tablet with flash

Anyways its already a hotcake in the market.Some more crunch and cream for it.
Apple announced like ,it does not support flash but Android got the extreme support from the Adobe flash.Sounds great for the Android users. 

Android tablets will have the Flash 10.2 from now on. Availability of Flash 10.2 for Android Eclair, Froyo, and Honeycomb version has arrived now.Eclair and Froyo gets the production release where as the Honeycomb does get the beta release.Good performances with the mobile technology and hardware acceleration has made Adobe to reach into the Android Tablets.10.2 has released last month for the desktops.

Yet to see what Android grabs the other chances.



Wednesday, December 1, 2010

First contender for IPAD!!!!Features and specifications

Anyhow yesterdays blog never tells 'bout two contenders features and specifications.

As we have seen IPAD is a Apple's product it uses the  Iphone os where as the Samsung Galaxy uses Android 2.2. Froyo.
Well I'll not look into detail of the features,what a common man who handles the gadget will look on to the price,some technical features can see below.
There are some similarities in between,both uses flash memory to store the data.Apart from Os some differences we find as a whole but both products gives their best to the market.
Storage capacity of Ipad is 16GB,32GB and 64 GB when it comes to Galaxy 16 GB and 32 GB and micro sd slot.

If we compare between it in some cases Galaxy holds good and in some case Ipad.
Size of the Ipad is heavier where as Galaxy is just 1.5 pounds and sounds handy.
Regarding the media,Ipad doesn't support Flash that's the plus point in Galaxy.Galaxy also supports Divx,WMV.
If we list it up we can find many positive and negative points....Still I personally found as per the product release in them Galaxy looks good...   
But two companies are selling the products like hot cake.


Courtesy:
               1.www.apple.com/ipad
               2.http://galaxytab.samsungmobile.com/
 

Tuesday, November 30, 2010

First contender for IPAD!!!!

 Hot selling OS and applications made on this is reaching everywhere in the market from mobile to net books as of now.Day is not far to reach the other devices to run on it.....

First mobile to use the android device is HTC dream.To its back,many hand held devices of HTC,Asus,Acer,LG,Samsung used it and still its one of the fastest emerging technology in the market even though the great brands ever like Symbian,Blackberry,Iphone,Windows are there in the competition for it.

Ipad has been released to the market by Apple April 2010.Even though it has reached everywhere in US and rest of the world for the 1st and 2nd quarter in as a hot cake,first contender for it has been released by Samsung in September 2010 and its Samsung Galaxy Tab with android OS.

About the upcoming features of it  will see in the next blog......