update install instructions

This commit is contained in:
mohrt
2003-02-21 20:35:32 +00:00
parent cd618a156c
commit e2a7dd387f

27
INSTALL
View File

@@ -4,22 +4,21 @@ Smarty requires PHP 4.0.6 or later.
INSTALLATION: INSTALLATION:
* copy the Smarty.class.php, Smarty_Compile.class.php Config_File.class.php * copy the files under the libs/ directory to a directory that is in your PHP
scripts and the plugins directory to a directory that is in your PHP include_path, or set the SMARTY_DIR constant and put them in this directory.
include_path, or set the SMARTY_DIR constant and put your class files in this
directory.
* create a "templates", "configs", and a "templates_c" directory, * for each application using Smarty, create a "templates", "configs", and a
be sure to set the appropriate directory settings in Smarty for them. If they "templates_c" directory, be sure to set the appropriate directory settings in
are located in the same directory as your application, they shouldn't need to Smarty for them. If they are located in the same directory as your
be modified. Be sure the "templates_c" directory is writable by your web application, they shouldn't need to be modified. Be sure the "templates_c"
server user (usually nobody). chown nobody:nobody templates_c; chmod 700 directory is writable by your web server user (usually nobody). chown
templates_c You can also chmod 777 this directory, but be aware of security nobody:nobody templates_c; chmod 700 templates_c You can also chmod 777 this
issues for multi-user systems. If you are using Smarty's built-in caching, directory, but be aware of security issues for multi-user systems. If you are
create a "cache" directory and also chown nobody:nobody. using Smarty's built-in caching, create a "cache" directory and also chown
nobody:nobody.
* setup your php and template files. A good working example is included to get * setup your php and template files. A good working example is in the on-line
you started. Also see the QUICKSTART guide for some more examples. documentation.
* TECHNICAL NOTE: If you do not have access to the php.ini file, you can change * TECHNICAL NOTE: If you do not have access to the php.ini file, you can change
non-server settings (such as your include_path) with the ini_set() command. non-server settings (such as your include_path) with the ini_set() command.