Linux basic configurations - drupal http://basicconfig.com/taxonomy/term/10 en Node count for taxonomy terms in Drupal 7 http://basicconfig.com/content/node-count-taxonomy-terms-drupal-7 <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is an instruction on how to make node count for taxonomy terms in Drupal 7. You need to create a taxonomy vocabulary and taxonomy terms first. Then, to make a page which list all those taxonomy terms, here is the steps:</p> <ol><li>Add new view - url=admin/structure/views</li> <p><img src="/sites/default/files/field/image/1-add-new-view.jpg" width="551" height="480" alt="Add new view" /></p> <li>In the view Relationship, add <strong>Taxonomy term: Content using 'taxonomy term name'</strong>.</li> <p><img src="/sites/default/files/field/image/2-view-set-relationship.jpg" width="407" height="420" alt="View add relationship" /></p> <li>In the view Other, change <strong>Use aggregation: Yes </strong></li> <li>In the view Fields, add <strong>Content: Nid </strong>. In it's Settings page, set Aggregation type to <strong>Count</strong>. </li> <p><img src="/sites/default/files/field/image/3-content-nid.jpg" width="640" height="452" alt="View fields content nid" /></p> <li>In the view Format, set <strong>Show: Fields | Settings</strong>. In the Settings page, turn Inline fields for Taxonomy term and Content Nid.</li> <p><img src="/sites/default/files/field/image/4-view-field-setting.jpg" width="640" height="371" alt="View Format fields settings" /></p> <li>Set everything else to fit your need such as the Description, url Path, view Format, Title and Machine name.</li> </ol><p>Here the view example:</p> <p><img src="/sites/default/files/field/image/5-view-taxonomy-terms-count-settings.jpg" width="640" height="356" alt="View taxonomy terms count settings example" /></p> <p>That's all.</p> <p><img src="/sites/default/files/field/image/1-add-new-view.jpg" width="551" height="480" alt="Add new view" /></p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/10" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">drupal</a></div></div></div> Fri, 20 Mar 2015 07:20:37 +0000 jinlusuh 358 at http://basicconfig.com http://basicconfig.com/content/node-count-taxonomy-terms-drupal-7#comments Install Opigno in Slackware http://basicconfig.com/content/install-opigno-slackware <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Opigno is a Learning management System developed on Drupal. It can be downloaded for free from Opigno official website and Drupal distribution page. Here is the step by step installation guide for Opigno in Slackware 14.1.</p> <p>Create a database for Opigno:</p> <pre> bash-4.2$ mysql -u root -p Enter password: </pre><p> <img src="/sites/default/files/field/image/opigno-install-04-database.jpg" width="559" height="199" alt="Create Opigno database" /></p> <p>Download Opigno from Drupal website. Extract it, rename and copy to the web server htdocs directory. See all the steps below:</p> <pre> root@slackware:~# cd /var/www/htdocs/ root@slackware:/var/www/htdocs# cp -R /home/jinlusuh/tmp/opigno/ . root@slackware:/var/www/htdocs# chown -R apache.apache opigno/ </pre><h2>Minimum requirements</h2> <p>Opigno requires some hardware resources. Set the minimum requirements as below:</p> <ol><li>Check php.ini <strong>max_execution_time</strong> is above 120.</li> <li>make sure php.ini <strong>max_input_time</strong> is above 120.</li> <li>Check php.ini <strong>memory_limit</strong> is larger than 256M.</li> </ol><p>Here are the steps example:</p> <pre> root@slackware:/var/www/htdocs# vim /etc/httpd/php.ini </pre><p> <img src="/sites/default/files/field/image/opigno-configure-php.jpg" width="417" height="371" alt="Setup Opigno minimum requirement in php.ini file" /></p> <p>Now we are ready to install Opigno. Make sure to restart web server so the changes we make to the php.ini file is updated. Open web browser and type 'localhost/opigno' in the url. Below is the example of Opigno installation step.</p> <p><img src="/sites/default/files/field/image/opigno-install-01.jpg" width="600" height="400" alt="Install Opigno" /></p> <p>The installation steps are almost identical to Drupal core installation. Choose profile, Choose language, and then Opigno will verify the minimum requirements. If you did all the minimum requirement setup ealier, you can just save and continue to the 'Setup database' step below:</p> <p><img src="/sites/default/files/field/image/opigno-install-05-database1.jpg" width="640" height="462" alt="Opigno installation - insert database information" /></p> <p>When you finish providing all database information, click 'Save and continue'. Opigno will begin the installation now. When the installation is finished, you can provide your new Learning Management System site information.</p> <p><img src="/sites/default/files/field/image/opigno-install-06-configure1.jpg" width="420" height="480" alt="Opigno installation - provide site information" /></p> <p>Click 'Save and continue' and you are done.</p> <p><img src="/sites/default/files/field/image/opigno-install-07-finished.jpg" width="640" height="449" alt="Opigno installation finished" /></p> <p>Click 'Visit your new site' to start configuring your new Learning Management System site:</p> <p><img src="/sites/default/files/field/image/opigno-new-site.jpg" width="640" height="400" alt="Visit your Opigno new site" /></p> <p>That all about Opigno installation in Slackware. We will learn on how to configure Opigno in another article.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/tags/opigno" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Opigno</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/10" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">drupal</a></div></div></div> Fri, 06 Mar 2015 14:08:40 +0000 jinlusuh 357 at http://basicconfig.com http://basicconfig.com/content/install-opigno-slackware#comments Drupal 7: Displaying authored content in user profile using Views http://basicconfig.com/content/drupal-7-displaying-authored-content-user-profile-using-views <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>There are several ways on how to allow visitors to view all post by a certain user in Drupal 7. Here is a step by step guide on how to display authored content in user profile using Views module.</p> <p>Step 1 - Allow visitors to view user profile. Go to "People -&gt; Permission" (admin/people - PERMISSIONS tab). Scroll down to <strong>User</strong> section and select <strong>View user profiles</strong> for ANONYMOUS USER.</p> <p>Step 2 - Assuming that you already had Views module with associated modules installed, now create a new view: Structure -&gt; Views -&gt; Add new view (url:admin/structure/views/add).</p> <p>Step 3 - Fill in "View name" and description. Show <strong>Content</strong> (default select from dropdown list) of type and choose your preferred content type from dropdown list. Untick "Create a page" instead tick "Create a block". Enter "Block title" and choose "Display format" from dropdown list. You can change this to your like later if you want. Edit anything that you want and click "Continue &amp; Edit" button.</p> <p>Step 4 - FIELDS - Add your content fields, title, picture and whatever you want.</p> <p>Step 5 - FILTER CRITERIA - Add filter Type, Publish and however you want. </p> <p>Step 6 - BLOCK SETTINGS - Access: Permission | View publish content.</p> <p>Step 7 - Click <strong>Advanced</strong> link (column on the right) and add CONTEXTUAL FILTERS. Choose <strong>Content: Author uid</strong>. Apply. On "When the filter value is NOT available", choose <strong>Provide default value</strong> and in "Type" dropdown list, choose <strong>User ID from URL</strong>. Click Apply.</p> <p>Step 8 - Now go to Structure -&gt; Block (url: admin/structure/block) and scroll down to "Disabled" block. Locate the block that you just created (the block name start with View: Name). Click <strong>configure</strong> and on "Show block on specific pages", choose "Only the listed pages". In the text box type <strong>users/*</strong> and Save block. Place it in the "Content" region or whatever region you want. Save block.</p> <p>That's it.</p> <p>Now, to verify, open a new tab in your browser and type <strong>your-website/users/username</strong> in the url.</p> </div></div></div><div class="field field-name-field-tag field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tag:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/taxonomy/term/10" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">drupal</a></div></div></div><!-- google_ad_section_end --> Thu, 09 Oct 2014 03:58:22 +0000 jinlusuh 356 at http://basicconfig.com http://basicconfig.com/content/drupal-7-displaying-authored-content-user-profile-using-views#comments Drupal 7 subdomain clean url in Godaddy http://basicconfig.com/content/drupal-7-subdomain-clean-url-godaddy <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is a guide on how to install Drupal 7 in a subdomain. Here is the situation to avoid misunderstanding.</p> <p>You already have Drupal 7 website installed in the webroot. The clean url is working fine. Now you want to install a second Drupal 7 website in a subdomain.</p> <p>So here is a guide on how to install a Drupal website in a subdomain (specifically in Godaddy shared hosting).</p> <p>Step 1 - Create a new subdomain using Godaddy tool (Hosting Control Center - More - Hosted Domains). Click "Manage" Subdomains and create a new subdomain. For Example here, we named it "drupal2". So your subdomain url will be "drupal2.yourdomain.com".</p> <p>Step 2 - Create a new database for the second Drupal website (Hosting Control Center - Databases - MySQL).</p> <p>Step 3 - Extract latest Drupal core in the subdomain and do a fresh install. </p> <p>Step 4 - After finished installation, go to Administration Page. Click Configuration and choose Clean URLs under SEARCH AND METADATA. Try run and check Clean URL. If it failed, then open File Manager and edit ".htaccess" file from the FIRST DRUPAL WEBSITE in the "webroot" directory. Add the line below:</p> <p># Add this lines<br /> RewriteCond %{REQUEST_FILENAME} !-f<br /> RewriteCond %{REQUEST_FILENAME} !-d<br /> RewriteCond %{REQUEST_URI} ^/drupal2/<br /> RewriteRule ^ /drupal2/index.php [L]</p> <p># Existing rewrite rules<br /> RewriteCond %{REQUEST_FILENAME} !-f<br /> RewriteCond %{REQUEST_FILENAME} !-d<br /> RewriteCond %{REQUEST_URI} !=/favicon.ico<br /> RewriteRule ^ index.php [L]</p> <p>before the existing rewrite rules.</p> <p>Step 5 - Enable RewriteBase / in the same file (.htaccess in webroot)</p> <p> # If your site is running in a VirtualDocumentRoot at <a href="http://example.com/">http://example.com/</a>,<br /> # uncomment the following line:<br /> # RewriteBase /<br /> RewriteBase /</p> <p>Step 6 - Save ".htaccess" file. Now, manually change the URL from:</p> <p>drupal2.yourdomain.com/?q=admin/config/search/clean-urls</p> <p>to:</p> <p>drupal2.yourdomain.com/admin/config/search/clean-urls</p> <p>and see if it displays the "Enable Clean URLs" checkbox. If it does, select it and Save Configuration.</p> <p>This is how we help configure a friend website. We don't change a thing from ".htaccess" file of the subdomain Drupal website. It work for us and we blog it here for our reference and maybe help other people too.</p> <p>We did change "settings.php" file from Drupal2 subdomain though. Here are things we change/add:</p> <p># $base_url = '<a href="http://www.example.com">http://www.example.com</a>'; // NO trailing slash!<br /> $base_url = '<a href="http://drupal2.yourdomain.com">http://drupal2.yourdomain.com</a>';</p> <p>and</p> <p># $cookie_domain = '.example.com';<br /> $cookie_domain = '.yourdomain.com';</p> <p>That's it.</p> </div></div></div><div class="field field-name-field-tag field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tag:&nbsp;</div><div class="field-items"><div class="field-item even"><a href="/taxonomy/term/10" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">drupal</a></div></div></div><!-- google_ad_section_end --> Thu, 02 Oct 2014 19:06:17 +0000 jinlusuh 355 at http://basicconfig.com http://basicconfig.com/content/drupal-7-subdomain-clean-url-godaddy#comments Install Drupal 6 website backup from hosting server in Slackware 14.1 http://basicconfig.com/linuxsoftware/install-drupal-6-website-backup-hosting-server-slackware-141 <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Install a backup for your website is a good practice. Here is a tutorial on how to backup your Drupal website and install it in Slackware 14.1 64bit example. </p> <h2>Prerequisites</h2> <ol><li>Download latest website database from your hosting server</li> <li>Download <em>files</em> directory from your hosting server</li> <li>Download <em>sites</em> directory from your hosting server</li> <li>Download Drupal core from drupal website</li> <li>Configure MariaDB in Slackware 14.1</li> <li>Configure web server in Slackware 14.1</li> </ol><h2>Configure MariaDB in Slackware 14.1</h2> <p>If you haven't setup MariaDB in Slackware yet, that's the first thing you have to do. See our tutorial on <a href="/linuxsoftware/configure-mariadb-slackware-141" target="_blank">how to configure MariaDB in Slackware 14.1</a>. It's an easy few steps because Slackware has MariaDB pre-configured.</p> <h2>Configure Web Server in Slackware 14.1</h2> <p>Slackware has Web Server pre-configured as well. All configuration files are in <em>/etc/httpd</em> directory. Here is a simple Web Server setup and configuration for our Drupal website.</p> <p>First, we edit <em>/etc/httpd/httpd.conf</em> file.</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">vim /etc/httpd/httpd.conf</span><br /></code></td> </tr></table><p>1. Add:</p> <table><tr><td><code># DirectoryIndex: sets the file that Apache will serve if a directory<br /> # is requested.<br /> #<br /><ifmodule dir_module=""><br /> DirectoryIndex index.html <span style="color:red;">index.php index.htm index.xhtml</span><br /></ifmodule><br /> #<br /></code></td> </tr></table><p>2. Enable PHP:</p> <table><tr><td><code># Uncomment the following line to enable PHP:<br /> #<br /><span style="color:red;">Include /etc/httpd/mod_php.conf</span><br /></code></td> </tr></table><p>3. Enable mod_rewrite:</p> <table><tr><td><code><span style="color:red;">LoadModule rewrite_module lib64/httpd/modules/mod_rewrite.so</span></code></td> </tr></table><p>4. Edit 'AllowOverride None' to 'AllowOverride All' in the main directive for DocumentRoot:</p> <table><tr><td><code>DocumentRoot "/srv/httpd/htdocs"<br /><directory><br /> #<br /> # Possible values for the Options directive are "None", "All",<br /> # or any combination of:<br /> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews<br /> #<br /> # Note that "MultiViews" must be named *explicitly* --- "Options All"<br /> # doesn't give it to you.<br /> #<br /> # The Options directive is both complicated and important. Please see<br /> # http://httpd.apache.org/docs/2.4/mod/core.html#options<br /> # for more information.<br /> #<br /> Options Indexes FollowSymLinks<br /><br /> #<br /> # AllowOverride controls what directives may be placed in .htaccess files.<br /> # It can be "All", "None", or any combination of the keywords:<br /> # AllowOverride FileInfo AuthConfig Limit<br /> #<br /> #AllowOverride None<br /><span style="color:red;">AllowOverride All</span><br /><br /> #<br /> # Controls who can get stuff from this server.<br /> #<br /> Require all granted<br /></directory><br /></code></td> </tr></table><p>5. Save and exit file (Ctrl+ZZ).</p> <h2>Configure PHP</h2> <p>1. Edit <em>/etc/httpd/php.ini</em> file:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">vim /etc/httpd/php.ini</span></code></td> </tr></table><p>2. Set timezone to your location:</p> <table><tr><td><code>[Date]<br /> ; Defines the default timezone used by the date functions<br /> ; http://php.net/date.timezone<br /> ;date.timezone =<br /><span style="color:red;">date.timezone = "US/Arizona"</span><br /></code></td> </tr></table><p>3. Change maximum allowed size for uploaded files:</p> <table><tr><td><code>; Maximum allowed size for uploaded files.<br /> ; http://php.net/upload-max-filesize<br /> ;upload_max_filesize = 2M<br /><span style="color:red;">upload_max_filesize = 8M</span><br /></code></td> </tr></table><p>4. Save and exit file (Ctrl+ZZ).</p> <p>5. Start web server:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">chmod 755 /etc/rc.d/rc.httpd</span><br /> root@slackware:~# <span style="color:red;">/etc/rc.d/rc.httpd start</span><br /></code></td> </tr></table><h2>Install and configure Drupal backup website in Slackware</h2> <p>1. Copy Drupal website backup directory from your hosting server to your Slackware <em>/var/www/htdocs/</em>. You can also use a clean drupal core downloaded from Drupal website:</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">cp -R drupal-6.29/ /var/www/htdocs/</span></code></td> </tr></table><p>2. Rename the Drupal directory as necessary:</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">mv /var/www/htdocs/drupal-6.29/ /var/www/htdocs/basicconfig</span></code></td> </tr></table><p>3. If you choose to use a clean drupal core, copy 'files' folder from your hosting website to the backup website in your Slackware (if you setup your Drupal website to use 'files' directory in the root instead of 'sites/default/files'):</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">cp -R files/ /var/www/htdocs/basicconfig/</span></code></td> </tr></table><p>4. Give full permission to the 'files' directory:</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">chmod 777 /var/www/htdocs/basicconfig/files </span></code></td> </tr></table><p><strong>Note</strong>: Don't forget 'tmp' directory should be created as well.</p> <p>5. Now copy your 'sites' directory from your hosting website to the backup website directory in your Slackware:</p> <table><tr><td><code>root@slackware:/home/jinlusuh/Documents/basicconfig# <span style="color:red;">cp -R sites/ /var/www/htdocs/basicconfig/</span></code></td> </tr></table><p>6. Edit <em>sites/default/setting.php</em>.</p> <table><tr><td><code>root@slackware:/var/www/htdocs/basicconfig/sites/default# <span style="color:red;">vim settings.php</span></code></td> </tr></table><p>Edit:</p> <table><tr><td><code>* Database URL format:<br /> * $db_url = 'mysql://username:password@localhost/databasename';<br /> * $db_url = 'mysqli://username:password@localhost/databasename';<br /> * $db_url = 'pgsql://username:password@localhost/databasename';<br /> */<br /> $db_url = 'mysql://<span style="color:red;">root:admin@localhost/basicconfdb</span>';<br /> $db_prefix = '';<br /></code></td> </tr></table><p>Edit:</p> <table><tr><td><code># $cookie_domain = 'example.com';<br /> $cookie_domain = <span style="color:red;">'localhost/website-dir-name'</span>;<br /></code></td> </tr></table><p>Set 'cookie domain' to your local website directory (Drupal website directory in your Slackware). If you don't set this or forgot to change the name, you won't be able to login to your Drupal website with Access Denied "You are not authorized to access this page" error.</p> <p>7. Import drupal website database from your hosting server to the new MariaDB database in Slackware:</p> <table><tr><td><code>root@slackware:/var/www/htdocs/basicconfig/sites/default# <span style="color:red;">mysql -u root -p</span><br /> Enter password:<br /> Welcome to the MariaDB monitor. Commands end with ; or \g.<br /> Your MariaDB connection id is 1<br /> Server version: 5.5.32-MariaDB MariaDB Server<br /><br /> Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.<br /><br /> Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.<br /><br /> MariaDB [(none)]&gt; <span style="color:red;">use basicconfdb;</span><br /> Database changed<br /> MariaDB [basicconfdb]&gt; <span style="color:red;">source /home/jinlusuh/basicconfdb.sql;</span><br /></code></td> </tr></table><p><strong>Note</strong>: Change the correct path to where your database located. Normally, the backup database downloaded from hosting server would be archived and compressed in 'your-database.sql.bz2' or 'your-database.zip'. Uncompress it first.</p> <p>8. Now open web browser and type 'localhost/your-website-directory-name'. </p> <h2>Final check</h2> <p>1. Check File System directory existence (url:localhost/your-website/admin/settings/file-system)</p> <p>2. Check Status Report (url:localhost/your-website/admin/reports/status)</p> <h2>Problem and trouble-shooting </h2><p>Check your website status (url:your-website/admin/reports/status). Normally, the 'files' directory would be the problem because of permission.</p> <table><tr><td>Image module directories</td> <td>Missing directory</td> </tr><td>The image module's image directory files/content is missing.</td> <td></td> </table><p>Change permission for 'files/content' directory and other directories as well:</p> <table><tr><td><code>root@slackware:/var/www/htdocs/basicconfig/files# <span style="color:red;">chmod 777 content/</span><br /> root@slackware:/var/www/htdocs/basicconfig/files# <span style="color:red;">chmod 777 content/temp/</span><br /> root@slackware:/var/www/htdocs/basicconfig/files# chmod 777 color/<br /> root@slackware:/var/www/htdocs/basicconfig/files# chmod 777 download/<br /> root@slackware:/var/www/htdocs/basicconfig/files# chmod 777 imagepicker/<br /> root@slackware:/var/www/htdocs/basicconfig/files# chmod 777 images/<br /></code></td> </tr></table><p>That's it for now. If you have problem installing Drupal backup from your hosting server to your Slackware by following this tutorial, please comment. </p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/9" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">software</a></div><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/10" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">drupal</a></div></div></div> Tue, 07 Jan 2014 03:29:57 +0000 jinlusuh 314 at http://basicconfig.com http://basicconfig.com/linuxsoftware/install-drupal-6-website-backup-hosting-server-slackware-141#comments Setting up a Drupal website http://basicconfig.com/software/setting-up-drupal-website <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is a guide on setting up Drupal content management system on localhost. This guide is the second part tutorial on how to build a website using Drupal cms. You can read the first tutorial in <a href="http://www.basicconfig.com/software/drupal-installation-on-windows-tutorial" target="_blank">Drupal installation on windows</a> tutorial and <a href="http://www.basicconfig.com/linuxsoftware/setup-configure-drupal-slackware-linux-tutorial" target="_blank">Setup and configure Drupal 6 in Slackware Linux</a> tutorial.</p> <p>We will be taken to the first page, the Drupal welcome page(as screenshot example below)when we click 'You may now visit your new site.' link at the 'Drupal installation complete' page (refer the first tutorial). One thing to note at this point, you are now officially log in as administator or super user.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/setting-drupal01.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/setting-drupal01.png" alt="Setting up drupal website screenshot image" /></a></p> <p>There are several steps that supposed to guide a first time user to begin using Drupal. We will do all those with step by step instructions in this tutorial. Let's do that now if you are ready.</p> <p>Configure your website - Once logged in, visit the <span style="color:blue;">administration section</span>, where you can customize and configure all aspects of your website.</p> <p>What we need to do here is to click the 'administration section' link to administrator home page, which is where we can configure our drupal website. Here is the screenshot example of the administrator section page:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/administer.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/administer.png" alt="Drupal Administer page screenshot image" /></a></p> <p>There are 5 main menus in the Drupal administration section. Here are brief explanation of each menu:</p> <p>1) Content management - Manage your site's content. Here is where you can manage your posts, other user's comments and everything related to the content.</p> <p>2) User management - Manage your site's users, groups and access to site features. You can create a new user, manage users and groups access and permission and other stuff related to the user management.</p> <p>3) Reports - View reports from system logs and other status information. You can see reports on your website here such as errors, visitor details and update available for Drupal core and modules.</p> <p>4) Site building - Control how your site looks and feels. Here is where you can customize your website looks. You can change theme, add and remove side bar, create and remove menu, and add modules (extensions).</p> <p>5) Site configuration - Adjust basic site configuration options. Here is where you control everything else.</p> <h2>Configure Drupal website</h2> <h3>Drupal add new user</h3> <p>Now that we already know the basic structure of Drupal's administration menu, we can start configure our Drupal website. The first thing that we should do is to create a new user account. Let's treat our Drupal the same as Linux. We'll create a new user in Drupal and give the user administrator privilege. Here are the step by step instructions:</p> <p>Click <b>Users</b> menu under User management. In the Users page, choose 'Add user'. See example screenshot below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/add-user01.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/add-user01.png" alt="Drupal add user screenshot image" /></a></p> <p>Fill in all the requirements. We are going to create a user with administrator privilege, so remember to create a strong password. Make sure you get a green 'High' for the 'Password strength' status. Mix your password text with uppercase, numbers and special characters. For Username, spaces are allowed; punctuation is not allowed except for periods, hyphens, and underscores.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/add-user02.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/add-user02.png" alt="Drupal add user fill in all requirements screenshot image" /></a></p> <p>When you are done, click 'Create new account'.</p> <h3>Drupal add roles and assign permissions</h3> <p>We have a new user, so now we must give him some administrative privileges. To do this, open <b>Roles</b> menu under 'User management'. Type the new role's name for example 'admin' and click Add role button.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/add-roles01.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/add-roles01.png" alt="Drupal add roles screenshot image" /></a></p> <p>To assign permissions for the new role, click 'Edit permissions' or open <b>Permissions</b> menu under 'User management'.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/assign-permissions01.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/assign-permissions01.png" alt="Assign permission to the new role screenshot image" /></a></p> <p>Tick all permissions in the menus checkbox and click 'Save permissions' when you're done.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/assign-permissions02.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/assign-permissions02.png" alt="Assign permission save configuration screenshot image" /></a></p> <h2>Site configuration</h2> <p>We configured most of our website during the Drupal installation stage. Now, we can configure some more. Let's look at the <b>Site configuration</b> menu. The first menu, Actions, just leave it for now.</p> <p>The next menu, Administration theme is where you change your administrative pages look which means the look is for you not for the visitors. You can change to a different theme if you want but there is nothing wrong with the default theme.</p> <p>The menu Clean URLs is already configured during Dupal installation. But you can enable or disable clean URLs for your site here (you need to disable it during Drupal core update). For now, just leave it alone.</p> <p>The next menu is Date and Time, where you can choose whict date and time format that you want. You can just accept the default and go to the next menu, Error reporting, which you need to specify the error pages for default 403 (access denied) page and default 404 (not found) page. Named it 403 and 404 respectively and save configuration. We need to create the error page later.</p> <p>Skip all unnecessary changes and head to the Input formats menu. This menu affect the text editor we used to create content in drupal. I change to the Full HTML format here because I write my content in full html format. You have to decide it for yourself.</p> <p>The next menu that we need to look at is the Site information. You can change your site name and email address that you set during installation here. Also, you can set site's motto, tag line, or catchphrase (often displayed alongside the title of the site) in the Slogan textbox. Most importantly, you can set your website's mission or focus statement which often prominently displayed on the front page. Finally, set a footer message. A disclaimer for your website is a good idea. Here's an example screenshot:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/site-config.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/site-config.png" alt="Drupal site configuration screenshot image" /></a></p> <p>That's it for site information. Save configuration when you are done. The final menu, Site maintenance is where you can put your website offline during maintenance period. That's all for the Site configuration.</p> <h2>Planning a website and create menu</h2> <p>We must properly plan on how to present our content to the visitors. For example, we are going to make a website about Linux. We must have a category for every related content subject such as 'Linux commands', 'Linux servers', 'Linux security' and etc. Under Linux commands, we can further categories our content such as Linux basic commands, Linux administration commands, Linux network commands, and so on. For the Linux servers category, we can have DNS server, dhcp server, FTP server, and etc. You should plan your website too. When you are ready, we can start create menus for our website.</p> <p>We can do this in Drupal using <b>Menus</b> which can be found under 'Site building' menu. In the Menus page, select 'Add menu'.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/drupal-menu01.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/drupal-menu01.png" alt="Drupal add menu screenshot image" /></a></p> <p>In the Menu name, key in the first category for your website. In this example, it is 'linux-commands'. Make sure the name contain only lowercase letters, numbers, and hyphens, and must be unique. This is the machine-readable name of this menu. The name will be used for constructing the URL of the menu overview page for this menu. In the Title, put a normal 'Linux commands' (this will appear in the website menu) and in the Description, type a brief explanation about this menu. See example screenshot below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/drupal-menu02.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/drupal-menu02.png" alt="Add menu example screenshot image" /></a></p> <p>When you are done, click Save. You'll be taken to the new menu page. Don't do anything here, not yet. Click 'Menus' link from the left sidebar menu. Create all categories that you need using the same method above.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/drupal-menu03.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/drupal-menu03.png" alt="Drupal new menu created screenshot image" /></a></p> <p>Create another menu using the Menus link from the left sidebar.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/drupal-menu04.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/drupal-menu04.png" alt="Create menu link from sidebar screenshot image" /></a></p> <p>That's all for now. We'll continue setting up Drupal website in the next tutorial.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/9" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">software</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/10" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">drupal</a></div><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/12" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">cms</a></div></div></div> Wed, 06 Oct 2010 09:36:13 +0000 jinlusuh 90 at http://basicconfig.com http://basicconfig.com/software/setting-up-drupal-website#comments Drupal installation on windows tutorial http://basicconfig.com/software/drupal-installation-on-windows-tutorial <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is a guide on how to setup website and configure Drupal content management system on windows. You need to have web server, mysql and php installed in your computer before begin the Drupal installation.</p> <p>Download latest Drupal content management system from <a href="https://drupal.org" target="_blank">drupal official website</a>. There are two versions of Drupal active at the moment, Drupal 5 and Drupal 6. Active means that Drupal 5 and Drupal 6 still maintained and supported by Drupal developer and modules developer. </p> <p>Which drupal version should I use? Drupal 5 is the older version while the Drupal 6 is the latest stable released. The first time user should choose Drupal 6 since it's an upgraded version of Drupal 5. Drupal 5 will be stop maintained once Drupal 7 is released (not confirm however that's what happened to Drupal 4).</p> <p>In order to install Drupal content management system in your local computer, you need to have php, mysql database and web server installed. The easiest way is to install XAMPP, which is a package of Apache web server, MySQL database server, PHP and PERL compiled by apachefriends.org team. It's available in executable file(installer) for windows, Mac OS X and also for Linux. A XAMPP tutorial can be found in <a href="http://www.basicconfig.com/software/local_webserver" target="_blank">Setup local web server for windows - Install, configure and testing xampp</a>.</p> <p>Create database for a new drupal website. You can do this easily using phpmyadmin which included with xampp package. See example in <a href="http://www.basicconfig.com/database/create-new-database-new-user-mysql" target="_blank"><br /> Create new mysql database and new user</a> tutorial.</p> <p>Extract Drupal file(drupal-6.xx.tar.gz) and copy the extracted file to the web server directory (windows in c:\xampp\htdocs\). You can use <a href="http://www.7-zip.org" target="_blank">7zip</a> to extract the file. Rename the extracted file from drupal-6.xx to your domain name or website name. See xampp tutorial(mention above) on how to configure web server or if you need help on where to copy the drupal file.</p> <p>Before we begin installing drupal website, copy the <b>'xampp\htdocs\drupal\sites\default\default.settings.php'</b> file to <b>'xampp\htdocs\drupal\sites\default\settings.php'</b>. The 'settings.php' file must be writable. The 'xampp\htdocs\drupal\sites\default\files' folder also must be writeable. Since we are using windows, the permission is enabled by default. So don't worry about the permission bit.</p> <p>Now we can start installing Drupal website. Here are the steps:</p> <p>1) Open web browser and type 'localhost/drupal' in the url (replace 'drupal' with your drupal folder name).</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/01-url-drupal.jpg" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/01-url-drupal.jpg" alt="Enter drupal url address screenshot image" /></a></p> <p>2) Choose language. We are going to use 'English language' for this example:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/02-choose-language.jpg" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/02-choose-language.jpg" alt="Drupal installation - Choose language screenshot image" /></a></p> <p>3) Setup database:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/03-setup-database.jpg" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/03-setup-database.jpg" alt="Drupal installation - Setup database screenshot image" /></a></p> <p>4) Drupal installation error:</p> <p><b>Warning:</b> fopen(./sites/default/default.settings.php)[function.fopen]: failed to open stream: No such file or directory in <b>C:\xampp\htdocs\drupal\includes\install.inc</b> on line <b>188</b></p> <p><b>Warning:</b> Cannot modify header information - header already sent by(output started at C:\xampp\htdocs\drupal\includes\install.inc:188) in <b>C:\xampp\htdocs\drupal\includes\install.inc</b> on line <b>618</b></p> <p><b>Warning:</b> Cannot modify header information - header already sent by(output started at C:\xampp\htdocs\drupal\includes\install.inc:188) in <b>C:\xampp\htdocs\drupal\includes\install.inc</b> on line <b>619</b></p> <p>If you get this error, probably you renamed the 'default.settings.php' to 'settings.php' in previous step. To fix this, you just copy 'settings.php' and name it 'default.settings.php' so that you have both, the 'default.settings.php' and 'settings.php'.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/04-drupal-error.jpg" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/04-drupal-error.jpg" alt="Drupal installation error screenshot image" /></a></p> <p>5) Configure Drupal site. <b>Site name:</b> - Give your website a name. It should be something related to the whole content in the website (in the future). <b>Site e-mail address:</b> - The main email address that you would use for this website.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/05-config-site.jpg" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/05-config-site.jpg" alt="Drupal configure site screenshot image" /></a></p> <p>6) Setup Drupal administrator account. The administrator account has complete access to the site; it will automatically be granted all permissions and can perform any administrative activity. This will be the only account that can perform certain activities, so keep its credentials safe. <b>Username:</b> - Enter user name for administrator account. Just give a single name without white space. The e-mail address already automatically fill-in during previous step. <b>Password:</b> - Key in a password for the administrator account. To get a 'Password strength: High', you need to mix your password characters with Upper case, letters and special characters (symbols). Make sure you get the 'Passwords match: Yes'. Write these informations and keep them safe.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/06-admin-account.jpg" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/06-admin-account.jpg" alt="Drupal installation - Setup administrator account screenshot image" /></a></p> <p>7) Server settings. Normally, there's nothing to do here. The 'Clean URLs' is very important for SEO and it should be enable by default.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/07-server-settings.jpg" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/07-server-settings.jpg" alt="Drupal installation - Server settings screenshot image" /></a></p> <p>8) Drupal installation complete:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/08-drupal-install-complete.jpg" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/08-drupal-install-complete.jpg" alt="Drupal installation complete screenshot image" /></a></p> <p>Drupal mail server error warning:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/09-warning-mail.jpg" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/09-warning-mail.jpg" alt="Drupal installation mail server error screenshot image" /></a></p> <p>Don't worry about the email server warning for now. We successfully completed the Drupal installation. Click link to the website or type the website address(localhost/drupal) to go to the new drupal website. It's time to setup the new website.</p> <p>Will be continue on the second part. Too many screenshot pictures make page loading slow.</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/9" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">software</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/10" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">drupal</a></div><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/12" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">cms</a></div></div></div> Thu, 05 Aug 2010 05:59:39 +0000 jinlusuh 89 at http://basicconfig.com http://basicconfig.com/software/drupal-installation-on-windows-tutorial#comments Setup and configure Drupal 6 in Slackware Linux tutorial http://basicconfig.com/linuxsoftware/setup-configure-drupal-slackware-linux-tutorial <!-- google_ad_section_start --><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This is a basic guide on how to setup and configure Drupal 6 in Slackware Linux. Many beginner webmaster out there still haven't heard of Drupal.Here is a little information. Drupal is an open source <em>Content Management System</em> like Joomla. It has been awarded <b>The best open source content management system (CMS)</b> for a couple of years already. The official Drupal website is <a href="https://drupal.org" target="_blank">drupal.org</a>. You can read more about drupal in the Drupal founder's personal website, <a href="http://buytaert.net/" target="_blank">Dries Buytaert - Personal website</a> and see for yourself who's using Drupal.</p> <p>Basically, we need to setup web server, Mysql and PHP in Slackware before begin setting up Drupal. When you got all those servers running then it's time to begin the Drupal installation. See user guides below on how to setup and configure Drupal in Slackware Linux:</p> <h2>Get latest Drupal 6 released</h2> <p>Download latest Drupal 6 released from official drupal website. You can also using <em>wget</em> command from Linux command line terminal to download Drupal package. See example below:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">wget http://ftp.drupal.org/files/projects/drupal-6.13.tar.gz</span><br /> --2009-07-06 03:57:04-- http://ftp.drupal.org/files/projects/drupal-6.13.tar.gz<br /> Resolving ftp.drupal.org... 64.50.238.52<br /> Connecting to ftp.drupal.org|64.50.238.52|:80... connected.<br /> HTTP request sent, awaiting response... 200 OK<br /> Length: 1080373 (1.0M) [application/x-gzip]<br /> Saving to: `drupal-6.13.tar.gz'<br /><br /> 100%[======================================&gt;] 1,080,373 113K/s in 12s<br /><br /> 2009-07-06 03:57:16 (91.2 KB/s) - `drupal-6.13.tar.gz' saved [1080373/1080373]<br /><br /> root@slackware:~# </code></td> </tr></table><p>Change directory to the Slackware web server directory. The default location is <b>/var/www/htdocs</b>. See example below:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">cd /var/www/htdocs/</span> </code></td> </tr></table><p>Extract Drupal 6 package here.</p> <table><tr><td><code>root@slackware:/var/www/htdocs# <span style="color:red;">tar zxvf /root/drupal-6.13.tar.gz</span><br /> drupal-6.13/<br /> drupal-6.13/includes/<br /> drupal-6.13/includes/actions.inc<br /> drupal-6.13/includes/batch.inc<br /> drupal-6.13/includes/bootstrap.inc<br /> drupal-6.13/includes/cache-install.inc<br /> drupal-6.13/includes/cache.inc<br /> ...<br /> ...<br /> ... </code></td> </tr></table><p>If Drupal package has been extracted without any error, then we can rename the extracted directory as the website name. See an example below:</p> <table><tr><td><code>root@slackware:/var/www/htdocs# <span style="color:red;">mv drupal-6.13/ testdrupal</span> </code></td> </tr></table><p>Rename /testdrupal/sites/default/default.settings.php as /testdrupal/sites/default/settings.php. Give all permission to settings.php file. See command example below:</p> <table><tr><td><code>root@slackware:/var/www/htdocs/testdrupal# <span style="color:red;">mv sites/default/default.settings.php sites/default/settings.php</span><br /> root@slackware:/var/www/htdocs/testdrupal# <span style="color:red;">chmod 777 sites/default/settings.php</span> </code></td> </tr></table><p>Create a new directory named <b>files</b> in <em>sites/default</em> directory. Give permission to all. See example step below:</p> <table><tr><td><code>root@slackware:/var/www/htdocs/testdrupal# <span style="color:red;">mkdir sites/default/files</span><br /> root@slackware:/var/www/htdocs/testdrupal# <span style="color:red;">chmod -R 777 sites/default/files/</span> </code></td> </tr></table><h2>Create database for the new drupal cms</h2> <p>We already installed Mysql and now it's time to create a database for Drupal cms. Login into mysql and create a new database with privilege user. You can also use Phpmyadmin if you have it in your Slackware. See step by step example below:</p> <p>Create a new database for the drupal website:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">mysql -u root -p</span><br /> Enter password:<br /> Welcome to the MySQL monitor. Commands end with ; or \g.<br /> Your MySQL connection id is 63<br /> Server version: 5.0.67-log Source distribution<br /><br /> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.<br /><br /> mysql&gt; CREATE DATABASE drupal;<br /> Query OK, 1 row affected (0.00 sec)<br /><br /> mysql&gt; </code></td> </tr></table><p>Create a new Mysql user:</p> <table><tr><td><code>mysql&gt; CREATE USER 'drupal'@'localhost' IDENTIFIED BY 'password';<br /> Query OK, 0 rows affected (0.00 sec) </code></td> </tr></table><p>Give the new user privilege for the drupal database and run <em>flush privileges</em> command. See example below:</p> <table><tr><td><code>mysql&gt; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'password';<br /> Query OK, 0 rows affected (0.00 sec)<br /> mysql&gt; FLUSH PRIVILEGES;<br /> Query OK, 0 rows affected (0.00 sec) </code></td> </tr></table><h2>Edit Apache httpd server configuration file</h2> <p>Open /etc/httpd/httpd.conf file using text editor. Change <b>AllowOverride None</b> to <b>AllowOverride All</b> enable Drupal clean-url.</p> <table><tr><td><code>&lt;Directory "/srv/httpd/htdocs"&gt;<br /> #<br /> # Possible values for the Options directive are "None", "All",<br /> # or any combination of:<br /> # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews<br /> #<br /> # Note that "MultiViews" must be named *explicitly* --- "Options All"<br /> # doesn't give it to you.<br /> #<br /> # The Options directive is both complicated and important. Please see<br /> # http://httpd.apache.org/docs/2.2/mod/core.html#options<br /> # for more information.<br /> #<br /> Options Indexes FollowSymLinks<br /><br /> #<br /> # AllowOverride controls what directives may be placed in .htaccess files.<br /> # It can be "All", "None", or any combination of the keywords:<br /> # Options FileInfo AuthConfig Limit<br /> #<br /> #AllowOverride None<br /><span style="color:red;">AllowOverride All</span><br /><br /> #<br /> # Controls who can get stuff from this server.<br /> #<br /> Order allow,deny<br /> Allow from all<br /><br /> &lt;/Directory&gt; </code></td> </tr></table><p>Add the following lines to the <em>httpd.conf</em> file:</p> <table><tr><td><code><directory><br /> RewriteEngine on<br /> RewriteBase /<br /> RewriteCond %{REQUEST_FILENAME} !-f<br /> RewriteCond %{REQUEST_FILENAME} !-d<br /> RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]<br /></directory></code></td> </tr></table><p>Restart httpd service:</p> <table><tr><td><code>root@slackware:/etc/httpd# <span style="color:red;">/etc/rc.d/rc.httpd restart</span></code></td> </tr></table><h2>Drupal 6 installation and configuration</h2> <p>Open Mozilla Firefox and type drupal website url.</p> <h3>Install drupal - Choose language</h3> <p>Choose installation language that you prefer.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/drupal-install01.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/drupal-install01.png" alt="Drupal installation screenshot image" /></a></p> <h3>Install drupal - Verify requirements</h3> <p>We already created a file named <b>settings.php</b> and a new directory named <b>files</b> in /sites/default/ directory. There should be no problem here.</p> <h3>Install drupal - Database configuration</h3> <p>Enter <em>Database name</em>, <em>Database username</em> and <em>Database password</em> for drupal 6. Click 'Save and continue' when you are done.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/drupal-install02.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/drupal-install02.png" alt="Drupal database configuration screenshot image" /></a></p> <p>Error:</p> <table><tr><td><code>Fatal error: Trying to clone an uncloneable object of class mysqli in /var/www/htdocs/linuxbasicconfig/includes/install.mysqli.inc on line 36 </code></td> </tr></table><p>To fix this, set "zend.ze1_compatibility_mode = off" in Apache's php.ini file.</p> <table><tr><td><code>root@slackware:~# vim /etc/httpd/php.ini </code></td> </tr></table><p><a href="http://www.basicconfig.com/files/imagepicker/2/drupal-php-ini.png" title="Image" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/drupal-php-ini.png" alt="Apache php.ini configuration screenshot image" /></a></p> <p>Refresh or reload the page.</p> <h3>Install site</h3> <p>When you are done, please change the permission of 'settings.php' file back to the way it was.</p> <table><tr><td><code>All necessary changes to ./sites/default and ./sites/default/settings.php have been made,<br /> so you should remove write permissions to them now in order to avoid security risks.<br /> If you are unsure how to do so, please consult the on-line handbook. </code></td> </tr></table><p>That's all. Good luck!</p> </div></div></div><!-- google_ad_section_end --><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/9" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">software</a></div><div class="field-item even" rel="dc:subject"><a href="/taxonomy/term/10" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">drupal</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/12" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">cms</a></div></div></div> Mon, 06 Jul 2009 09:21:43 +0000 jinlusuh 77 at http://basicconfig.com http://basicconfig.com/linuxsoftware/setup-configure-drupal-slackware-linux-tutorial#comments