3. Prepare web directory - 4 options

Contents

This phase of the tutorial explains how to move the extracted code to the right directory.

You may wish to use Allmice CMS code in 4 different ways:
3.1. In your local computer (localhost) using same code for one website only.
3.2. In your local computer (localhost) using same code for many websites.
3.3. In a remote server using same code for one website only.
3.4. In a remote server using same code for many websites.

Think, in which of these four ways you wish to use Allmice CMS and follow the instructions for such your choice.
We are assuming, that the web directories can be accessed from directory /var/www/html as it should be for Apache2 web servers on a modern Ubuntu (e.g. 18.04) or Debian system.

3.1. Use Allmice CMS in your local computer (localhost) using same code for one website only.
Suppose, that you wish to access the new website on browser using address http://localhost/my-website

Move-rename Allmice CMS code to the directory as part of the address:
sudo mv allmice-cms-classic-edition-v-1-2-4 /var/www/html/my-website
See example of this case: http://www.allmice.com/cms/get-started-tutorials

3.2. Use Allmice CMS in your local computer (localhost) using same code for many websites.
Suppose, that you wish to access the new website on browser using address http://localhost/my-website1
and that the code is in a directory called allmice-code-location.

Move-rename Allmice CMS code to the desired directory:
sudo mv allmice-cms-classic-edition-v-1-2-4 /var/www/html/allmice-code-location
Go to web root directory:
cd /var/www/html
Make a symbolic link from code to the address (ln -s existing_path new_link_name):
ln -s allmice-code-location my-website1

3.3. Use Allmice CMS in a remote server using same code for one website only.
Suppose, that you wish to access the new website on browser using address http://www.your-domain.com

Move-rename Allmice CMS code to the directory as part of the address:
sudo mv allmice-cms-classic-edition-v-1-2-4 /var/www/html/my-website

Make sure, that the DNS server of www.your-domain.com relates the domain to the IP address of your hosting server.
Make sure, that your web server configuration in your hosting server relates the domain name www.your-domain.com to the directory /var/www/html/my-website.


3.4. Use Allmice CMS in a remote server using same code for many websites.

Suppose, that you wish
to access the new website on browser using address http://www.site1.your-domain.com,
the domain www.site1.your-domain.com be related to directory /var/www/html/my-website1 in your web server
and that the code is in a directory called allmice-code-location.

Move-rename Allmice CMS code to the desired directory:
sudo mv allmice-cms-classic-edition-v-1-2-4 /var/www/html/allmice-code-location
Go to web root directory:
cd /var/www/html
Make a symbolic link from code to the address (ln -s existing_path new_link_name):
ln -s allmice-code-location my-website1

Check, that your DNS server of www.site1.your-domain.com relates this domain to the IP address of your hosting server.
Check, that your web server configuration in your hosting server relates the domain name www.site1.your-domain.com to the directory /var/www/html/my-website1.




Previous: 2. Extract the file | Next: 4. Change file access permissions
Install an Allmice CMS website
1. Download compressed Allmice CMS
2. Extract the file
3. Prepare web directory - 4 options
4. Change file access permissions
5. Prepare the database
6. Configuration if using www subdomain
7. Install the website