A-A+
Installing Drupal on RimuHosting.com
Installing Drupal on RimuHosting.com
Here is how to install Drupal on a Centos5 Linux installation, hosted on http://RimuHosting.com
- log in as root
- Update to latest version with:
apt-get update ; apt-get upgrade
- Install modules with:
yum -y install php-mysql mod_auth_mysql mysql-server php-gd php-mbstring
- Enable .htaccess:
cp /etc/httpd/conf/httpd.conf httpd.sav
and change
vi /etc/httpd/conf/httpd.confAllowOverride None
toAll
- Restart apache with:
service httpd restart
- Now setup MySQL:
mysqladmin -u root password rootsqlpassword
- Make sure mysqld and httpd start on boot by checking the boxes:
webmin / system / bootup and shutdown
- Download your preferred version of Drupal and unarchive it with:
tar -zxvf drupal-x.x.tar.gz
- Move drupal to a suitable directory:
mv nameofdrupalfolder /var/www/drupal
- Make directories for contrib modules and themes:
mkdir /var/www/modules
mkdir /var/www/themes - For a single site setup,
/var/www/html
is the root, socd /var/www/html
- 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 - 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 - Create a database (e.g. called drupal) using:
webmin / servers / mysql
- visit the server's root web page and complete the installation using Drupal
- Secure sites access:
chmod 775 /var/www/html/sites/default
- Well done! You are finished