Download Virthos User Manual
Transcript
Installation Special Cases Some web servers have special requirements for PHP scripts. For example, for security reasons, some servers are configured so that PHP scripts can only be executed if located in a specific directory (often called cgi-bin), while other files such as images and HTML pages may not be located in this directory. This will not stop Virthos from functioning, but you will need to modify the directory structure and document this change in the config.php file. Since all particular situations can neither be anticipated nor described, we will just concentrate here on one example: how to install Virthos on a web server where all PHP scripts need to be located in the /cgi-bin directory, although images, style sheets, etc. may not be located in this directory. 1. Install Virthos in your web server's root directory. Follow all the instructions that were previously outlined. 2. Copy the entire Virthos installation directory to the cgi-bin directory. Make sure that you are copying the folder, and not just moving it. The result should be that there are two identical Virthos directories on the server. 3. Delete the superfluous files and directories. The following files and directories can be deleted from the Virthos directory in the cgi-bin directory: data/files, data/media, system/resources The following files and directories can be deleted from the Virthos directory in the web server's root directory: config, data/database, templates 4. Next, customize the configuration file. Load the cgi-bin/virthos/config/config.php file on your computer, open it in a text editor, and add the following lines or modify them if they already exist: pathToFiles = /.../virthos/files/ pathToMedia = /.../virthos/media/ pathToTemplates = /.../virthos/templates/ baseURLFiles = http://www.mycompany.com/virthos/data/files/ baseURLFiles = http://www.mycompany.com/virthos/data/media/ baseURLResources = http://www.mycompany.com/virthos/system/resources/ baseURLTemplates = http://www.mycompany.com/virthos/templates/ On the lines beginning with pathTo, replace the three dots with the path to the web server's root directory. You can use the phpinfo.php file, described under “System Requirements” above to determine this path. You will find the path in the line beginning with _SERVER["DOCUMENT_ROOT"] The line is located in the last block on the page. 20 Virthos User Manual (08/25/2006)