Install Vanilla Forums on Debian Squeeze with Nginx


Vanilla is an open-source multi-lingual forum software written in PHP. It’s easy to install and use, with lot’s of addons and themes to choose from. If you are looking for a super fast and ridiculously easy to use forum software that can seamlessly integrate with your existing website on your Linux Virtual Server then Vanilla is just what you are looking for.

Requirements

Download

Navigate to the /var/www directory.

cd /var/www

To download Vanilla with wget use the following command:

wget http://static-cl1.vanilladev.com/www.vanillaforums.org/uploads/addons/RQSIVV7WTV4P.zip

If the link above doesn’t work, use the download button on this page to download the latest version of Vanilla.

Unzip the archive and change the permissions as follows:

unzip RQSIVV7WTV4P.zip
chown -R www-data: vanilla

Configure Nginx

Create a new server block for your forum with the following content.

server {
  server_name yourvanilla.com;
  listen 80;
  root /var/www/vanilla;
  access_log /var/log/nginx/yourvanilla.com.access.log;
  error_log /var/log/nginx/yourvanilla.com.error.log;
  index index.php;
  location / {
    try_files $uri $uri/ @rewrites;
  }
  location @rewrites {
    rewrite ^ /index.php last;
  }
  location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
    access_log off;
    expires max;
  }
  location ~ /\.ht {
    deny  all;
  }
  location ~ \.php {
    fastcgi_index index.php;
    fastcgi_split_path_info ^(.+\.php)(.*)$;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  }
}

Do not forget to restart Nginx after making changes.

Configure PHP

Open /etc/php5/fpm/php.ini file and change:

file_uploads = On

Do not forget to restart PHP-FPM after making the changes.

Create a MySQL database

mysql -u root -p
CREATE DATABASE IF NOT EXISTS `vanilla` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
GRANT ALL PRIVILEGES ON vanilla.* TO vanillauser@localhost IDENTIFIED BY 'PassWord';
FLUSH PRIVILEGES;

Installation

Open your browser and go to your new website address then follow the easy steps in the browser installer.

Of course you don’t have to do any of this if you have one of our Linux Virtual Servers, in which case you can simply ask our expert linux admins to install this for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

 

Tutorials
How to install phpMyAdmin with HHVM, Nginx and MariaDB on an Ubuntu 14.04 VPS
Tutorials
How to Install phpwcms on a CentOS 7 VPS
Tutorials
How to install The Bug Genie Issue Tracker on a CentOS 7 VPS
There are currently no comments.