-
Notifications
You must be signed in to change notification settings - Fork 0
How to Install Vish Editor with 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 [email protected]: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
Create a new file in /etc/apache2/sites-available and link it to sites-enabled.
cd /etc/init.d/apache2/sites-enabled/
sudo ln -s ../sites-available/000-default.conf 000-default.conf
Edit the file (for example: /etc/apache2/sites-enabled/default) 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