Explore information related to drupal


Drupal 7 "website encountered an unexpected error" - Fix it Now ?


This article covers method to resolve Drupal 7 "website encountered an unexpected error" ?


To find out what the real problem is,

  1. Add to settings.php: $config['system.logging']['error_level']='verbose';
  2. Also, In phpMyAdmin,delete some respective config files in the database.
  3. Just click on "config" and look for the reported files.

Read More



Drupal notice unserialize() error at offset - Fix it Now ?


This article covers method to fix 'drupal notice unserialize() error at offset'. Basically, this error happens when loading an improperly serialized array from the variables table. 

Read More



Drupal SMTP error "could not connect to smtp host" - Fix it Now ?


This article covers methods to resolve Drupal SMTP error "could not connect to smtp host".

Basically, this error happens as a result of improper Drupal SMTP settings such as wrong SMTP server name, wrong port settings, and so on. 


To resolve this SMTP error, follow the steps given below:

1. Login into myaccount.google.com.

2. Click on the link connected apps & sites.

3. Allow less secure apps" to "ON" (near the bottom of the page).


Also, you can try the following to fix this SMTP error,

1. System access configuration

Need to allow access for firewall or network to send mail for linux, windows and mac.

Following command set permission for linux.

i.  iptables -I OUTPUT -p tcp --dport 465 -j ACCEPT

ii.  iptables -I OUTPUT -p tcp --dport 587 -j ACCEPT


2.  SMTP Authentication Support

Set your gmail and google app information.

If you want to use Gmail as SMTP server,

SMTP server: smtp.gmail.com

SMTP port: 465

Use encrypted protocol: Use SSL 

SMTP Authentication

Username : youremail@gmail.com or ouremail@yourGoogleAppsDomainName.com(google app)

Password : yourpassword

Note : Remove leading and trailing space from "SMTP Authenitcation Username" if is there otherwise it's not authenticate your request to gmail.

Read More



Drupal 406 error - Fix it Now ?


This article covers methods to resolve Drupal 406 error.

There are many errors that you may see as you visit different websites across the web.

One of the more common ones is the 406 – Not Acceptable error.

Cause for Drupal 406 error:

In regards to a site on your hosting account, the cause of the 406 error is usually due to a mod_security rule on the server.
Mod_security is a security module in the Apache web server that is enabled by default on all hosting accounts.
If a site, page, or function violates one of these rules, server may send the 406 Not Acceptable error.

To prevent Drupal 406 Not acceptable error:

Mod_security can be turned off. You can also disable specific ModSecurity rules or disable ModSecurity for each domain individually.
If you would like mod_security disabled you can disable mod_security via our Modsec manager plugin in cPanel.

Read More



Install Drupal with Docker Compose


This article covers how to install Drupal with Docker Compose. Basically, installation process of Drupal can be simplified with the use of tools like Docker and Docker Compose. Docker Compose can be used to create a Drupal installation with an Nginx web server. 


Drupal and Docker needs the following to work:

1. HTTP Server with PHP: We can either use Apache with PHP or Nginx with PHP. I'm going to demonstrate building the Docker using Apache with PHP. A Drupal docker can also have services like SSH (for drush alias to work) and some important utilities like vim

2. SQL Server: Choose your favourite SQL Service (MySQL or PostGRESQL or SQLite). I'm going to be using a MySQL docker. The idea behind using a separate docker for SQL is so that you have a freedom to choose an internal SQL service or an external SQL Services like Amazon RDS without affecting your Drupal environment.


The need to Use Docker to Run Drupal:

Using the Drupal and PostgreSQL images from Docker Hub offers the following benefits:

1. The configuration of the software has been done for you, which means that you don’t need to follow a step-by-step process for each application to get them running on your system.

2. Updating your software is as simple as downloading the latest images from Docker Hub.

3. Images and containers are self-contained, which means that they are easy to clean up if you decide to remove them.


How to Set Up Drupal ?

1. Create a new directory in your home folder called my_drupal and cd into it:

mkdir ~/my_drupal/

cd ~/my_drupal/

2. Create a file named docker-compose.yml in this folder and add the following contents. Set your own password for the POSTGRES_PASSWORD option.

3. From the my_drupal directory, start your Docker containers:

docker-compose up -d

4. The Docker containers will take a minute or two to start up Drupal and PostgreSQL. Afterwards, you can visit your Linode’s IP address in your web browser .

5. On the Set up database page, select PostgreSQL as the Database type and enter the following values:

Database name: postgres

Database username: postgres

Database password: The password you set in the docker-compose.yml file

Host (under Advanced Options): postgres

6. When creating your Drupal user, be sure to enter a password that is different from your PostgreSQL password.

Read More



WordPress vs Joomla - Which is Better


This article covers the comparisons and differences of both WordPress vs Joomla. Basically, both WordPress and Joomla is an option for web hosting providers as options for web development tools. 


Choosing a Content Management System (CMS) is an important decision that can have huge repercussions for your website. 

There are a number available, each with their own pros and cons, and fanatical fanbases pulling for their chosen platform. 


A detailed comparison (WordPress vs Joomla):

1. Search engine optimization

If we compare the Search Engine Optimization (SEO) capabilities of both platforms out of the box, Joomla takes a slight edge due enabling its users to set meta descriptions and keywords for new articles.


2. Security

Due to its popularity, WordPress has a giant target on its back when it comes to security vulnerabilities.

Read More



Drupal Ajax error 500


This article will guide you on steps to resolve drupal #ajax error 500 which occurs due to various reasons like insufficient memory, bad permissions, and broken modules.

An internal server error happens when the server encounters a situation it doesn't know how to handle. 

Any syntax #errors will cause a 500 Internal Server Error message to be displayed instead of your #website. 

To confirm whether a misconfiguration . htaccess is the cause of the 500 Internal Server error, either remove or rename the . htaccess file temporarily and then try to reload the page.

To Resolve 500 Internal Server #Error in #Drupal:

1. Debugging the Issue. The first step is to make sense of the situation and try to make sense of the error.

2. Check if the Admin Works.

3. Revert Recent Changes.

4. Audit Your Plugins/Extensions/Modules.

5. Check File Permissions.

6. Increase PHP Memory Limit.

Read More



Drupal Unexpected Error


This article will guide you on how to fix #drupal unexpected error. Drupal error occurs due to many reasons that include corrupt #database, non-compatible modules installation, cache, #PHP configuration, custom codes, and so on. 

1. An "Internal Server Error" is an #error on the web server that you're trying to access. 2. That server is misconfigured in some way that is preventing it from responding properly to what you're asking for. 

3. An "Internal Server Error" often occurs due to: Misconfigured Drupal core file or folder read and write permissions.

To clear cache in #Drupal:

i. In the Manage administrative menu, navigate to Configuration > Development > Performance (admin/config/development/performance).

ii. Click Clear all caches.

iii. A message saying the cache has been cleared appears at the top of the page.

Read More



Install Drush on Drupal 8


This article will guide you on steps to #install #Drush in #Drupal 8. Drush is a command-line utility to manage Drupal #CMS. For this installation of the Drush scripting interface, we will be working primarily on the command line. This is because Drush is a command line interface, and all of the commands you will use will need to be issued from there.

Drush is the command line shell and Unix scripting interface for Drupal.

To Install a global Drush via #Composer:

1. Install Composer globally.

2. Install the cgr tool following the instructions in that project.

3. Add composer's bin directory to the system path by placing export PATH="$HOME/.

4. Install latest stable Drush: cgr drush/drush .

5. Verify that Drush works: drush status.

Read More



Using Designing Dynamic Forms in drupal


This article will guide you on using dynamic composite #forms in a #Drupal #CMS. These forms change their layout according to the data they receive from the prefilling services at the time of rendering, so each separate request for form generation produces a form with a different length or content.

Read More



Method to store uploaded files in Azure using a Drupal CMS


This article will guide you on how to store the uploaded #files inside Azure in a Drupal #CMS. The Windows #Azure #Blob module allows for the uploading and storing of files on the Windows Azure #storage service. 

Read More



Install Drush on Ubuntu


This article will put your through the complete steps you need to take to install Drush on your Ubuntu Machine.

Read More



Deploy Drupal sites using Aegir


Aegir Module makes it easy to host and create a website in Drupal platform.

Read More



Solve Drupal HTTP Result Code 200 error


Steps to fix Drupal HTTP Result Code 200 error.

Read More



Drupal unable to send email error


How to fix Drupal unable to send email error.

Read More




For Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on LinuxAPT.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com






Focus on your business, not your servers.

Click Here to Learn More