so this is my first blog post evar! I really dislike to call it that, and for sure the name will evolve over time thanks to drupal.
so, first content will be my experience with drupal 6.13 (as of today 7/24/2009), with the godaddy.com free linux shared webhosting service that came with my domain name = 0fnords.net little background on 0fnords.net - just gotta mention the illuminatus trillogy, by robert anton wilson + robert shea, one of the greatest books -- 0fnords is the idea that "Fnord is the typographic representation of disinformation or irrelevant information intending to misdirect, with the implication of a worldwide conspiracy" per wikipedia, we here @ 0fnords.net will dispell the disinformation, or who knows maybe we're just propagating it! its a worldwide conspiracy, or not =) see the fnords! really, read his book, RAW and tom robbins are equivelants of literary gods =)
HOWTO: Godaddy FREE linux shared webhosting + Drupal 6.x
-
USER=username
-
PASS=password
-
HOST=www.$domain.xxx
# wget http://ftp.drupal.org/files/projects/drupal-6.13.tar.gz
# tar vxzf drupal-6.12.tar.gz
# mv drupal-6.12 drupal
# cd drupal
# ncftp -u $user $host
ncftp> mkdir drupal
ncftp> cd drupal
ncftp> mput -R * put .htaccess
ncftp> chmod o+w sites/default
** del fuck-o **
the File Manager @
godaddy's website gives this error just navigating/changing permissions/deleting the /drupal/sites/default dir!
Error Cannot read directory
solution: do not use ncftp (command-line client) to chmod ANYTHING on godaddy's linux ftp server, use godaddy's FILE MANAGER!?!@ (plain + simple)
godaddy's FILE MANAGER screen
direct line to the godaddy file manager = https://hostingmanager.secureserver.net/RedirectSCC.aspx?app=filemanager
-> /drupal/sites/default
-> select settings.php
-> PERMISSIONS
-> ADVANCED PERMISSIONS
-> set RWX,RWX
CLEAN URLs
use godaddy's FILE MANAGER to navigate... "EDIT" the /drupal/.htaccess file and uncommented and change the RewriteBase section like so ::
RewriteBase /drupal
Saved my ammendment via the little "disk" icon in the top-left of the screen (in "File Manager"s internal Text Editor).
Then, browsed to =>> http://www.0fnords.net/drupal/admin/settings/clean-urls
- ENABLED Clean URLs, and away I went!
Modules and Themes
I created some directories, first locally on my hard drive @ /home/fnord0/drupal-6.13/sites/all - called "themes" and "modules" - then I proceeded to download all my desired themes and modules to the proper directory, like so ;;
EXAMPLE: I wanted a module called ccfilter ... so I went to it's webpage, and found the dowload link, and downloaded it to my /home/fnord0/drupal-6.13/sites/all/modules directory on my local hard drive, and extracted it via ;
# wget http://ftp.drupal.org/files/projects/ccfilter-6.x-1.3.tar.gz
# tar vxzf ccfilter-6.x-1.3.tar.gz
EXAMPLE CONTINUED: from there, read the README.txt, and determine what needs to be done to install it... which for ccfilter, the instructions are as follows ;;
INSTALLATION INSTRUCTIONS
---
1. Extract this module to sites/[ all | {domain} ]/modules folder.
2. If use filter type ccfilter:smileys, download file http://hotel-prog.ru/sites/all/files/smileys.zip and extract into smileys folder in this module folder
3. If use filter type ccfilter:tooltip download scripts and place into lib folder in this module folder
(files: jquery.tooltip.pack.js,jquery.bigframe.pack.js,jquery.dimensions.pack.js)
tooltip @ http://bassistance.de/jquery-plugins/jquery-plugin-tooltip
bigframe @ http://plugins.jquery.com/node/46/release
dimensions @ http://plugins.jquery.com/project/dimensions (use last version this scripts)
2. Login as the user who has administrator permissions (user/1).
3. Activate ccfilter in the "Filters" category, on the Administer > Site building > Modules page at admin/build/modules.
EXAMPLE CONTINUED: so, I did just as the README.txt file explained I should do ::
root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter# wget http://hotel-prog.ru/sites/all/files/smileys.zip root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter# unzip smileys.zip
root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter# mkdir lib
root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter# cd lib
root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter/lib# wget http://plugins.jquery.com/files/bgiframe_2.1.1.zip root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter/lib# wget http://jquery.bassistance.de/tooltip/jquery.tooltip.zip
root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter/lib# wget http://plugins.jquery.com/files/dimensions_1.2.zip root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter/lib# unzip bgiframe_2.1.1.zip
root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter/lib# unzip jquery.tooltip.zip
root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter/lib# unzip dimensions_1.2.zip
root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter/lib# cp -p bgiframe_2.1.1/jquery.bgiframe.pack.js ./ root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter/lib# cp -p dimensions_1.2/jquery.dimensions.pack.js ./ root@leviathan:~/drupal-6.13/sites/all/modules/ccfilter/lib# cp -p jquery-tooltip/jquery.tooltip.pack.js .
EXAMPLE CONTINUED: from here we need to put our data on the webserver, via FTP - in my example here, my local directory will be ~/drupal/sites/all ::
# cd ~/drupal/sites/all
# ncftp -u $user $host
(( type your password ))
ncftp> cd /drupal/sites/all
ncftp> mput -R *
- log in to yr site, as the account with administrator permissions (user/1).
- next, we activate ccfilter in the "Filters" category @ Administer > Site building > Modules page at admin/build/modules.
- now, I used ccfilter as the example, but hopefully I was able to convey to you so that you get the idea... follow the same overal methodology, and installing themes and modules to /drupal/sites/all will be simple!
Godaddy + PHP 5.x INI file and Memory Limit
you can change the maximum amount of memory a script may consume on the godaddy shared linux webserver (default = 16MB)
create a file in yr GoDaddy FREE webhosting root directory called php5.ini [ memory_liist = $value ], and add the following line/code and save ::
memory_limit = 96M
Godaddy FREE webhosting + PHPinfo (determine PHP settings)
easy enuff, just create a .php file (for example, call it phpinfo.php) in a directory under the root of drupal's installation folder, fill it with the following code ::
<?php
phpinfo();
php?>
save the file, and browse to it in your web browser, this will tell you all the CURRENTLY active PHP settings, delete it when completed.
UPDATE 09/12/2009 :: godaddy.com, mod_rewrite, .htaccess, and Drupal
Initially I installed drupal into it's own subidrectory called "drupal" ... per the webserver configuration, my home directory is chroot'd as /, then I have my drupal installation @ /drupal
over time, I got to disliking accessing my website @ http://www.0fnords.net/drupal, instead I wanted to keep all files and content where it resided, but I wanted all web visitors to be able to view my website @ http://www.0fnords.net while behind the scenes pulling all content from http://www.0fnords.net/drupal - after some searching I located this post titled "Drupal installed in subdirectory but made to appear in root" and it turned out to be exactly the solution I was looking for! this is what I did ;;
using godaddy's FILE MANAGER I created an .htaccess in my webhosting root directory (called the html folder in the FILE MANAGER GUI) with the following text using the "EDIT" icon in godaddy's FILE MANAGER ::
Options -Indexes
RewriteEngine on
Options +FollowSymLinks
RewriteCond %{HTTP_HOST} !^www\.0fnords\.net$ [NC]
RewriteRule .* http://www.0fnords.net/ [L,R=301]
RewriteRule ^$ drupal/index.php [L]
RewriteCond %{DOCUMENT_ROOT}/drupal%{REQUEST_URI} -f
RewriteRule .* drupal/$0 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* drupal/index.php?q=$0 [QSA]
Then in drupal/.htaccess, I disabled the mod_rewrite instructions by changing "<IfModule mod_rewrite.c>" to ::
<IfModule XXXmod_rewrite.c>
Finally, in drupal/sites/default/settings.php, I uncommented the line "$base_url = 'http://www.mysite.com';" and change the line to read ::
$base_url = 'http://www.0fnords.net';