Linux basic configurations http://www.basicconfig.com en Node count for taxonomy terms in Drupal 7 http://www.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://www.basicconfig.com http://www.basicconfig.com/content/node-count-taxonomy-terms-drupal-7#comments Drupal 7 subdomain clean url in Godaddy http://www.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://www.basicconfig.com http://www.basicconfig.com/content/drupal-7-subdomain-clean-url-godaddy#comments Sort file content in Linux http://www.basicconfig.com/content/sort-file-content-linux <!-- 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>Sometimes when we are working with files in Linux, there is a certain time that we need to sort content of files. There is a situation when we are copying or append a new file containing domains that we want to block in Squid block domain file, for example. Normally we would do that using 'cat new-block-domain-file &gt;&gt; /etc/squid/blockeddomains.acl' command. Suddenly, we got error when restarting the Squid daemon saying there's a duplicate domain in the blocked domains file. The way to solve this duplicate content in file is to sort and remove using Linux sort command and uniq command.</p> <p>Here are solution command to sort and delete duplicate entry in the content of file in Linux using sort and uniq command:</p> <table><tr><td><code>sort filename | uniq -u &gt; newfile</code></td> </tr></table><p>In the example above:</p> <ul><li>filename = file to be sort</li> <li>newfile = new file name</li> </ul><p>We need to save output to a new file because the sort command just print the output to the screen. If we want to permanently delete the duplicate entry in our file, delete the file with duplicate content and replace it with the new file that we just created with the command above.</p> <p>That's it. Hope it helps some new Linux users out there.</p> <p>If you want to read more about Squid cache proxy server, here is the link: <a href="/linuxnetwork/install-squid-in-slackware64-13.37">Install and configure Squid in Slackware</a></p> </div></div></div><!-- google_ad_section_end --> Thu, 09 Jan 2014 07:03:02 +0000 jinlusuh 354 at http://www.basicconfig.com http://www.basicconfig.com/content/sort-file-content-linux#comments Configure MariaDB in Slackware 14.1 http://www.basicconfig.com/linuxsoftware/configure-mariadb-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>MariaDB is a default database server pre-configured in Slackware 14.1 replacing the MySQL server. This tutorial will guide a Slackware beginner on how to setup and configure MariaDB in the most basic way. Oh don't worry about the command. MariaDB uses <em>mysql</em> as well. Let's begin the first step:</p> <p>1- Install MariaDB system database:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">mysql_install_db --user=mysql</span><br /> Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...<br /> OK<br /> Filling help tables...<br /> OK<br /><br /> To start mysqld at boot time you have to copy<br /> support-files/mysql.server to the right place for your system<br /><br /> PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !<br /> To do so, start the server, then issue the following commands:<br /><br /> '/usr/bin/mysqladmin' -u root password 'new-password'<br /> '/usr/bin/mysqladmin' -u root -h slackware password 'new-password'<br /><br /> Alternatively you can run:<br /> '/usr/bin/mysql_secure_installation'<br /><br /> which will also give you the option of removing the test<br /> databases and anonymous user created by default. This is<br /> strongly recommended for production servers.<br /><br /> See the MariaDB Knowledgebase at http://kb.askmonty.org or the<br /> MySQL manual for more instructions.<br /><br /> You can start the MariaDB daemon with:<br /> cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'<br /><br /> You can test the MariaDB daemon with mysql-test-run.pl<br /> cd '/usr/mysql-test' ; perl mysql-test-run.pl<br /><br /> Please report any problems with the '/usr/bin/mysqlbug' script!<br /><br /> The latest information about MariaDB is available at http://mariadb.org/.<br /> You can find additional information about the MySQL part at:<br /> http://dev.mysql.com<br /> Support MariaDB development by buying support/new features from<br /> Monty Program Ab. You can contact us about this at sales@montyprogram.com.<br /> Alternatively consider joining our community based development effort:<br /> http://kb.askmonty.org/en/contributing-to-the-mariadb-project/<br /><br /> root@slackware:~#<br /></code></td> </tr></table><p>2- Start MariaDB daemon. We need to make mysql daemon script executable to make it start at boot: </p> <table><tr><td><code>root@slackware:~# <span style="color:red;">chmod 755 /etc/rc.d/rc.mysqld </span><br /> root@slackware:~#<br /></code></td> </tr></table><p>Now we can start the daemon:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">/usr/bin/mysqld_safe --datadir='/var/lib/mysql' </span><br /> [1] 1714<br /> root@slackware:~# 140105 12:48:13 mysqld_safe Logging to '/var/lib/mysql/slackware.err'.<br /> 140105 12:48:13 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql<br /></code></td> </tr></table><p>3- Set root password or better, we can run '/usr/bin/mysql_secure_installation' which provides more options. The below example shows a finished running tool. You can choose what you want to do with your system.</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">/usr/bin/mysql_secure_installation</span><br /> /usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found<br /><br /> NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB<br /> SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!<br /><br /> In order to log into MariaDB to secure it, we'll need the current<br /> password for the root user. If you've just installed MariaDB, and<br /> you haven't set the root password yet, the password will be blank,<br /> so you should just press enter here.<br /><br /> Enter current password for root (enter for none): <span style="color:red;">Just press Enter here</span><br /> OK, successfully used password, moving on...<br /><br /> Setting the root password ensures that nobody can log into the MariaDB<br /> root user without the proper authorisation.<br /><br /> Set root password? [Y/n] <span style="color:red;">Y</span><br /> New password: <span style="color:red;">Enter password for MariaDB. It's invisible</span><br /> Re-enter new password: <span style="color:red;">Repeat password for MariaDB. It's invisible</span><br /> Password updated successfully!<br /> Reloading privilege tables..<br /> ... Success!<br /><br /> By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment.<br /><br /> Remove anonymous users? [Y/n] <span style="color:red;">Y</span><br /> ... Success!<br /><br /> Normally, root should only be allowed to connect from 'localhost'. This<br /> ensures that someone cannot guess at the root password from the network.<br /><br /> Disallow root login remotely? [Y/n] <span style="color:red;">Y</span><br /> ... Success!<br /><br /> By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment.<br /><br /> Remove test database and access to it? [Y/n] <span style="color:red;">Y</span><br /> - Dropping test database...<br /> ... Success!<br /> - Removing privileges on test database...<br /> ... Success!<br /><br /> Reloading the privilege tables will ensure that all changes made so far<br /> will take effect immediately.<br /><br /> Reload privilege tables now? [Y/n] <span style="color:red;">Y</span><br /> ... Success!<br /><br /> Cleaning up...<br /><br /> All done! If you've completed all of the above steps, your MariaDB<br /> installation should now be secure.<br /><br /> Thanks for using MariaDB!<br /> root@slackware:~#<br /></code></td> </tr></table><p>4- Test mariaDB:</p> <table><tr><td><code>root@slackware:~# <span style="color:red;">mysql -u root -p</span><br /> Enter password: <span style="color:red;">Enter MariaDB password. It's invisible.</span><br /> Welcome to the MariaDB monitor. Commands end with ; or \g.<br /> Your MariaDB connection id is 9<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;<br /></code></td> </tr></table><p>5- Create a new database:</p> <table><tr><td><code>MariaDB [(none)]&gt; <span style="color:red;">create database basicconfdb;</span><br /> Query OK, 1 row affected (0.00 sec)<br /><br /> MariaDB [(none)]&gt;quit;<br /></code></td> </tr></table><p>6- That's all.</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/mariadb" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">MariaDB</a></div><div class="field-item odd" rel="dc:subject"><a href="/taxonomy/term/7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux tutorials</a></div></div></div> Tue, 07 Jan 2014 07:55:09 +0000 jinlusuh 315 at http://www.basicconfig.com http://www.basicconfig.com/linuxsoftware/configure-mariadb-slackware-141#comments Install Drupal 6 website backup from hosting server in Slackware 14.1 http://www.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://www.basicconfig.com http://www.basicconfig.com/linuxsoftware/install-drupal-6-website-backup-hosting-server-slackware-141#comments Linux network tutorials http://www.basicconfig.com/linux-network-tutorials <!-- 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"><h2>Overview</h2> <p>Linux networking tutorials page.</p> <div class="services"> <div class="service-left grid_6 alpha"> <h2>Introduction to Linux networking</h2> <img src="/sites/all/themes/corporateclean/mockup/web-design.png" style="float:left; padding:0 10px 0 0;"/>Users have learned how to install Linux, practising a few basic Linux commands which enabled them to manage Linux system in the previous Linux basics and Linux administration tutorials. Now, user will be exposed to what Linux is all about, serving network. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="linuxnetwork">View page</a></div> </div> <div class="service-right grid_6 omega"> <h2>Linux network commands</h2> <img src="/sites/all/themes/corporateclean/mockup/graphic-design.png" style="float:left; padding:0 10px 0 0;"/>Linux is an operating system designed to served end user systems such as workstation and personal computer. Learn Linux network command commonly used to configure as basic as network interface card to the advanced server configuration. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="linuxnetwork/netcmd">View page</a></div> </div> </div> <div class="services"> <div class="service-left grid_6 alpha"> <h2>Install and configure linux servers</h2> <img src="/sites/all/themes/corporateclean/mockup/seo.png" style="float:left; padding:0 10px 0 0;"/>Here are some basic Linux server tutorials, hopefully can be useful for you to setup and configure your own Linux server. All tutorials are step by step instructions and some tutorials available with screenshot images. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="linuxservers">View page</a></div> </div> </div> </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/5" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux network</a></div></div></div> Sun, 15 Dec 2013 02:17:27 +0000 jinlusuh 212 at http://www.basicconfig.com http://www.basicconfig.com/linux-network-tutorials#comments Linux security tutorials http://www.basicconfig.com/linux-security-tutorials <!-- 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"><h2>Overview</h2> <p>Here are some Linux security tutorials:</p> <div class="services"> <div class="service-left grid_6 alpha"> <h2>Basic Linux security</h2> <img src="/sites/all/themes/corporateclean/mockup/web-design.png" style="float:left; padding:0 10px 0 0;"/>Computer security has become a critical subject in information technology system these days. If we looked back in history, the security threat has started a long time ago during 1970s when telephone system has been hacked. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="linuxsecurity">View page</a></div> </div> <div class="service-right grid_6 omega"> <h2>Setup firewall in Ubuntu</h2> <img src="/sites/all/themes/corporateclean/mockup/graphic-design.png" style="float:left; padding:0 10px 0 0;"/>There are two types of firewalls available in Linux, a packet filtering firewall and a proxy-based firewall. Most Linux users use a packet filtering firewall to setup a basic firewall for their system because Linux already came with firewall package by default. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="security/setup_firewall_ubuntu_using_ufw">View page</a></div> </div> </div> <div class="services"> <div class="service-left grid_6 alpha"> <h2>How to upgrade software</h2> <img src="/sites/all/themes/corporateclean/mockup/seo.png" style="float:left; padding:0 10px 0 0;"/>You can always use Slackware package management tool such as slackpkg to upgrade software or install security patches for your Slackware system. However, the ftp server mirrors took sometimes to update the latest software or security patches to their server. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="security/howto_upgrade_software_install_security_patch_slackware_linux">View page</a></div> </div> </div></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/13" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux security</a></div></div></div> Tue, 10 Dec 2013 14:08:21 +0000 jinlusuh 138 at http://www.basicconfig.com http://www.basicconfig.com/linux-security-tutorials#comments Linux basics tutorial http://www.basicconfig.com/linux/linux-basics-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"><h2>Overview</h2> <p>Every Linux user should learn Linux basics and how Linux works before they can use Linux, as a desktop operating system or as a server. Linux is not very hard too learn. If you have experience using other operating system before, you probably have to spend some times to get used with Linux environment, depends on what operating system you have used. It is very important to learn the basics of Linux operating system. Although you can find a step by step tutorial on how to setup Linux server, for example, but without basic Linux knowledge, you won't be able to understand what you are doing. Spend some times to learn basics of Linux would save your times in the future.</p> <div class="services"> <div class="service-left grid_6 alpha"> <h2>First boot into Linux terminal</h2> <img src="/sites/all/themes/corporateclean/mockup/web-design.png" style="float:left; padding:0 10px 0 0;"/>After finished the Linux installation process, Linux is going to reboot to complete the installation. Slackware Linux or Ubuntu server first boot will land you in a command line terminal. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="/linux_first_boot">View page</a></div> </div> <div class="service-right grid_6 omega"> <h2>Change Linux command line terminal</h2> <img src="/sites/all/themes/corporateclean/mockup/graphic-design.png" style="float:left; padding:0 10px 0 0;"/>In Linux, there are six command line terminals by default. What is that means? Linux command line terminal also called virtual console. In windows, it's called command prompt. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="/linux/change_terminal">View page</a></div> </div> </div> <div class="services"> <div class="service-left grid_6 alpha"> <h2>System startup process</h2> <img src="/sites/all/themes/corporateclean/mockup/seo.png" style="float:left; padding:0 10px 0 0;"/>Linux system startup process involves several important steps that Linux users need to know. This is vital in case of system boot up failure. By learning how Linux process start up, user can troubleshoot a broken system. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="/linux/startup">View page</a></div> </div> <div class="service-right grid_6 omega"> <h2>Linux file system structure overview</h2> <img src="/sites/all/themes/corporateclean/mockup/web-applications.png" style="float:left; padding:0 10px 0 0;"/>Linux file system structure overview is an introduction to file system directory hierarchy in Linux system. A Linux beginner might get confuse between Linux file system structure and Linux filesystem types. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="/linux/filesystem">View page</a></div> </div> </div> <div class="services"> <div class="service-left grid_6 alpha"> <h2>Filesystem types</h2> <img src="/sites/all/themes/corporateclean/mockup/web-design.png" style="float:left; padding:0 10px 0 0;"/>In this tutorial, we are going look at some Linux filesystems such as ext, ext2, ext3, Reiserfsand and other filesystems that Linux supports such as msdos, umsdos, vfat, proc, nfs, iso9660, hpfs, sysv, smb, ncpfs. <div style="clear:both; padding:10px 0 0 0; text-align:right;"><a class="more" href="/linux-basics/filesystem-types">View page</a></div> </div> </div></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/1" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">linux basics</a></div></div></div> Tue, 10 Dec 2013 05:34:44 +0000 jinlusuh 91 at http://www.basicconfig.com http://www.basicconfig.com/linux/linux-basics-tutorial#comments Install Drupal 6 in Ubuntu 11.10 brief http://www.basicconfig.com/blog/install-drupal6-ubuntu-11-brief <!-- 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>Here is the direct and brief version on how to install Drupal 6.22 in Ubuntu Desktop 11.10.</p> <p>1) Install LAMP server</p> <p>i) Open command line terminal.<br /> ii) Type: sudo su<br /> iii) Provide password.<br /> iv) Type: tasksel<br /> v) Choose 'lamp server' to install.<br /> vi) Start apache server: service apache2 reload<br /> vii) Add virtual site: cp /etc/apache2/sites-available/default /etc/apache2/sites-available/website-name-directory<br /> viii) Enable new website:<br /> - cd /etc/apache2/sites-available/<br /> - a2ensite website-name-directory</p> <p>2) Drupal installation.</p> <p>i) Create database for drupal (in mysql).<br /> ii) Download drupal and extract it.<br /> iii) Copy to /var/www/your-website-directory<br /> iv) Open web browser and begin drupal installation.<br /> v) All should be well accept 'cron' and 'GD library'.</p> <p>3) Install GD library. Type: apt-get install php5-gd</p> <p>4) Restart web server. Type: service apache2 reload</p> <p>5) For cron, just 'run cron manually' or use poormanscron module.</p> <p>6) Reload drupal 'status report' page to confirm.</p> <p>7) Enable clean URL:</p> <p>i)Check rewrite_module: apache2ctl -M</p> <p>ii) Enable rewrite_module: a2enmod rewrite</p> <p>iii) Restart web server: service apache2 reload</p> <p>iv) Set directory permission: vim sites-enabled/website-name-directory</p> <p> Options Indexes FollowSymLinks MultiViews<br /> AllowOverride All<br /> Order allow,deny<br /> allow from all</p> <p> Options Indexes FollowSymLinks MultiViews<br /> AllowOverride All<br /> Order allow,deny<br /> allow from all</p> <p> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/</p> <p> AllowOverride All<br /> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br /> Order allow,deny<br /> Allow from all</p> <p>v) Set directory permission: vim sites-enabled/000-default</p> <p> Options Indexes FollowSymLinks MultiViews<br /> AllowOverride All<br /> Order allow,deny<br /> allow from all</p> <p> Options Indexes FollowSymLinks MultiViews<br /> AllowOverride All<br /> Order allow,deny<br /> allow from all</p> <p> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/</p> <p> AllowOverride All<br /> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br /> Order allow,deny<br /> Allow from all</p> <p>9) Restart apache again:<br /> service apache2 reload</p> <p>10) Troubleshooting</p> <p>1) Included in .htaccess:</p> <p> RewriteEngine on<br /> RewriteBase /<br /> RewriteCond %{REQUEST_FILENAME} !-f<br /> RewriteCond %{REQUEST_FILENAME} !-d<br /> RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]</p> <p># Note:<br /> # Change 'RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]' to 'RewriteRule ^(.*)$ website-directory-name/index.php?q=$1 [L,QSA]' sometimes work on some system depends on configuration.<br /> # Change 'RewriteBase /' to 'RewriteBase /website-name-directory' depends on configuration.</p> <p>2) Check RewriteBase in /etc/apache2/sites-enabled/website-name-directory and .htacess:</p> <p># RewriteBase website-name-directory</p> <p>or</p> <p># RewriteBase /</p> <p>Remove comment (#) based on your configuration.</p> </div></div></div><!-- google_ad_section_end --> Tue, 15 Nov 2011 04:38:33 +0000 jinlusuh 24 at http://www.basicconfig.com http://www.basicconfig.com/blog/install-drupal6-ubuntu-11-brief#comments Install virtualbox on Ubuntu http://www.basicconfig.com/linuxsoftware/install-virtualbox-ubuntu <!-- 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 Virtualbox on Ubuntu. We use 'virtualbox-qt 4.1.2-dfsg-1ubuntu1', a Virtualbox package for Ubuntu Desktop version 11.10 for this example.</p> <h3>Download and install Virtualbox</h3> <p>It's easier to download and install Virtualbox using Ubuntu Software Center. Open Ubuntu Software Center from the left panel menu on the desktop and type 'virtualbox' in the search textbox. See screenshot example below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox01.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox01.png" alt="Ubuntu Virtualbox installation image" class="imgp_img" width="300" height="182" /></a></p> <p>Choose Virtualbox from the result and click install button to begin the installation. If you want to read more information about this software, click 'more about' link before you click the install button. There are some comments and reviews from other users about the software.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox-about02.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox-about02.png" alt="Virtualbox brief description image" class="imgp_img" width="300" height="182" /></a></p> <p>After we click the 'Install' button, Ubuntu need to authenticate, so we have to provide our account password.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox-authenticate03.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox-authenticate03.png" alt="Ubuntu install software authenticate image" class="imgp_img" width="300" height="196" /></a></p> <p>Wait for download to finish and Ubuntu Software Center will automatically install Virtualbox for us.</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox-install04.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox-install04.png" alt="Ubuntu Virtualbox install image" class="imgp_img" width="300" height="182" /></a></p> <h2>Setting up virtualbox on Ubuntu</h2> <p>Now that we have Virtualbox installed in our computer, we are going to setup a virtual machine on Ubuntu. There is an explanation here in this window about Virtualbox Manager. It's important so here what it says:</p> <p>Oracle VM Virtualbox Manager: <i>The left part of this window is a list of all virtual machines on your computer. The list is empty now because you haven't created any virtual machines yet. In order to create a new virtual machine, press the New button in the main tool bar located at the top of the window. You can press the F1 key to get instant help, or visit <a href="https://www.virtualbox.org">virtualbox website</a> for the latest information and news.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/virtualbox-manager01.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/virtualbox-manager01.png" alt="Virtualbox Manager image" class="imgp_img" width="300" height="225" /></a></p> <p>At the top left of the window, there is a 'New' button. Click on this button to create a new virtual machine.</p> <p><b>VM Name and OS</b></p> <p>A new window pops up. This is a wizard to create a new virtual machine. Here is what it says:</p> <p>Oracle VM Virtualbox Manager: <i>Enter a name for the new virtual machine and select the type of the guest operating system you plan to install onto the virtual machine. The name of the virtual machine usually indicates its software and hardware configuration. It will be used by all VirtualBox components to identify your virtual machine.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/vm02-name-os-type.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/vm02-name-os-type.png" alt="Choose Virtualbox name and OS type image" class="imgp_img" width="300" height="199" /></a></p> <p>The instruction is clear. So type a name for our virtual machine's name such as 'Ubuntu Server'. In the OS Type section, choose 'Linux' for Operating System and 'Ubuntu' in Version. Click Next when you are done.</p> <p><b>Memory</b></p> <p>Now we need to provide memory size for our virtual machine. Here what it says in the wizard's window:</p> <p>Oracle VM Virtualbox Manager: <i>Select the amount of base memory (RAM) in megabytes to be allocated to the virtual machine. The recommended base memory size is 512 MB.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/vm03-memory.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/vm03-memory.png" alt="Virtualbox choose memory size image" class="imgp_img" width="300" height="199" /></a></p> <p>If you have large RAM in your computer (more than 4GB) and you are planning to install Ubuntu Desktop or Windows, then you can provide more memory size, for example 1024MB. Click Next when you are done.</p> <p><b>Create new virtual disk</b></p> <p>Our next task is to create hard disk for our virtual machine. Here is the explanation from Virtualbox Manager:</p> <p>Oracle VM Virtualbox Manager: <i>If you wish you can now add start-up disk to the new machine. You can either create a new disk or select one from the list or from another location using the folder icon. If you need a more complex virtual disk setup, you can skip this step and make the changes to the machine settings once the machine is created. The recommended start-up disk is 8.00GB.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/vm04-virtual-hard-disk.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/vm04-virtual-hard-disk.png" alt="Virtualbox create new hard disk image" class="imgp_img" width="300" height="199" /></a></p> <p>This is our first time setting up Ubuntu Virtualbox, so choose create new hard disk. Click Next to define our hard disk space.</p> <p><b>Welcome to the new virtual disk creation wizard</b></p> <p>Another wizard is going to help us create hard disk space for our virtual machine. The wizard's explanation is excellent:</p> <p>Create New Virtual Disk Wizard: <i>This wizard will help you to create a new virtual disk for your virtual machine. Use the Next button to go to the next page of the wizard and the Back button to return to the previous page. You can also press Cancel if you want to cancel the execution of this wizard. Please choose the type of file that you would like to use for the new virtual disk. If you do not need to use it with other virtualization software you can leave this setting unchanged.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/create-virtual-disk01.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/create-virtual-disk01.png" alt="Virtualbox hard disk creation image" class="imgp_img" width="300" height="218" /></a></p> <p>We are going to install Ubuntu server as guest operating system in this virtual machine. So we take the default setting and click Next.</p> <p><b>Virtual disk storage details</b></p> <p>Create New Virtual Disk Wizard: <i>Please choose whether the new virtual disk file should be allocated as it is used or if it should be created fully allocated. A dynamically allocated virtual disk file will only use space on your physical hard disk as it fills up, although it will not shrink again automatically when space on it is freed. A fixed size virtual disk file may take longer to create on some systems but is often faster to use.</i></p> <p><b>Virtual disk file location and size</b></p> <p>Create New Virtual Disk Wizard: <i>Please type the name of the new virtual disk file into the box below or click on the folder icon to select a different folder to create the file in.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/create-virtual-disk02.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/create-virtual-disk02.png" alt="Image" class="imgp_img" width="300" height="218" /></a></p> <p><b>Summary</b></p> <p>This window shows a summary of how we configured our virtual machine:</p> <p>Create New Virtual Disk Wizard: <i>You are going to create a new virtual disk with the following parameters:</i></p> <table><tr><td><code>File type:<br /> VDI (VirtualBox Disk Image)<br /> Details:<br /> Fixed size storage<br /> Location:<br /> /home/kkcj/VirtualBox VMs/Ubuntu Server/Ubuntu Server.vdi<br /> Size:<br /> 10.00 GB (10737418240 B) </code></td> </tr></table><p>Create New Virtual Disk Wizard: <i>If the above settings are correct, press the Create button. Once you press it the new virtual disk file will be created.</i></p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/create-virtual-disk03.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/create-virtual-disk03.png" alt="Image" class="imgp_img" width="300" height="218" /></a></p> <p>This is it. Click Create button to begin creating a new virtual disk. The process will take about a minute (or less). When it's done. we'll get a new virtual machine in the left pane of the window as in the picture below:</p> <p><a href="http://www.basicconfig.com/files/imagepicker/2/done-vm-disk-created.png" target="_blank"><img src="http://www.basicconfig.com/files/imagepicker/2/thumbs/done-vm-disk-created.png" alt="Image" class="imgp_img" width="300" height="225" /></a></p> <p>That's it. Now prepare Ubuntu server installation disk to install our first virtual machine.</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></div> Mon, 31 Oct 2011 07:25:31 +0000 jinlusuh 75 at http://www.basicconfig.com http://www.basicconfig.com/linuxsoftware/install-virtualbox-ubuntu#comments