santaclaus 发表于 2018-5-15 13:12:33

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

#installing drupal on 192.168.0.201 for test:
1.root@p1:/var/www#ps -ef | grep apache2
root      3162   10 13:39 ?      00:00:00 /usr/sbin/apache2 -k start
postfix   316331620 13:39 ?      00:00:00 /usr/sbin/apache2 -k start
postfix   317031620 13:39 ?      00:00:00 /usr/sbin/apache2 -k start
postfix   317231620 13:39 ?      00:00:00 /usr/sbin/apache2 -k start
postfix   317731620 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
页: [1]
查看完整版本: linux debian 4.0安装drupal内容管理系统全过程