Created
December 15, 2016 07:29
-
-
Save lianglee/e97c20dc003ad2e3458b2879235efd0d to your computer and use it in GitHub Desktop.
Install Ossn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - Install PHP , with php-mycrypt, php-curl , php-gd and mysql extension. | |
| - Install MySQL and Apache (with mod_rewrite enabled) on your server. | |
| - Create a databas and database user. | |
| - extra premium version into /var/www/html/ | |
| - create new folder /var/www/ossn_data/ | |
| Visit yourwebsite.com/premium/ | |
| Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘ossn.conf’ on your virtual server: | |
| touch /etc/apache2/sites-available/ossn.conf | |
| ln -s /etc/apache2/sites-available/ossn.conf /etc/apache2/sites-enabled/ossn.conf | |
| vi /etc/apache2/sites-available/ossn.conf | |
| Then, add the following lines: | |
| <VirtualHost *:80> | |
| ServerAdmin admin@your-domain.com | |
| DocumentRoot /var/www/html/premium/ | |
| ServerName your-domain.com | |
| ServerAlias www.your-domain.com | |
| <Directory /var/www/html/ossn/> | |
| Options FollowSymLinks | |
| AllowOverride All | |
| Order allow,deny | |
| allow from all | |
| </Directory> | |
| ErrorLog /var/log/apache2/your-domain.com-error_log | |
| CustomLog /var/log/apache2/your-domain.com-access_log common | |
| </VirtualHost> | |
| Remove the 000-default.conf file: | |
| rm /etc/apache2/sites-enabled/000-default.conf | |
| Run: | |
| chown www-data:www-data -R /var/www/html/premium/ | |
| service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment