您的位置:首页 > 运维架构 > Linux

linux debian 4.0安装drupal内容管理系统全过程

2009-09-14 14:36 309 查看
#installing drupal on 192.168.0.201 for test:
1.root@p1:/var/www#ps -ef | grep apache2
root 3162 1 0 13:39 ? 00:00:00 /usr/sbin/apache2 -k start
postfix 3163 3162 0 13:39 ? 00:00:00 /usr/sbin/apache2 -k start
postfix 3170 3162 0 13:39 ? 00:00:00 /usr/sbin/apache2 -k start
postfix 3172 3162 0 13:39 ? 00:00:00 /usr/sbin/apache2 -k start
postfix 3177 3162 0 13:39 ? 00:00:00 /usr/sbin/apache2 -k start
2.unzip drupal.6.2.1 -x
mv drupal.6.2.1 drupal
mv drupal /var/www/drupal
chown -R postfix /drupal
chmod -R 755 /drupal
cp sites/default/default.setting.php settings.php
chmod 755 setings.php
chown postfix setings.php
3.vim /etc/php5/apache2/php.ini
session.auto_start = 0
memory_limit = 16M
4.vim /etc/apache2/sites-available/default
<VirtualHost 192.168.0.201:80>
ServerAdmin webmaster@localhost
ServerName in.eff.com
DocumentRoot /var/www/drupal
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/drupal>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
#FCGIWrapper /usr/bin/php4-cgi .php4 .php
FCGIWrapper /usr/bin/php5-cgi .php
Options ExecCGI SymLinksIfOwnerMatch
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On

</VirtualHost>
5. /etc/init.d/apache2 restart
6.Mysql -uroot -p***
create database drupal default character set utf8;
grant all on drupal.* to 'drupal'@localhost identified by '123';
7.modify hosts
192.168.0.201 in.eff.com
8.http://in.eff.com
next step
till the ends
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: