SAPID Encyclopedia  
Sapid   SAPID-Club (English, Russian, Portuguese forums) SAPID-Workshop (Project and developer charts) SAPID-Wiki (SAPID Live Encyclopedia) SAPID-Farm (The best place for a SAPID-based project)
Navigation
Download
eXTReMe Tracker
HomeDocumentationInstallation

Installation

There are two possible ways to install SAPID: manual and automatic installation.

If you chose automatiñ installation process, you should upload SAPID files (install.php and sapid.tar.gz) to your hosting server and start install.php in your browser. Then follow instructions provided by this script.

Copying distribution package to a server using Total Commander

Copying distribution package to a server using Total Commander

Copying distribution package to a server using CuteFTP Copying distribution package to a server using CuteFTP

In the case of manual installation after uploading system files to a server (contents of sapid.tar.gz archive) you should set permissions to some system files and folders in the following way:

usr/dump 777
usr/dump/*.* 777
usr/extentions 755
usr/extentions/*.* 755
usr/templates 777
usr/templates/*.* 777
usr/templates/images 777
usr/templates/files 777
usr/xml 777
usr/xml/*.* 777
usr/xml/content/ 777
usr/xml/sdc/ 777
usr/xml/vdb/ 777
log/ 777

Then, in configuration file (/etc/rc.conf.php) you shold set correct HTTP-address of your project in $http_path variable ($http_path=http://myproject.domen.com for example).

If all operations were successful, there will be a demonstration site accessable at http://myproject.domen.com.

To log into administrative interface you should append /area51/ to site address and enter login and password.

Possible Troubles with SAPID Installation

MODREWRITE Mode

Availability of MOD_REWRITE may not be defined during the installation process. In this case, you should set up your .htaccess manually and specify $MODREWRITE=”enabled”; in configuration file etc/rc.conf.php.

Sample of .htaccess

DirectoryIndex index.php
ErrorDocument 404 /404/
Options +Followsymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?%{QUERY_STRING}

You need to specify full path to index.php file for some of platforms.

For exaple:

DirectoryIndex index.php
ErrorDocument 404 /404/
Options +Followsymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://mysite.com/index.php?%{QUERY_STRING}

Learn more about MOD_REWRITE:

http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html,
http://www.sitepoint.com/article/guide-url-rewriting

Multiviews Mode

If you couldn't setup MODREWRITE on your server, you may try to use Mulitviews mode. You'll should specify $MODREWRITE="Multiviews"; in configuration file (etc/rc.conf.php) and create following .htaccess:

DirectoryIndex index.php
Options -Multiviews –Indexes
ErrorDocument 404 http://mysite.com/index.php

Disabled Mode

If your hosting-plan prevents from MODREWRITE, Multiviews or you haven't possibility of .htaccess management, specify in configuration file $MODREWRITE="disabled";. You will not need .htaccess file, it may be deleted.



Red Graphic Systems Sponsored