v WebsiteSupport: Drupal
Showing posts with label Drupal. Show all posts
Showing posts with label Drupal. Show all posts

March 13, 2011

Install: LAMP web server and Drupal 7 in Ubuntu

Installing a web server is very easy in Ubuntu (I use ubuntu10.10), just enter a few lines in the terminal: There is no need to install and configure each part of a LAMP (Linux-Apache-MySQL-PHP) installation individually. You can also install other programs this way. The downside is that all components are installed automatically, and not reviewed by you. But as long as you only use the web server locally (localhost or 127.0.0.1), and don't open up for access from the Internet, it should be safe.

Installing LAMP web Server

To install a LAMP web server, enter this command in a terminal and enter your password:
sudo tasksel install lamp-server

After a while the installation process will prompt you for a password for the MySQL server. Make sure that the CAPS Lock button is not activated! If all goes well, the installation will return to the terminal, and the web server is installed. Test this by going to your browser and enter http://localhost/ in the address bar. If the installation was successful, you will see an "It works!" message.


Update php.ini - allow big files, avoid memory issues

To allow importing large sql dumps through phpmyadmin, and avoiding time outs during demanding requests, it is also necessary to update the php.ini file of the Apache server. To open up the php.ini in gedit, enter this in your terminal:

gksudo gedit /etc/php5/apache2/php.ini

...and update the values five places, where it says:

max_execution_time = 120
max_input_time = 90
memory_limit = 96M
post_max_size = 150M
upload_max_filesize = 150M
session.gc_maxlifetime = 14400


Fix Apache Error "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName"

Open the httpd.conf file:

sudo gedit /etc/apache2/httpd.conf

The httpd.conf file is blank, so add the following to the file, and then save it:

ServerName localhost
Create a MySQL database

To create a database in the MySQL database, log in to the MySQL shell:

mysql -u root -p

Create a database, for a Drupal installation in this example, type in the MySQL shell:

CREATE DATABASE drupal7;

and leave the shell:

quit

If you typed in the password(in this example, "ROOT") accidentally with caps lock on, this is how you change it to something safer. "root" is NOT recommended as password. From the terminal:

mysqladmin -u root -p'ROOT' password 'yournewpassword'
Install phpmyadmin

You can also create and administer your MySQL databases through phpmyadmin:

sudo apt-get install phpmyadmin

Administer your databases at http://localhost/phpmyadmin/
Install and enable mod_rewrite

Install mod_rewrite, to get nice URL's:

sudo a2enmod rewrite

Enable mod_rewrite:

gksudo gedit /etc/apache2/sites-available/default

...and change "AllowOverride None" to "AllowOverride All", around line 11:


Options Indexes FollowSymLinks MultiViews
AllowOverride All

Restart the Apache web server:

sudo /etc/init.d/apache2 restart

Installing Drupal 7
1. Start nautilus up with this command:

gksudo nautilus

...and navigate to the /var folder, right-click on the www folder, click 'Permissions' and set owner and group to your own user name. This will prevent problems with automatically created folders in the future.

2. Download and extract Drupal 7 from http://drupal.org/. Rename the folder to drupal7 and move it to /var/www/ where the web sites of the Apache web server reside. Result: /var/www/drupal7

3. Create the files folder, like this: /var/www/drupal7/sites/default/files. Right-click the 'files' folder, select 'Properties' -> 'Permissions' and under 'Others', set 'Folder Access' to 'Create and delete files'

4. Make a copy of the default.settings.php file in /var/www/drupal7/sites/default and rename it to settings.php. Right-click settings.php, select 'Properties' -> 'Permissions' and under 'Others', set 'Folder Access' to 'Create and delete files'

NOTE: Add an exception in Firefox, if you have disabled "Accept cookies from sites" and unblock the new site if you have a script blocker activated in your browser.

If all went well, you should now be able to enter http://localhost/drupal7 and install Drupal.

Setting up a virtual host


To set up a virtual host, allowing you to enter just http://drupal7/ in stead of http://localhost/drupal7/:

sudo gedit /etc/hosts

...and add:

127.0.0.1 drupal7

To define where the Apache web server should be looking for the files:

gksudo gedit /etc/apache2/httpd.conf

...and add:


DocumentRoot /var/www/drupal7
ServerName drupal7


As always, when you change the set up of the Apache server, restart it:

sudo /etc/init.d/apache2 restart

Move apache webroot from /var/www to your /home directory and move MySQL folder

For back up reasons and to have a more "normal" work flow when adding files to your web site, you can move the apache webroot from /var/www to /home/USERNAME/.www -- the .www folder will be hidden until you press Ctrl+H to unhide it:

gksudo gedit /etc/apache2/sites-available/default

Change DocumentRoot /var/www to DocumentRoot /home/USERNAME/.www

If you have set up a virtual host:

gksudo gedit /etc/apache2/httpd.conf

...and change to: DocumentRoot /home/USERNAME/.www
From http://gullele.wordpress.com/2010/08/27/changing-default-apache-webroot-in-ubuntu/

Likewise, to move MySQL from /var/lib/mysql to /home/USERNAME/.mysql follow this guide: http://ubuntuforums.org/showthread.php?t=897354
 
Install Drush

With Drush you can install modules and update Drupal from the command-line: http://drupal.org/project/drush

wget http://ftp.drupal.org/files/projects/drush-6.x-3.3.tar.gz
tar xvzf drush-6.x-3.3.tar.gz
sudo chmod 555 drush/drush
sudo chown -R root:root drush
sudo mv drush /usr/local/
sudo ln -s /usr/local/drush/drush /usr/local/bin/drush
sudo drush dl drush_make

If you get an "exec: 53: php: not found" error after running the last line ("sudo drush dl drush_make") you might have to install the PHP command line interface, with

sudo apt-get install php5-cli

Great work !! If there is any problem then do post the problems below. I will try to answer your problem.

March 12, 2011

Drupal 7: Basic Theming with Zen and CSS

This screencast gives an introduction to creating a subtheme of Zen and modifying it with CSS.


Thanks to  for the video.     

Drupal's "easy button" for better keyword research


Auther:  Colin Alsheimer

Keyword research, one of the most essential facts of good search engine optimization can also be one of the easiest tasks to do wrong. Here are five ways you can improve the effectiveness of your keyword research. Then, I'll show you Drupal's "easy button" for better keyword research.

1. Analyze your content for keyword ideas
One of the primary objectives for the search engines is to serve the most relevant content for a particular users query. Search engines determine what web content is about through a variety of factors (this is what we spend time optimizing in SEO), some of these factors include your meta page titles, keyword usage within your page copy, and backlinks to your website. So it would make sense that you would want to begin your keyword research by first figuring out what keywords and concepts are already prevalent on your webpage.

You can do this in two ways. You could go through your content by hand, and pick out what you believe to be the most relevant or most used keywords on the page. Or, you can put it in the hands of web software that can make this analysis for you. In Drupal, both the Alchemy module and Scribe SEO module can help you with this analysis. Alternatively, you can try the Scribe SEO module demo, and input your own content to analyze.

Once you find your keyword ideas, plug them into a keyword research tool like Wordtracker to get more related keywords.

2. Start broad
When you're first starting keyword research, you always want to begin with broad (root) keywords, then work your way to long tail variations. For example, if your website is an e-commerce retailer for custom bicycle seats, you may want to start your keyword research with phrases like "bike", "bicycle", or "bike seats".

3. Use long tail modifiers
As you do your keyword research, you'll start to see variations of your primary (root) keyword pop up. For example, your search for the phrase "bicycle" might return results for "used bicycle for sale" or "buy bicycles online". "Used", "for sale", "buy", and "online" would all be considered modifier keywords, and the entire phrase (used bicycle for sale) is what we would consider a long tail keyword. A long tail keyword by itself provides less traffic then your root keywords (bicycle), but in aggregate, there are many more relevant long tail searches then there are for your root keywords. Long tail keywords tend to bring more qualified traffic, convert at higher rates, and are less competitive.

4. Look at your competitors for inspiration
Use your competitors as a guide for your keyword research efforts. Look at their meta page title tags, headers, and page copy to see what they may be trying to optimize for. Sometimes this can even lead to inspiration for a new niche market to go after.

5. Look for uncompetitive niches
One of the biggest mistakes people make in keyword research is assuming it's about finding the words with the most possible searches. Really, good keyword research is about finding those keywords that not only get a large volume of searches, but are also uncompetitive, and deliver qualified traffic. I frequently tell clients that I'd rather they get 500 qualified visitors per month who convert, then 5,000 who don't.

6. Localize your keywords where possible
One of the easiest ways to long tail your target keywords is to add local modifiers to them. For example, instead of optimizing just for the phrase "website design company", we can add the "Dallas" to the phrase, making "website design company dallas", and be optimized for local searches as well.

The Drupal Easy Button!
As promised, here's the easy button for keyword research in your Drupal website. Our Keyword Research module will help you easily perform keyword research right within the page you're trying to optimize. Be sure to combine it with the other modules found in the content analysis suite to unlock the true power of the keyword research module. 

May 06, 2010

Top 10 Drupal Modules

1. Administration menu

" Administration menu module provides a theme-independent administration interface (aka. navigation, back-end) for Drupal. It's a helper for novice Drupal users coming from other CMS, a real time-saver..."


2. Content Construction Kit (CCK)

"The Content Construction Kit allows you to add custom fields to nodes using a web browser. Drupal 7 and Fields in Core Most of CCK has moved to core in the Drupal 7 version. The D7 version of CCK contains..."


3. FCKeditor - WYSIWYG HTML editor

" WYSIWYG editor This module allows Drupal to replace textarea fields with the FCKeditor - a visual HTML editor, sometimes called WYSIWYG editor. This HTML text editor brings many of the powerful WYSIWYG..."


4. Views

"The Views module provides a flexible method for Drupal site designers to control how lists and tables of content (nodes in Views 1, almost anything in Views 2) are presented. Traditionally, Drupal has..."


5. Pathauto

" Description: The Pathauto module automatically generates path aliases for various kinds of content (nodes, categories, users) without requiring the user to manually specify the path alias. This allows..."


6. Backup and Migrate

"#D7CX: I pledge that Backup and Migrate will have a full Drupal 7 release on the day that Drupal 7 is released. Backup and Migrate simplifies the task of backing up and restoring your Drupal database or..."


7. Token

" Tokens are small bits of text that can be placed into larger documents via simple placeholders, like %site-name or [user]. The Token module provides a central API for modules to use these tokens, and..."


8. Lightbox2

"The Lightbox2 module is a simple, unobtrusive script used to overlay images on the current page. It's a snap to setup and works on most modern browsers. The module places images above your current page,..."


9. Webform

"This module adds a webform nodetype to your Drupal site. Typical uses for Webform are questionnaires, contact or request/register forms, surveys, polls or a front end to issues tracking systems. Submissions..."


10. CAPTCHA

" A CAPTCHA is a challenge-response test most often placed within web forms to determine whether the user is human. The purpose of CAPTCHA is to block form submissions by spambots, which are automated scripts..."

Drupal Flash Node Module (flashnode) and SWF Tools (swftools)

ite configuration > Flash node settings

Creating Flash Content

To create Flash content simply go to Create content > Flash
In the flash file click on browse, select your video and click on save.

You might receive a warning telling us that we don’t have a working player right now, this is because embed media field module allows you to upload the file but it doesn’t have a player, so we need to download  a module called SWFTools(http://drupal.org/project/swftools), after we copy it to the the modules directory, go to Administer > Site configuration and select SWF Tools and save configuration.

Now you are ready to post flash video content

Original Post: http://www.oshyn.com/_blog/Web_Content_Management/post/Drupal-Flash-Node-Module/

November 04, 2009

Why to use Drupal for your websites?







Here are 10 reasons why you should seriously be considering Drupal for your SEO-based Web development projects.

1.Advanced URL Control — Unlike WordPress, Drupal gives you precise control over URL structure. Each item of content in Drupal (called a node) can be given a custom URL (called a URL alias). In WordPress you are generally limited to one type of permalink URL for all posts. You can override the "post slug", but it's much less precise than Drupal's URL aliases. You can also automate custom URL structures for each different content type with the Pathauto Module. The Global Redirect Module will automatically 301 redirect the internal Drupal URL to the custom URL alias. Unlike many other content management systems, Drupal's content pages have nice clean URLs.

2.Custom Content Types and Views — You can use the Content Construction Kit (CCK) and Views Modules to create new content types and create advanced custom views for them without writing any code. A few examples of "content types" are "blog posts", "news stories", "forum posts", "tutorials", "classified ads", "podcasts". You can create as many custom content types as you would like and display them in many different ways. Most content management systems would require writing code to accomplish these tasks, but there is no programming knowledge required to do them in Drupal. Here is a quick & basic intro to Views called How To Build Flickr in Drupal.

3.Revision Control — You can configure Drupal to save a new version of your pages every time they are editing. That means that you can go back to view or revert old revisions if you want.

4.Taxonomy — Drupal has a powerful taxonomy (category) system that allows you to organize and tag content. Each Drupal "vocabulary" (set of categories) can be limited to certain content types. For example, you could have blog contents that allowed free tagging (similar to WordPress categories), while your news section might have a different vocabulary (set of categories) that could only be selected from an existing list of categories. You can also have hierarchical categories, with single or multiple parent categories. Drupal's advanced taxonomy features, combined with CCK and Views, allows you to easily target all of those long-tail keywords that you researched in Wordtracker.

5.User Management — Drupal was designed for community-based Web sites and has strong user role and access control functionality. You can create as many custom user roles with custom access levels as you need. For example you could create the following roles, each with different levels of access to your features: "anonymous visitor", "authenticated user", "moderator", "editor", "webmaster", "admin". You can keep the advanced user management features (like multiple blogs) turned off if you don't want them, enabling them later if your site grows to a point where you would like to add more community features.

6.Page Titles and Meta Tags — Drupal's Page Title Module gives you custom control of your HTML

7.Excellent Documentation — Documentation includes the official handbooks, the massive API Reference, numerous tutorials, blogs, videos, and podcasts, and the excellent new book Pro Drupal Development. There is even a Drupal Dojo community where you can learn how to become a Drupal ninja.

8.PHP Template — Drupal uses the PHP Template theme engine by default. Theming in Drupal is easier than theming in WordPress and doesn't necessarily require any PHP knowledge. Drupal's Theme Developer Guideis a great resource. I also recommend reading Chapter 8 in Pro Drupal Development.

9.Drupal Cookbooks — If you want a feature that is not built into Drupal by default, chances are that someone has already written a code snippet for it and posted it in the code snippets section of Drupal.org.

10.Large and Friendly Community — With so many major sites using Drupal, it's not going away soon. For an idea of the size of the developer community, take a look at the long list of community-contributed modules. The Drupal forum is highly active and are a great place to get your Drupal questions answered. You can also find Drupal support on IRC chat on channels #drupal-support and #drupal-dojo. To meet other Drupal users in your area, visit Drupal Groups.

There are other open-source alternatives to Drupal, but here are a few reasons that Drupal is better:

Joomla - It's not as search engine friendly out of the box as Drupal.
Plone - It''s powerful, but Plone is written in Python and has certain server requirements. It is not as easy to extend as Drupal, and it's harder to find people who know Python than who know PHP. Plone runs on the powerful, but complex, Zope 2.
WordPress - WordPress is excellent, but if you need something more heavy-duty or are building a site that you might want to extend in the future you should be considering Drupal.
To get started with Drupal, download the latest version and start with this beginner's guide as well as theofficial handbooks. Drupal will run on most shared hosting packages.

Sample Drupal Sites

Drupal is very powerful and can be used for building large, complex sites. Some example Drupal sites are:


Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes

HTML Hit Counter