Drupal (39 Articles)

I get an error when I try to install modules in my Drupal.

If you receive an error message like the one provided below while trying to install a module to your Drupal, there is a simple solution for it: The specified file temporary:// filename could not be copied, because the destination directory is not properly configured. This may be caused by a problem with file or directory permissions. More information is available in the system log. The issue is caused by an incorrect setting of your temporary directory, which is being set during the installation process. You can fix this issue by going to Configuration > Media > File System and change the Temporary directory value from /tmp to tmp . After this you will be able to perform the installation of your module.…

How to fix the Drupal cron when halted?

If your Drupal cron fails to run then most probably the process is stuck and needs to be fixed manually. You will have to open the common.inc file in a text editor (for example through cPanel-> File Manager ). It is located in the includes sub directory of your Drupal root folder. Change the following line from: $semaphore = variable_get('cron_semaphore', FALSE); to $semaphore = FALSE; After that save the modified file and go to the Reports->Status report page in your Drupal admin area. Run the cron manually. After the successful execution you may revert the changes you made in the common.inc file.…

How to disable comments in Drupal

Very often Drupal (especially outdated versions) has problems with Spam bots which flood its comment modules. The first thing to do in this case is to disable the comments modules until you clean all the Spam posts. This can be done in two ways: If you have admin access to Drupal log in and go to  Administer - Content - Content Types. Then edit the content type of your choice and make sure comments are set to off by default. Alternatively the above can be done directly by executing the following query in your database: UPDATE system SET status = '0' WHERE filename =  'modules/comment/comment.module'; When you decide to re-enable the module simply issue the reverse query: UPDATE system SET status = '1' WHERE filename =  'modules/comment/comment.module'; A good choice for fighting spam bots is using a captcha module in combination with Akismet. This way you ensure that even if a bot passes your captcha module, Akismet will check the post against a huge spam database. Only after that the post will appear.…

What is streaming/broadcasting?

Streaming is a term often used to define the display of video and audio media in real time. Basically, there are two types of streaming. The "real" streaming requires a special service which broadcasts the audio/video information in real time. The player on the visitor's computer interprets this stream of data and visualizes it immediately. Such technology requires powerful dedicated servers because it needs a lot of resources to run correctly. You need such server if you want to broadcast live video for example. Most of the streaming server technologies record, encode and broadcast your videos in real time making them suitable for websites of TV stations, live shows, or websites like YouTube.com or DayliMotion.com that have millions of visitors playing and uploading videos. The HTTP streaming or the "pseudo streaming" is a suitable workaround for people who don't want to spend a lot of resources and money on expensive broadcasting servers. The effect of live streaming is achieved by buffering part of the downloaded video file and playing it while the rest of the file is still being downloaded. In this case the TCP protocol is used. Although TCP is secure (there are a lot of checks for packet loss in this protocol), it is not suitable for video streaming in which the loss of data is normal and expected. Modern Flash, QuickTime and RealMedia players combined with a fast server, however, manage to play such videos without many problems and to minimize the buffering time. If you want to allow your visitors to play simple videos on your website, you do not need a real streaming server. The same result can be achieved with pseudo streaming. The most common use of this streaming method is to display flash movies which are small in size and fast to download and play. Below, you can find extensions for the most popular CMS applications that will allow you to play such videos on your website: Joomla Video Extensions Players for Drupal Flash Video Player for Wordpress On the other hand, if you want to show live shows on your website or to stream long videos, you need a real streaming server. Note that such servers generate enormous bandwidth and a lot of I/O load on your server.…

How to display FeedBurner feeds on your website?

FeedBurner provides you with a lot of useful statistics about the usage of your feeds. Using FeedBurner is simple and free. In order to use FeedBurner, you should go to the official website and register for the FeedBurner service. Follow the detailed instructions to set up your FeedBurner account. All you have to do then is set your application to display the links to your feeds through the FeedBurner server. Your feeds' URLs should look like: http://feeds2.feedburner.com/something There are FeedBurner extensions available for the most popular CMS applications: If you want to set up WordPress to display its feeds with FeedBurner, you can use the FeedBurner FeedSmith plugin or a similar extension.  If your website is created with Joomla, you can choose one of the many available modules and components that allow you to use FeedBurner. For more information and download links, check the official Joomla extensions directory .  In case you use Drupal, you can use the FeedBurner module to display your feeds with FeedBurner. …

How to enable RSS in Drupal?

RSS stands for Really Simple Syndication - a web feed format for publishing frequent updates of site content such as news, blog posts, etc. Publishers benefit from RSS feeds because this lets them syndicate their site content automatically. Readers benefit from web feeds by getting timely updates when something new is posted on their favorite websites. Drupal comes with a built-in RSS module called Aggregator. To configure your RSS feeds, follow the steps below: Step 1. Log in as administrator and go to Administer > Site Building > Modules . Step 2. Check the Enabled box for the Aggregator module and click Save Configuration . Step 3. Go to Administer > Content management > Feed aggregator . Step 4. Click Add feed and type the feed's title and URL. Step 5. Click Save to publish your new RSS feed. Step 6. Run the Drupal cron in order to update your feed.  For the feeds to be regularly updated, your Drupal cron should be properly configured and executed regularly.…

How to change the page content order in Drupal?

By default the latest content in Drupal is displayed on the top of the page.   If you would like to have a content item displayed above others, you can use the sticky option. To stick a content item, log in to your Drupal admin area and go to:   Administer -> Content management -> Content   Choose Edit for the article you wish to "stick". You will find the sticky option under Publishing options . Check the " Sticky at top of lists " option and click the save button.   If you would like to change the ordering of already published items, you will need to change their publish date. You can do so again from:   Administer -> Content management -> Content   Choose Edit for the desired article then choose Authoring information . Edit the " Authored on: " field accordingly. Note that content items with the most recent dates will be displayed on top of the pages.   Example: If you have 2 articles that you would like to have displayed always on the top of a page, both of them should be set as sticky. Then, if you would like the one you have posted first to be displayed on top of the other, you will have to change its published date to a more recent one.…

Promote your site with social bookmarking

Social Bookmarking allows visitors to share quality links through public websites. This means that when a visitor likes your site, he / she can easily recommend it in his / her favourite social bookmarking portal. Webmasters strongly encourage such bookmarks in order to accumulate additional traffic. If you'd like to achieve this yourself, place a web link which directly submits your site to the popular social bookmarking site. We recommend the following social bookmarking plugins for the most popular web applications: - Joomla - Drupal - WordPress - MediaWiki - PhpNuke Alternatively you can manually implement a social bookmarking button by using code from this popular site .…

How to configure Drupal to work with parked domains?

If you cannot log into your Drupal application using your parked domain, you should change the following line in the sites/default/ settings.php file: $cookie_domain = 'yourdomain.com'; to $cookie_domain = $_SERVER['HTTP_HOST']; This way Drupal will send the proper cookie information, matching the domain name you have used to access it.…

How to transfer your website to another host

Basically, moving a website to another host consists of the following steps: 1. Moving the website's files. 2. Moving the website's database(s) (if it uses any). 3. Reconfiguring your application(s) to work at the new location. 4. Pointing your domain's DNS to the new host. 1. The most convenient way to transfer your website's files to your new web hosting account is through FTP. You can connect to your other hosting account and download the files locally. Then you should upload them to your hosting account's main folder (usually public_html, www or httpdocs ). More information on how to use FTP can be found in our FTP tutorial . 2. Transferring the databases is a little bit more complicated. You have to export the information from your old hosting account, create a new database in your current hosting account and import the information in it. For detailed information on how to import/export databases you can refer to this tutorial . 3. How to configure your website to work from its new location in most cases depends on the speciffic application you are using. For step by step instructions on how to reconfigure some of the most popular applications, you can refer to these articles: How to reconfigure Joomla 1.5 How to reconfigure Drupal How to reconfigure WordPress How to reconfigure osCommerce How to reconfigure ZenCart How to reconfigure CubeCart How to reconfigure Mambo How to reconfigure CS-Cart How to reconfigure SMF How to reconfigure CRELoaded How to reconfigure phpBB2   4. Finally, you have to change the nameservers for your domain name to those of your new host. Information on how to find your DNS records can be found in this article .…

How to protect Drupal from spam?

In order to protect your Drupal application from unwanted messages, you can use the Akismet module for Drupal. This module is based on the Automattic Kismet (Akismet) project , which is dedicated to fighting spam. The module is installed as any other Drupal module . Once you enable Akismet, you can configure it from your Drupal admin area > Administer > Site Configuration > Akismet . In order to use Akismet, you should enter your WordPress.com API  Key in the corresponding field.…

How to enable caching in Drupal?

In order to enable caching in Drupal, log in as administrator and go to Site Configuration > Performance . Under Caching mode: select Normal (recommended for production sites, no side effects) . Under Block cache : select Enabled (recommended ). Click Save configuration to save the changes.…

How to optimize Drupal for better performance?

Drupal is one of the most popular CMS applications, offering stability and performance for almost any kind of site. However, if you don't maintain it properly, it can become slow. Here are some tips on how to optimize your Drupal: Enable caching for your Drupal . Optimize your Drupal database .  Log in to your Drupal admin area and go to Site Configuration > Performance . Besides enabling cache, you should also enable Page compression , Optimize CSS files and Optimize JavaScript files .  If your Drupal is hosted on a dedicated solution, you can modify the global MySQL settings for better performance .  Check your website using this online tool . It will give you valuable information on what modifications can be made in order to improve its performance.  Disable/remove all modules/blocks you are not using. …

CMS application comparison: Joomla vs Drupal

Joomla and Drupal are two of the most popular CMS (Content Management System) applications available. They both offer similar features, but, naturally, each one has its strong and weak points. We have summarized the most important of them below: Joomla : pros : - a lot of beautiful free and commercial templates; - very user-friendly and easy to use; - a lot of free and commercial modules/plugins/component; - a large dedicated community with great support; - you don't have to know much to create a really good-looking and functional website; - very easy to upgrade; cons : - SEO  could be better; - the more components/plugins/modules you install, the more unstable the application becomes; - Joomla-based websites are a common target for hackers; Drupal : pros : - very flexible configuration; - great SEO; - very well organized user and group management; - solidity and performance - Drupal-based websites do not require much server resources and run faster; cons : - requires more time getting used to; - not so user-friendly;  - fewer themes with less eye candy; SiteGround provides the best Joomla hosting , as well as the best Drupal hosting environment and we will help you with any questions/problems you may have regarding your CMS application.…

How to optimize a Drupal website hosted on a dedicated solution?

The global MySQL settings on a dedicated solution can be modified to achieve better performance for your website. The recommended settings in the /etc/my.cnf file for a Drupal-based website are: max_connections = 800 max_user_connections = 800 key_buffer = 36M myisam_sort_buffer_size = 64M join_buffer_size = 2M read_buffer_size = 2M sort_buffer_size = 3M table_cache = 1024 thread_cache_size = 286 interactive_timeout = 25 wait_timeout = 1800 connect_timeout = 10 max_allowed_packet = 1M max_connect_errors = 999999 query_cache_limit = 1M query_cache_size = 16M query_cache_type = 1 tmp_table_size = 16M If you are on a dedicated server, you will have root access to your server and you will be able to make these changes yourself. If you are on a Cloud hosting solution (VDS), please post a support ticket to have our support team make the necessary changes for you.…

How to optimize my Drupal database?

There are two easy ways to optimize the tables in your Drupal database. The easiest way is to install the DB Maintenance module. Information on how to install a Drupal module is available in our Drupal tutorial . After the module is installed and activated, you can access it from your Drupal admin area >  Administer > Site configuration > DB maintenance . Select the tables which you wish to optimize and click Optimize now . The other, slightly more complicated way, is to create a php script with the sql query. The code you should include in the php file should be similar to this: <?php $db = mysql_connect('localhost',' user ',' password '); if(!$db) echo "cannot connect to the database"; mysql_select_db(' user_drpl1 '); $result=mysql_query('OPTIMIZE TABLE accesslog,cache,comments,node,users,watchdog;'); echo mysql_error(); ?>   Change user , password and user_drpl1 to reflect your Drupal MySQL username, password and database. This will optimize the tables accesslog, cache, comments, node, users and watchdog . Feel free to add or remove tables from the query. Once you have inserted the code, save the file. For the purposes of this example, we'll assume that the file is called optimize.php . Once the file is saved in your Drupal folder, you can execute it directly from a browser: http://www.yourdomain.com/drupal/optimize.php If you get a blank page without any errors, this means that the tables have been successfully optimized :) You can also set a cron job in order to execute the optimization script at regular intervals. The cron job you set should be similar to this: php /home/user/public_html/drupal/optimize.php Make sure you don't set the cron to be executed too often. Once a week should be more than enough to keep your tables optimized :)…

How to transfer my Drupal from one host to another?

Transferring your Drupal application includes copying your files and database and modifying the  settings.php file in the sites/default folder. The most important setting which should be modified in settings.php is: db_url - the MySQL details for your Drupal; the format you should follow is mysql://username:password@localhost/databasename , e.g. : $db_url = 'mysql://user_drpl1:password@localhost/user_drpl1'; You should also make sure that the RewriteBase rule in the .htaccess file is correct. For example, if your Drupal is placed in your account's main public_html folder, the RewriteBase rule should be: RewriteBase / …

How to access the Drupal admin login page?

If the login module is disabled on your Drupal front page, it is useful to know the path to the Drupal admin login page. The path is: http://domainname.com/?q=user If you're hosted with us and you experience such Drupal-related issues, please do not hesitate to contact our technical support team via your Help Desk. We will happily further assist you and provide you with all the necessary…

What Drupal resources do you recommend?

The official Drupal website.   The official Drupal documentation.   The official support forum of Drupal.   The official Drupal extensions.   SiteGround Drupal tutorials.   SiteGround free professional Drupal templates.   …