Saturday, October 26, 2013

What to do if some error occurs in installation ?

What to do if some error occurs in installation of drupal ? Should we delete the whole folder and upload fresh one again ?

The answer is certainly NO. We just update settings.php file in /sites/default/ and the files in folder named 'files' in the same location as settings.php i.e., /sites/default/ while installing Drupal.

So, you already got the answer. :)

  1. Just delete the settings.php file and remove if there are any files in the 'files' folder.
  2. Copy default.settings.php to same location as settings.php
  3. Open your URL.
  4. Voila ! You will find your installation from start and its fresh too. 





If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

Mac file browser for Ubuntu


I know that many are fans of default file browser in Mac OS. The same is not available for Linux distros. But we have an experimental one. Here is how you install it.

  1. sudo add-apt-repository ppa:marlin-devs/marlin-daily
  2. sudo apt-get update
  3. sudo apt-get install marlin




If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

Sunday, October 20, 2013

Forbidden error before installing drupal

Before starting Drupal installation, if we type http://localhost/sitename in the adress bar and hit enter, sometimes we may get Forbidden error. This happens mostly on Linux boxes.

Cause    : Permissions
Solution : 

  1. sudo chmod -R 777 /var/www/
  2. sudo chmod 777 /var/www/sitename/sites/default/files






If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

[How to] Configure Apache for clean URLs


In Ubuntu, after installing apache2


  1. Open terminal and type a2enmod rewrite hit enter
  2. Type /etc/init.d/apache2 restart  and hit enter.
  3. Type chmod -R 777 /var/www and hit enter






If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

Time zone error in drupal

While installing drupal theme, I encountered an error saying " We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone " . It also suggested me to change the demo_profile.profile file in the Drupal installation folder.

Error Cause :  No timezone available in server system( it can be your personal PC on which Drupal site is hosted ).

Solution :
  1. Open /etc/php5/apache2/php.ini in a text editor like gedit.
  2. Search for the line " date.timezone ". # Mostly it will be in commented state
  3. Change it to " date.timezone = Your Zone " For ex: date.timezone = Asia/Kolkata 
  4. If you are unsure about what to put in place of time zone, goto this link. Search for the region and copy paste the relevant. 
  5. If you are on a hosting server, please ask your administrator to do this for you.


NOTE : This solution is for Drupal installation on a Linux platform.



If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

No snapshot displayed in drupal

While installing sample data of a specific theme, you may want to select the snapshot and click on Restore button. Sometimes, it may not display any options in the field of snapshot even though it asks   " Which snapshot would you like to restore? " and if you click on restore, you will get an error message " Snapshot field is required ".

The root cause of this error is permissions. It mostly happens in Linux platforms. The solution is nothing but giving full rights.

Just check the permissions on the folder sites/default/private and it's sub folders. Assign 777 i.e.,

Type  sudo chmod 777 /var/www/sitename/sites/default/private/  and hit enter in your terminal.





If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

Thursday, September 19, 2013

Virtual Box doesn't accept 64 bit OS

When I tried to install BackTrack 5(64 bit) on my Ubuntu machine (32 Bit), it just thrown an error message as shown below.

Error message : VT-x/AMD-V hardware acceleration has been enabled, but is not operational. Your 64-bit guest will fail to detect a 64-bit CPU and will not be able to boot.Please ensure that you have enabled VT-x/AMD-V properly in the BIOS of your host computer.

I found 2 types of solutions and applied both of them on laptop. Now it just works fine. They are explained in steps below.

Step 1 : Shutdown the PC(not Restart)
Step 2 : Turn on the PC and goto bios settings
Step 3 : Mine is Lenovo with Intel technology. It has Intel Virtual Technology option in configuration menu (For some PCs .. this will be under advanced settings)
Step 4 : Enable it (Its for enhancing the support to software based virtualisation solutions)
Step 5 : Save and Exit of bios
Step 6 : Continue with your installation of guest OS in virtual box.




If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged