# AdultVideoScript (AVS) 1.1 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 (Fedora Core, CentOS, Ubuntu, Slackware or SuSE).
- Apache Web Server
  - Support for AcceptPathInfo
  - Support for MultiViews (or mod_rewrite which is slower)
- MySQL 5.x
- PHP 5.x (mod_php/CGI)
  - Support for GD2 Library
  - Support for MySQL
  - Support for Curl
  - Support for upload_progress (only if you want to display an upload_progress on uploads)

  > #### Recommended PHP Configuration

  - safe_mode off
  - open_basedir off
  - max_execution_time 7200
  - max_input_time 7200
  - memory_limit (with 1MB more then the maximum video upload size)
  - post_max_size (maximum video upload size)
  - upload_max_size (maximum video upload size)
  - exec() should be allowed
- PHP CLI 5.x (see above + register_argc_argv ON)
- Mencoder 1.0rc1 (support for jpeg, gif, png, freetype, h264, lame, xvid, mad, win32codecs, dv, 3gp, mp4, theora)
- Mplayer 1.0rc1
- FFmpeg (from SVN) (support for jpeg, gif, png, freetype, h264, lame, xvid, mad, win32codecs, dv, 3gp, mp4, theora flvtool2 or yamdi (yamdi recommended))

## 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 you installation edit loaded.php and set $relative to your subdirectory (eg: $relative = '/subdirectory')!
4. Edit include/config.db.php and set the database credentials.
5. Load the database file from sql/avs.sql to your server (using phpmyadmin).
6. Upload all files to your server.
7. Chmod following files and directories to 0777.
/cache/frontend
/cache/backend
/media/albums
/media/categories/game
/media/categories/photo
/media/categories/video
/media/games/swf
/media/games/tmb
/media/games/tmb/orig
/media/photos
/media/photos/tmb
/media/player/adv
/media/users
/media/users/orig
/media/videos/flv
/media/videos/tmb
/media/videos/vid
/templates/emails
/templates/emails/*.tpl
/templates/frontend/default/static/*.tpl
/tmp/albums
/tmp/avatars
/tmp/downloads
/tmp/logs
/tmp/sessions
/tmp/thumbs
/tmp/uploader
8. Go to www.domain.com/siteadmin (login using: admin/admin) and start editing!

## 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 $69. Please contact us at office@adultvideoscript.com or using the online form.