Book
- Drupal - Installation
- Drupal - Localization
- Drupal - Administration
- Drupal - Optimization
- Drupal - Security
- Drupal - Look and Feel
- Drupal - Garland Adjustments
- Drupal - CSS Tweaks
- Drupal - Outlook of Forms
- Drupal - Form Behavior
- Drupal - Node Form Buttons
- Drupal - jQuery
- Drupal - ExtJS
- Drupal - Custom Themes
- Drupal - Miscellaneous Themes
- Drupal - Superfish Menus
- Drupal - Contemplate
- Drupal - Iconizer
- Drupal - On Mobile Devices
- Drupal - More Look and Feel
- Drupal - Hierarchical Select
- Drupal - Panels
- Drupal - Zen Theme
- Drupal - jCarousel
- Flash with Drupal
- PSD-to-CSS online converter
- Drupal - Uploads
- Drupal - Navigation
- Drupal - Bookmarks (per-user menu)
- Drupal - Click Path
- Drupal - Keyboard Shortcuts
- Drupal - Flagging (and bookmarking)
- Drupal - Outline Designer
- Drupal - Recent Changes
- Drupal - Relevant Content
- Drupal - Simple Menu
- Drupal - Other Menu Modules
- Drupal - Other Navigation Modules
- Drupal - Russian search and keywords
- Drupal - Web Links
- Drupal - Improvements
- Drupal - Taxonomy and Views
- Drupal - Input Formats
- Drupal - Images
- Drupal - Data Presentation
- Drupal - Multimedia
- Drupal - Gadgets
- Drupal - Data Analysis
- Drupal - Geospatial
- Drupal - FAQ
- Drupal Resources
1. Configure Apache
- <VirtualHost *:80>
- ServerName drupal-server-name:80
- php_flag register_globals off
- php_flag allow_url_fopen off
- php_flag safe_mode off
- php_flag session.use_trans_sid off
- php_value memory_limit 40M
- php_value upload_max_filesize 32M
- php_value post_max_size 32M
- RewriteEngine On
- DocumentRoot /var/www/drupal
- <Directory /var/www/drupal>
- Options -Indexes -ExecCGI +FollowSymLinks -MultiViews
- DirectoryIndex index.php
- AllowOverride All
- RewriteBase /
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
- </Directory>
- </VirtualHost>
2. Configure MySQL
Either do it manually
create database drupal character set 'utf8'; grant all privileges on drupal.* to drupal@localhost identified by 'drupal'; flush privileges;
Or use the phpMyAdmin web interface. Set collation to utf8_general_ci.
3. Install Drupal
I started my installation as described in the fast drupal blog start.
Download distributive from www.drupal.org or www.drupal.ru. Upload it into document root of your site and unroll
cd /var/www/ tar -zxvpf drupal-x.x.tar.gz mv drupal-x.x drupal
Manually copy settings.php from defaults and give apache write permissions to it. In Windows give full access to the file to Everyone. Also create a folder for uploading files on the site.
cd drupal/sites/default cp default.settings.php settings.php chmod a+w settings.php mkdir files chown apache:apache files
Point your browser to main page of your site and answer 3 wizard screens of questions.When done, remove write permissions from settings:
chmod 555 sites/default/settings.php
Now you can create articles (Create content >> Story), register users, write comments and subscribe to RSS.
4. Cron
Setup a cron job for routine drupal operations
cat > /etc/cron.hourly/drupal /usr/bin/wget http://mysite.com/drupal/cron.php -O - > /dev/null 2>&1 ^D chmod +x /etc/cron.hourly/drupal
If the server runs behind corporate proxy, you need to patch include/common.inc as described here and here2. Then restart drupal and surf to http://mysite.com/admin/settings/proxy.
5. Extending Drupal
Чтобы установить сторонний модуль, его обычно надо закачать на сервер и разархивировать в папку sites/all/modules/<module name>. Может также потребоваться выставить разрешения на чтение (и возможно, запись) в файловой системе. После этого он, как и встроенные модули, появится в интерфейсе администратора, где его надо включить.
Для установки темы оформления ее, как и модуль, надо закачать на ваш сервер в папку sites/all/themes/<theme name>. Далее ее можно будет выбрать в меню сайта Administer -> Site building -> Themes. Для простых самописных тем, состоящих из одного файла .css и где нет отдельных файлов .tpl, эти файлы шаблонов следует искать в папке themes/engines/phptemplate.

Comments
Post new comment