# AVSCMS 8.2 Documentation

## I. Server Requirements

Please make sure that your server meets the following configuration.
If you are unsure, contact your hosting company / server administrator for
confirmation.

- Linux Server
- Apache Web Server/Nginx
  - Support for Mod_rewrite

- MySQL / MySQLi
- PHP 5.x / 7.x (mod_php/php-fpm)
  - Support for GD2 Library
  - Support for MySQL / MySQLi
  - Support for Curl
  - Support for zip

  > #### Recommended PHP Configuration

  - safe_mode off
  - open_basedir off
  - max_execution_time 7200
  - max_input_time 7200
  - memory_limit (with 512MB more then the maximum video upload size)
  - post_max_size 1024M (maximum video upload size)
  - upload_max_size 1024M(maximum video upload size)
  - shell_exec() and exec() should be allowed
  - register_argc_argv on
- PHP CLI 5.6+
- FFmpeg (Recommended Version: 4+)

## II. Installation and Configuration Instructions

1. Edit include/config.paths.php and set $config['BASE_URL'] to your site's url.
2. OPTIONAL: If you use a subdirectory for your installion set $config['RELATIVE'] to your subdirectory (eg: $config['RELATIVE'] = '/subdirectory')!
3. OPTIONAL: If you use a subdirectory for your installation edit loader.php and set $relative to your subdirectory (eg: $relative = '/subdirectory')!
4. Create a database. Edit include/config.db.php and set the database information (name, user and password).
5. Import the sql dump from sql/avs.sql in your database (most likely using phpMyAdmin).
6. Upload all files and folders from /upload to your server.
7. Chmod following files and directories to 0777. You can also fix the file/directory permissions from the admin panel: Settings > General > System Check

> /include/config.local.php
> /cache/frontend
> /cache/backend
> /images/logo
> /images/notice_images
> /images/notice_images/thumbs
> /media/albums
> /media/categories/album
> /media/categories/video
> /media/csv
> /media/photos
> /media/photos/tmb
> /media/player/logo
> /media/users
> /media/users/orig
> /media/videos/tmb
> /media/videos/vid
> /media/videos/h264
> /templates/backend/default/analytics/analytics.tpl
> /templates/emails
> /templates/emails/*.tpl
> /templates/frontend/(your_template)/static/*.tpl
> /tmp/albums
> /tmp/avatars
> /tmp/downloads
> /tmp/logs
> /tmp/sessions
> /tmp/thumbs
> /tmp/uploader
> /tmp/update
> /aembed.sh

8. Go to www.domain.com/siteadmin (login using: admin/admin) and start configuring your website.

9. You can use the Google Video Sitemap generator using the link: http://www.yourdomain.com/sitemap.php

10. Enable non-www to www redirection (domain.com to www.domain.com) by editing the .htaccess file and replacing "domain.com" with your domain name.

## III. Customer Support

If you need help installing or configuring your script, we offer professional installation service for a flat-fee of $29. We can also install the required modules and configure your server for a flat-fee of $49. Please contact us at office@adultvideoscript.com or using the online form.

Website: http://www.avscms.com
Support Center: http://helpdesk.adultvideoscript.com