using six steps to install a drupal site

1. Install apache2 and MySQL5 in Linux.

2. Download Drupal 6.2
1) You can obtain Drupal from http://drupal.org/. Now we use drupal 6.2(http://drupal.org/drupal-6.2). The files are in .tar.gz format and can be extracted using most compression tools. You can also use following Unix command line to extract:
tar -zxvf drupal-6.2.tar.gz
This will create a new directory drupal-6.2/ containing all Drupal files and directories.
2) Move the contents of that directory into a directory within your web server's document root or your public HTML directory:
mv drupal-6.2/* drupal-6.2/.htaccess /var/www/html

3. Grant write permissions on configuration file. use following Unix command line:
chmod 777 sites/default/

4. Create database with MySQL
First, you must create a new database for your Drupal site here, 'databasename' is the name of the new database):
mysqladmin -u username -p create databasename
MySQL will prompt for the 'username' database password and then create the initial database files. Next you must login and set the access database rights:
mysql -u username -p
Again, you will be asked for the 'username' database password. At the MySQL prompt, enter following command:
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';
where
'databasename' is the name of your database. 'username' is the username of your MySQL account. 'password' is the password required for that username
To activate the new permissions, enter the following command:
FLUSH PRIVILEGES;

5. Run the install script
To run the install script point your browser to the base URL of your website (e.g., http://www.example.com).
 
You will be guided through several screens to set up the database, create tables,
 
add the first user account and provide basic web site settings. Use following unix command:
chmod 755 sites/default/

After you click save and continue, Drupal Installation Complete page will be displayed. Click “your new site”, you can use your new website now.

6. Add new module and theme into drupal
1) Install fckeditor module
•Download fckeditor module in drupal(http://ftp.drupal.org/files/projects/fckeditor-6.x-1.3-beta2.tar.gz)
Use following unix command to extract:
tar -zxvf fckeditor-6.x-1.3-beta2.tar.gz
Create new folder “modules” in sites/all folder
Move extracted fckeditor folder to sites/all/modules.

•Download fckeditor(http://www.fckeditor.net/nightly/FCKeditor_N.tar.gz)
tar -zxvf FCKeditor_N.tar.gz
Move extracted fckeditor folder to sites/all/modules/fckeditor.

•Explore your drupal demo website. Login and click administer-Site building-Modules.
Enable FCKeditor
2) Install new theme
•Download theme “Pixture” (http://drupal.org/node/251184)
Use tar command to Extract the theme
Create new folder “themes” in sites/all folder
Move extracted pixture folder to sites/all/themes.

•Explore your drupal demo website. Login and click administer-Site building-Themes.
Enable pixture theme and set it to default theme

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值