History: 必要条件与安装
Source of version: 1
- «
- »
Copy to clipboard
^Translation of this page is incomplete.^ ! 必要条件与安装 本页列出安装Tiki的最低必要条件 如果你正在使用标准的[http://en.wikipedia.org/wiki/Shared_web_hosting_service|共享主机],你可以假设已复合必要条件,Tiki就是被设计要运行在[http://en.wikipedia.org/wiki/LAMP_(software_bundle)|LAMP]共享主机上的。对于要配置Tiki服务器的人来说下面的指示非常有用。 {maketoc} !! 必要条件 !!! Web服务器 Tiki是在Linux和Apache上面开发及广泛使用的。但是,Tiki''应能''运行在__任何__支持PHP的Web服务器上,像Windows/IIS、lighttpd等,但你需要做些调整。请看[http://dev.tikiwiki.org/Operating+System+independence#Windows_compatibility_project|Windows兼容项目]。 你的Web服务器配置应达到一下最低要求: *512 MB 内存 *100 MB 剩余磁盘空间 !!! 数据库 Tiki需要一个有效的关系数据库连接。数据库可以安装与Web服务器相同的主机上(localhost)。也可以是个远程数据库。Tiki使用MySQL。 *MySQL 5或更好版本 (Tiki3及以后的版本) *MySQL 4.1 或更高 !!! PHP Tiki 3 (及以后版本) 需要 PHP 5 附带 [http://php.net/mysqli|MySQLi 扩展]。 Tiki 4 (及以后版本) 用PHP 5 附带 [http://php.net/pdo|PDO 扩展]会更好。 如果没有PDO你可以倒退到ADOdb。 请看: ((tw:ReleaseNotes40)) ^__Note on PHP Memory Limits__: some ISP's install PHP with a memory_limit = 8m. While Tiki may install, and initially appear to work fine, when faced with even a slight load, this limit will be easily passed and the system will constantly fail: pages will not load properly, odd errors will occur etc. To check this limit, try yourdomain.com/tiki-phpinfo.php . Run that and search for three values on your ISP’s server: *max_execution_time = 60 ; Maximum execution time of each script, in seconds *max_input_time = 60 ; Maximum amount of time each script may spend parsing request data *memory_limit = 32M ; Maximum amount of memory a script may consume This limit is not generally user manageable so you must rely on the kindness of your ISP to grant you more resources. On a busy shared server that will also mean that all other PHP users on that shared server will also be granted those resources. ^ !!!!- More information ||__Libraries__| libxml must be enabled| http://us2.php.net/manual/en/ref.xml.php mbstring is a plus if you work with a language that needs it| http://us2.php.net/manual/en/ref.mbstring.php ctype must be enabled for tw >=1.10 || We recommend using the following configuration in your __php.ini__ file: ||%%%__PHP.INI setting__|%%%__Description__ memory_limit = 32M|Specify the maximum memory for PHP scripts. file_uploads = On|Required to allow uploads (files, images, etc.) to your Tiki upload_max_filesize = XXM|Specify the maxium upload filesize (in MB). allow_url_fopen = On|Allow trackback pings in your Tiki blogs. session.save_handler = files%%%session.save_path = /tmp|The path that PHP stores session information. Ensure that the location exists and is writable. In ((Shared Hosting)) environments, if you do not have access to __/tmp__, use __temp__ (no slash) instead. max_execution_time = 60%%%max_input_time = 60|Specify the idle timeout (in seconds). If you experience timeouts (such as when performing Admin functions) you may need to increase these settings. magic_quotes_gpc = Off|Turn off PHP's [http://us2.php.net/magic_quotes|Magic Quotes] function. default_charset = "utf-8"|Specify the default charcter encoding. mbstring.func_overload = 0|Will not work properly with mbstring.func_overload = 7|| The location of the __php.ini__ file may vary, depending on your operating sytem. Some common locations include: * /etc/php.ini * /etc/php/php.ini * /etc/php4/php.ini * /etc/php/apache1-php4/php.ini (Gentoo) * /etc/php/cli-php4/php.ini (Gentoo) * /etc/php4/apache2 (Debian) * \windows\system\php.ini (Windows) __Notes__: # PHP 4.1.2 has a known session bug and should not be used. # you may also need the ''php-devel'' package being installed (and restarted apache) to get past the "blank screen issue" of tiki-install.php. ([http://tikiwiki.org/tiki-view_forum_thread.php?forumId=6&comments_parentId=26223|See forum article about that]). Prior to it please check, that you have enabled the proper database in your php.ini. # If safemode is on you can need safe_mode_allowed_env_vars = TZ in php.ini # To run PHP5 on 1and1.com just put the following line in your _htaccess file (Tiki 3.X): + AddType x-mapp-php5 .php + AddHandler x-mapp-php5 .php + uncomment ligne 29 and 30 then rename in .htaccess !! Optional Software or Libraries Some Tiki feautures require the following additional software or libraries: ||__Feature__|__Additional Requirements__ Image processing, used for thumbnail generation, dynamic chart generation, and to prevent bot/automatic registration.|Use either __GD Library__ 1.5 (or higher) or __ImageMagick__. ImageMagick is included, by default with PHP 4.3+ Manage and display maps as a GeoCMS (Geospastial Content Management System).|((Mapserver)) 4.6+ Rewrite Tiki's default URLs|Use the Apache ((Clean URLs)) to create shorter, or custom, URLs.|| !Alias *(alias(Requirements and Setup))