1、建立数据库:
mysqladmin -u root -p create drupal
然后输入你所设置的密码。
2、下载drupal:
放到/var/www/html/
mv drupal-5.0-beta2 /var/www/html/
tar -zxvf drupal-5.0-beta2
mv drupal-5.0-beta2 drupal
cd drupal
3、进入drupal目录下/var/www/html/drupal/sits/default/default.settings.php
修改
$db_url = 'mysql://username:password@localhost/databasename'; 换成
$db_url = 'mysql://root:@localhost/drupaltest';
cd sites/
mkdir files
chmod o+w sites
chmod o+w files
4、service httpd start
service mysqld start
在浏览器中打开:
install
Ref:
阅读(857) | 评论(0) | 转发(0) |