<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Drupal Documentation on sk33lz</title><link>https://sk33lz.com/help/drupal/</link><description>Recent content in Drupal Documentation on sk33lz</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>&amp;copy; Jason Moore {year}</copyright><lastBuildDate>Sun, 09 Sep 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://sk33lz.com/help/drupal/rss.xml" rel="self" type="application/rss+xml"/><item><title>301 Redirects in Nginx</title><link>https://sk33lz.com/help/drupal/drupal-nginx/301-redirects-nginx/</link><pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate><guid>https://sk33lz.com/help/drupal/drupal-nginx/301-redirects-nginx/</guid><description>&lt;p>Below you can find a couple ways to create 301 redirects for your Nginx web server.&lt;/p>
&lt;h2 id="non-www-to-www-rewrite">Non-WWW to WWW Rewrite&lt;/h2>
&lt;p>To create an Nginx 301 redirect from a non-www domain URL to the www domain URL, place the following code inside of a &lt;code>server {}&lt;/code> code block in your site&amp;rsquo;s Nginx config file. Replace &lt;code>your_domain.com&lt;/code> with your actual domain name.&lt;/p>
&lt;pre>&lt;code>if ($host = 'your_domain.com'; ) { rewrite ^/(.*)$ http://www.your_domain.com/$1 permanent; }
&lt;/code>&lt;/pre>&lt;h2 id="www-to-non-www-rewrite">WWW to Non-WWW Rewrite&lt;/h2>
&lt;p>To create a Nginx 301 redirect from a www domain URL to the non-www domain URL, place the following code inside of the &lt;code>server {}&lt;/code> code block in your site&amp;rsquo;s Nginx config file. Again, replace &lt;code>your_domain.com&lt;/code> with your actual domain.&lt;/p>
&lt;pre>&lt;code>if ($host = 'www.your_domain.com'; ) { rewrite ^/(.*)$ http://your_domain.com/$1 permanent; }
&lt;/code>&lt;/pre>&lt;p>Alternatively, you can place a new &lt;code>server {}&lt;/code> code block inside of your site&amp;rsquo;s Nginx config file and create your Nginx 301 redirects like the following.&lt;/p>
&lt;h2 id="www-to-non-www-rewrite-1">WWW to Non-WWW Rewrite&lt;/h2>
&lt;pre>&lt;code>server { listen 80; server_name www.your_domain.com; rewrite ^/(.*) http://your_domain.com permanent; }
&lt;/code>&lt;/pre>&lt;h2 id="non-www-to-www-rewrite-1">Non-WWW to WWW Rewrite&lt;/h2>
&lt;pre>&lt;code>server { listen 80; server_name your_domain.com; rewrite ^/(.*) http://www.your_domain.com permanent; }
&lt;/code>&lt;/pre></description></item><item><title>Drupal &amp; Nginx Reference</title><link>https://sk33lz.com/help/drupal/drupal-nginx/</link><pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate><guid>https://sk33lz.com/help/drupal/drupal-nginx/</guid><description>&lt;p>Drupal and Nginx work great together. I have been using Nginx with PHP-FPM and previously PHP-CGI instead of Apache since 2011. I have grown to love the little engine that could. It has a much lower memory usage footprint, and responds much faster than Apache in my experience.&lt;/p>
&lt;p>Here are some cool and useful settings for Nginx and Drupal that will help you on your way to running your Drupal website on an Nginx web server.&lt;/p></description></item><item><title>Drupal + Ubuntu + PHP-FPM + Nginx Configuration</title><link>https://sk33lz.com/help/drupal/drupal-nginx/drupal-ubuntu-php-fpm-nginx-configuration/</link><pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate><guid>https://sk33lz.com/help/drupal/drupal-nginx/drupal-ubuntu-php-fpm-nginx-configuration/</guid><description>&lt;p>Get a Drupal site running on Ubuntu with PHP-FPM, and Nginx easily with the following help documentation.&lt;/p>
&lt;p>&lt;em>Note: Replace &lt;code>yourdomain.com&lt;/code> with your domain name.&lt;/em>&lt;/p>
&lt;p>Create the following Nginx config file in your &lt;code>/etc/nginx/sites-available&lt;/code> folder using the following command.&lt;/p>
&lt;pre>&lt;code>nano /etc/nginx/sites-available/yourdomain.com
&lt;/code>&lt;/pre>&lt;h2 id="drupal-nginx-config-file">Drupal Nginx Config File&lt;/h2>
&lt;p>The following Nginx config file works with Drupal 7, Ubuntu 14.04.1, PHP5-FPM 5.5.9, and Nginx 1.8.0.&lt;/p>
&lt;pre>&lt;code>server {
server_name yourdomain.com; ## &amp;lt;-- Your domain name.
root /var/www/yourdomain.com; ## &amp;lt;-- Your only path reference.
# Enable compression, this will help if you have for instance advagg‎ module
# by serving Gzip versions of the files.
gzip_static on;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# This matters if you use drush prior to 5.x
# After 5.x backups are stored outside the Drupal install.
#location = /backup {
# deny all;
#}
# Very rarely should these ever be accessed outside of your lan
location ~* \.(txt|log)$ {
allow 192.168.0.0/16;
deny all;
}
location ~ \..*/.*\.php$ {
return 403;
}
# No no for private
location ~ ^/sites/.*/private/ {
return 403;
}
# Block access to &amp;quot;hidden&amp;quot; files and directories whose names begin with a
# period. This includes directories used by version control systems such
# as Subversion or Git to store control files.
location ~ (^|/)\. {
return 403;
}
location / {
# This is cool because no php is touched for static content
try_files $uri @rewrite;
}
location @rewrite {
# You have 2 options here
# For D7 and above:
# Clean URLs are handled in drupal_environment_initialize().
rewrite ^ /index.php;
# For Drupal 6 and bwlow:
# Some modules enforce no slash (/) at the end of the URL
# Else this rewrite block wouldn't be needed (GlobalRedirect)
#rewrite ^/(.*)$ /index.php?q=$1;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have &amp;quot;cgi.fix_pathinfo = 0;&amp;quot; in php.ini
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_intercept_errors on;
fastcgi_pass unix:/tmp/php5-fpm.sock;
}
# Fighting with Styles? This little gem is amazing.
# This is for D6
#location ~ ^/sites/.*/files/imagecache/ {
# This is for D7 and D8
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}
&lt;/code>&lt;/pre>&lt;p>Symlink a copy to your &lt;code>/etc/nginx/sites-enabled&lt;/code> folder. Run the following command from in your &lt;code>/etc/nginx/sites-enabled&lt;/code> folder.&lt;/p>
&lt;pre>&lt;code>ln -s ../sites-available/domain.com .
&lt;/code>&lt;/pre>&lt;h2 id="nginx-config-for-adaptive-image-styles-module">Nginx Config for Adaptive Image Styles Module&lt;/h2>
&lt;p>AIS: Adaptive Image Style Configuration&lt;/p>
&lt;pre>&lt;code>location = /modules/image/sample.png {
}
location / {
if ($request_uri ~ &amp;quot;^(.+)/files/styles/adaptive/(.+)&amp;quot;){
rewrite ^/(.+)/files/styles/adaptive/(.+)$ /$1/files/styles/%1/$2 redirect;
}
}
&lt;/code>&lt;/pre>&lt;h2 id="disable-ssl-v3-for-nginx">Disable SSL v3 for Nginx&lt;/h2>
&lt;p>Add the following line to your Nginx configuration to disable SSL v3 to protect against the POODLE SSL v3.0 vulnerability.&lt;/p>
&lt;pre>&lt;code>ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
&lt;/code>&lt;/pre></description></item><item><title>What is Drupal?</title><link>https://sk33lz.com/help/drupal/what-is-drupal/</link><pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate><guid>https://sk33lz.com/help/drupal/what-is-drupal/</guid><description>&lt;p>Drupal is a very powerful &lt;a href="http://www.drupal.org/">Content Management System&lt;/a>, otherwise known as a CMS. It handles all of your website&amp;rsquo;s content and allows you to choose different ways of displaying that content to your viewers. One of the biggest advantages of using Drupal is that it is an Open Source CMS, so there are no licensing costs and the software itself is free of charge. The flexibility of the Drupal as a CMS framework is what has made it so popular with developers, while the community as a whole contributes back to Drupal&amp;rsquo;s overall growth.&lt;/p>
&lt;p>What one might know of as a Plugin in Wordpress, is actually called a Module in Drupal. &lt;a href="http://www.drupalservers.net/drupal-modules">Drupal modules&lt;/a> extend Drupal&amp;rsquo;s core functionality in every direction possible. Whether you are looking to build a professional business website, social networking community, an e-commerce store, a multimedia driven website, or just a personal blog, there is probably a module that does the job. The best part is, if there isn&amp;rsquo;t, you can code one yourself if you know PHP, or you can find someone who does custom Drupal module development and hire them to do it for you.&lt;/p>
&lt;p>There are also some great Drupal themes being made these days. Originally, most contributed &lt;a href="http://drupalservers.net/drupal-themes">Drupal themes&lt;/a> were very dull and almost too mechanical for anyone to want to use the default or most contributed themes, but that was mainly due to the fact that it was still a hard CMS to theme back in Drupal 5. Advancements in the core technology of Drupal 6 have allowed for Drupal 6 to introduce a whole new set of themers and therefore more quality &lt;a href="http://drupalservers.net/drupal-6-themes">Drupal 6 themes&lt;/a> to the Drupal community. Many of these new Drupal 6 themes are more reminiscent to what you might see on a Wordpress website, so things are definitely coming around in the design world of Drupal as well as the &lt;a href="http://arborwebdevelopment.com/">Drupal website development&lt;/a> world.&lt;/p>
&lt;p>The Drupal 7 release has has it&amp;rsquo;s fair share of problems, but one thing is for certain, Drupal 7 themes have the potential to be amazing with the new advancements in Drupal core in the theme layer. Building upon the advancements in Drupal 6, Drupal 7 allows themers and even non-themers to harness the power of a Drupal theme to it&amp;rsquo;s fullest. Modules like the Sweaver module allow those with absolutely no Drupal theming experience to dive right into a Drupal theme from the Drupal API and start changing it to suit your needs. If that isn&amp;rsquo;t powerful, I am not sure what is. In Drupal 6, the most powerful theme related tool in the Drupal UI was probably the CSS Injector module.&lt;/p>
&lt;p>It is quite evident that there are many reasons to why you should use Drupal, but you don&amp;rsquo;t have to take my word for it, visit &lt;a href="http://drupal.org/">Drupal.org&lt;/a> and hang out for a bit. Take a look at some of the demonstration videos and demo website available, along with checking out some of the modules and how they function through their demo sites and you make the decision for yourself. You should quickly catch on to why Drupal is definitely my CMS of choice.&lt;/p></description></item><item><title>Drupal Hosting</title><link>https://sk33lz.com/help/drupal/drupal-hosting/</link><pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate><guid>https://sk33lz.com/help/drupal/drupal-hosting/</guid><description>&lt;p>Drupal hosting is the most important aspect of a Drupal website outside of the actual development process. I have evolved in my hosting of Drupal sites from shared hosting in the beginning to VPS hosting at this point, so I have plenty of stories to tell for each type of service available. All of my reviews are unpaid and written upon my full evaluation of the service. Some hosting services have been provided free hosting accounts in order to provide ability to review their service without me having to pay for it, so apparently my opinion counts at this point. Drupal hosting reviews where hosting accounts were provided and not purchased will be attributed at the end of the review if applicable.&lt;/p></description></item><item><title>Drush</title><link>https://sk33lz.com/help/drupal/drush/</link><pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate><guid>https://sk33lz.com/help/drupal/drush/</guid><description>&lt;p>&lt;a href="https://www.drush.org/">Drush&lt;/a> is the Drupal Shell utility. It allows Drupal developers to control many aspects of a Drupal installation through command line commands. Drush allows for easy installation of new projects on a Drupal site, including downloading and enabling the projects on the site. Drush also allows for easy installation of 3rd party libraries into the &lt;code>sites/all/libraries&lt;/code> folder. Outside of core Drupal related functions, Drush also has become popular with contributed module developers, many of which now include Drush commands with their modules. There are also a growing list of Drush specific modules that add additional functionality to Drush at it&amp;rsquo;s core. Because of this, Drush has become one of the most powerful tools that a Drupal developer can have in their toolbox outside of Drupal itself.&lt;/p>
&lt;p>I will be cataloging various aspects of Drush in this section, including Drush commands, Drush modules, and useful Drush information.&lt;/p></description></item><item><title>Drush Commands</title><link>https://sk33lz.com/help/drupal/drush-commands/</link><pubDate>Sun, 05 May 2019 00:00:00 +0100</pubDate><guid>https://sk33lz.com/help/drupal/drush-commands/</guid><description>&lt;p>&lt;a href="https://www.drush.org/">Drush&lt;/a> has a ton of commands and commands differ depending on what version of Drupal or Drush you are using. I am not going to list all &lt;a href="https://drushcommands.com/">Drush Commands&lt;/a> here, as there are actually better resources for that. Instead, I will be focusing on Drush commands that are used most often and will be most helpful for Drupal developers just getting started with Drush.&lt;/p>
&lt;h2 id="drush-download">Drush Download&lt;/h2>
&lt;p>The &lt;code>drush download&lt;/code> command allows you to download a project up to Drupal 7 using the command line.&lt;/p>
&lt;p>&lt;strong>Note:&lt;/strong> The &lt;code>drush download&lt;/code> command is deprecated in Drupal 8. Drupal 8 projects are handled using Composer instead.&lt;/p>
&lt;pre>&lt;code>drush dl project_name
&lt;/code>&lt;/pre>&lt;h2 id="drush-enable">Drush Enable&lt;/h2>
&lt;p>The &lt;code>drush enable&lt;/code> command allows you to enable a project such as a module or theme on a Drupal website using the command line.&lt;/p>
&lt;pre>&lt;code>drush en project_name
&lt;/code>&lt;/pre>&lt;h2 id="drush-disable">Drush Disable&lt;/h2>
&lt;p>The &lt;code>drush disable&lt;/code> command allows you to disable a project such as a module or theme on a Drupal website using the command line.&lt;/p>
&lt;p>&lt;strong>Note:&lt;/strong> Drupal 8 sites must use the &lt;code>drush uninstall&lt;/code> command instead, as modules cannot be disabled in Drupal 8, they must be uninstalled.&lt;/p>
&lt;pre>&lt;code>drush disable project_name
&lt;/code>&lt;/pre>&lt;h2 id="drush-uninstall">Drush Uninstall&lt;/h2>
&lt;p>The &lt;code>drush uninstall&lt;/code> command allows you to disable a project such as a module or theme on a Drupal website using the command line.&lt;/p>
&lt;pre>&lt;code>drush uninstall project_name
&lt;/code>&lt;/pre></description></item></channel></rss>