A-A+

Installing Drupal on RimuHosting.com

2008年04月28日 技术文章 暂无评论 阅读 1 次

Installing Drupal on RimuHosting.com

Here is how to install Drupal on a Centos5 Linux installation, hosted on http://RimuHosting.com

  1. log in as root
  2. Update to latest version with: apt-get update ; apt-get upgrade
  3. Install modules with: yum -y install php-mysql mod_auth_mysql mysql-server php-gd php-mbstring
  4. Enable .htaccess: cp /etc/httpd/conf/httpd.conf httpd.sav
    vi /etc/httpd/conf/httpd.conf
    and change AllowOverride None to All
  5. Restart apache with: service httpd restart
  6. Now setup MySQL: mysqladmin -u root password rootsqlpassword
  7. Make sure mysqld and httpd start on boot by checking the boxes: webmin / system / bootup and shutdown
  8. Download your preferred version of Drupal and unarchive it with: tar -zxvf drupal-x.x.tar.gz
  9. Move drupal to a suitable directory: mv nameofdrupalfolder /var/www/drupal
  10. Make directories for contrib modules and themes:
    mkdir /var/www/modules
    mkdir /var/www/themes
  11. For a single site setup, /var/www/html is the root, so cd /var/www/html
  12. Link to copy of Drupal with
    ln -s /var/www/drupal/includes includes
    ln -s /var/www/drupal/misc misc
    ln -s /var/www/drupal/modules modules
    ln -s /var/www/drupal/profiles profiles
    ln -s /var/www/drupal/scripts scripts
    ln -s /var/www/drupal/themes themes
    cp /var/www/drupal/* .
    cp /var/www/drupal/.* .
    cp -R /var/www/drupal/sites .
    ln -s /var/www/themes sites/all/themes
    ln -s /var/www/modules sites/all/modules
  13. Make files directory and give the installer access to the sites directory:
    mkdir /var/www/html/files
    chmod 777 /var/www/html/files
    chmod 777 /var/www/html/sites/default
  14. Create a database (e.g. called drupal) using: webmin / servers / mysql
  15. visit the server's root web page and complete the installation using Drupal
  16. Secure sites access: chmod 775 /var/www/html/sites/default
  17. Well done! You are finished

给我留言

Copyright © 浩然东方 保留所有权利.   Theme  Ality 07032740

用户登录