Skip to content

How to Install Vish Editor with Apache

Enrique Barra Arias edited this page Oct 2, 2015 · 7 revisions

How to Install ViSH Editor with Apache

  1. Previous requirements
    1. Generate SSH keys for GitHub
  2. Installation for development
    1. Configure Apache

  • A computer with:
    • Ubuntu 14.04
    • Apache
    • Internet connection

Install git:

sudo apt-get install git-core

To access to GitHub repositories via git you need to generate public and private keys. If you have already generated SSH keys for Github, you can skip this step.
To generate the ssh keys, you can follow the official github guide.

 

First off, you have to download the source code from git.
Go to your workspace folder and execute the following command to clone the ViSH Editor repository:

git clone git@github.com:ging/vish_editor.git

Then, copy the /configuration/configuration_example.js file to /configuration/configuration.js and fill all the configuration values.

cd /vish_editor
cp /configuration/configuration_example.js /configuration/configuration.js

Edit the file in /etc/apache2/sites-enabled (for example: /etc/apache2/sites-enabled/000-default.conf) If that file does not exists, create a symbolic link to sites-available:

cd /etc/apache2/sites-enabled/
sudo ln -s ../sites-available/000-default.conf 000-default.conf

In that file add the following lines, replacing #{vish_editor_folder} with the absolute path of your document root, for example /home/user/vish_editor/

	DocumentRoot #{vish_editor_folder}
	<Directory />
		Options FollowSymLinks
		AllowOverride None
		Require all granted
	</Directory>
	<Directory #{vish_editor_folder}/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>

Finally, restart apache.

sudo /etc/init.d/apache2 restart