Choose a location in the select menu↑
Tutorial Set up a website with SovixCopy /srv/d_dbe/www/www.sovix.org/htdocs/sovix/Templates/Default/ to DocumentRoot (/srv/d_dbe/www/www.sovix.org/htdocs/ in your current configuration) or to some other place. We will use DocumentRoot as example in this Tutorial since that is default. Set proper base path that is used by different settings in /srv/d_dbe/www/www.sovix.org/htdocs/Default/include/dotsovix/files.inc; Decide copyright for the web page Go to http://sovix.org/Default/ in a web browser. Do as the text in the page suggest. Verbatim copying and distribution is preferred to personal text while the GNU Free Documentation License is preferred to distribute text who anyone can copy, modify and redistribute. The GNU FDL is recommended for software manuals. We publish personal web documents that are not part of Sovix under verbatim copying but we use free documentation for documents that are part of Sovix as you can see at the footer of this page. Open /srv/d_dbe/www/www.sovix.org/htdocs/Default/Main_page.php in your favorite text editor Modify <year> <name of author> in the $sovix__copyright variable but do not remove any text about GNU Affero General Public License and do not remove $sovix__copyright_pointer until you have read “Distribute software code under GNU AGPL or as private software”. Reload http://sovix.org/Default/Main_page.
Modify the variable that points to the configuration directory in Main_page.php; Copy sovix/dotsovix/public.inc to your dotsovix directory and modify any settings that you wish not to be global and remove rest of the settings to let Sovix take care of them. For example, copy the line with sovix__array__public_variables__array__variable to your public.inc file and set it to a ISO-8859-1 if you wish to show Swedish characters with Sovix. Set any variable before the header to override a variable set by the configuration files. The header line look like this: require_once "$sovix__directory__src/header.inc"; ?> dotsovix/files.inc:
Set sovix__ssl_login to true in dotsovix/private/private.inc.php to execute a https request for logins with the command “login” or “Tools > Log in” from the menu bar. You need to configure Apache and PHP to use a SSL certificate in order to make this work.
Set usernames and passwords in the commented text in dotsovix/private/auth_sovix.inc.php and uncomment it. It is recommend to copy dotsovix/private/auth_sovix.inc.php to any location outside DOCUMENT_ROOT and set $sovix__file__auth_sovix to that location in dotsovix/private/files.inc.php by security. When you click at “Tools > Login” in the menu bar or run “login” in the command line Sovix will use the configuration files set in the file you execute it from. So the username and password might be different when you log in from Sovix files then from the Default template since Sovix will read its configuration from sovix/dotsovix/ and Default from Default/dotsovix/.PasswordI suggest that you base $sovix__password on a algorithm based on the system date and time since this will update the password as often as you want.
Example: $sovix__password="x".date("ymdHi"); Allways use the command 'server-time' to get the the system date and time from the server that host Sovix. UsernameNothing special to mention about the username. Just keep the it static so as not to confuse it with a (eventually) dynamic password.IP$sovix__ip_address can be on of follow: 'Allow from all', 'Deny from all' or any IP number.Allow from all allow any IP number to login to Sovix. Deny from all denies any IP from logging in. If you set it to a specific IP number only that address is allowd to login. If you want to be able to update your website with Sovix from anywhere in the world, set it to 'Allow from all'. Sovix has a mechanism to read files as plain text and another to download them. This is very useful when you want to share a file that is otherwise parsed by the HTTP sever such as file with a .php extension. The file /srv/d_dbe/www/www.sovix.org/htdocs/Default/include/dotsovix/read-file.inc is configured by default to instruct Sovix to read or download any file from $sovix__directory__base/ is you uncomment the array in the file. subdirectories that is listed in /srv/d_dbe/www/www.sovix.org/htdocs/Default/include/dotsovix/private/read-file-ignore.inc is used to exclude desired subdirectories. Distribute software code under GNU AGPL or as private software User who is in charge of a website typically keep the software code that generates the website as private software. That user keeps it and uses it, and does not release it to the public either as source code or as binaries. This makes it impossible for the visitors to contribute to the software code and learn. We distribute files at Sovix website under GNU AGPL; Anyone can read the software code as plain text by downloading it or view it direct from the web browser. Both you and us have been benefited with this many a time. We can for example read how Sovix is configured with the current release if there is something we need to do backward-compatible in our development version. And you can learn how to configure Sovix when you are in trouble. Files in $sovix__directory__sovix are readable over network by default since Sovix is distributed under GNU Affero General Public License. You can for example read sovix/Sovix.php by execute 'read-file /srv/d_dbe/www/www.sovix.org/htdocs/sovix/Sovix.php' in the command line. Files in subdirectories of $sovix__directory__sovix named 'private' are not readable by default since they contain sensitive data such as passwords etc. We are convinced that we can push the web to adapt this concept by demonstrating the usability from Sovix. You can help us doing this by adopting this mechanism for your website. The PHP Group advocates this at php.net, see the footer of any page at php.net where you can view the software code. Distribute software code under GNU AGPLGNU Affero General Public License ensures that anyone who makes copies of the software redistribute it under same license and that the software code is readable over a network.
Distribute software code as private software
Sovix has all elements visible by default to make it as user friendly as possible so change these settings to suit your needs.
Note that you need the command line to perform commands with Sovix. So if you hide it you wont be able to update your configuration files from Sovix. Translate filenames in the select menu Filenames should only include the letters A-Z and a-z since some web servers translate special characters which make the URL for the file wrong. The select menu uses the filename as item where underscore is replaced with space. So if you want to use different names for the represented files in the select menu you have to translate them.
Page index can be showed in different modes
This is how it looks <?php sovix__local_link($sovix__local_link__link="Link.php",$sovix__local_link__text="some link"); ?>
Lets decribe how the arrays used by the web template engine work
Write semantical valid HTML and XHTML Visit 'Content negotiation' to see the syntax that should be used.Validate a webpage with different DTDs Go to “Edit > Markup validate web document” in the menu bar or run “validate-markup*” in the command line. Revise websiteTo begin with, a username, password and more need to be set in $sovix__file__auth_sovix, this is auth_sovix.inc.php by default. Refer to Configure users for how to do that. You need to log in to perform operator activities like updating text in files. Such actities are gray in the menu bar and begin with two lines (--) in the completion list (execute “?” in the command line to see them). Log inClick at “Tools > Login” or run “login” in the command line to get redirected to the login page. Enter your username and password.Log outClick at “Tools > Log out” (“Log in” converts to “Log out” when you are logged in) or run “logout” in the command line. This will log out you directly. Click at “File > Open file...” in the select menu or run command “open-file” in the command line. Define any file with the absolute filename (eg open-file /var/www/Default/Main_page.php) and click enter or “Run”. At the bottom of the page source you see a line that begins with “Page loaded in”.Copyright (C) 2008 David Englund.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or any
later version published by the Free Software Foundation; with no Invariant
Sections, with no Front-Cover Texts, and with no Back-Cover Texts.
|