Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki WOX xoops XoopsEngine ZendFramework

New Users

Registering user

# 133948

guilhermeans

Welcome to XOOPS!
[Main Page]

PHP configuration

From XOOPS Web Application System

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: Installation

Template:MoveToMediaWiki PHP is a web template system that accidentally grew up into a fairly general language. PHP's syntax, capabilities, and execution model bear vague similarities to Perl; scripts are loaded by an "interpreter", compiled to bytecode, and then executed. The PHP interpreter can be run from the command line, CGI-style, or more commonly as an in-process Apache module.

Contents

Installation

http://www.php.net/manual/en/installation.php

Compile-time options

MediaWiki either needs or wants a number of optional features of PHP that need to be enabled at compile time:

  • mbstring multibyte character string support (optional; slower custom code will be used if not available)
  • iconv character set conversion library (optional; other conversion functions will be used if not available)
  • zlib compression library, optionally to compress the file cache
  • sockets support for network communication, if using memcached

Example

We are successfully working with these compiler options:

'./configure' '--with-mysql' '--without-sqlite' '--with-apxs2=/usr/sbin/apxs2' '--with-zlib' '--with-ldap' '--with-gd' '--with-jpeg-dir' '--with-iconv-dir' '--enable-mbstring' 

Opcode caching

If running a high-traffic site, it is highly recommended that a system be used to cache the compiled scripts; there are a number of such plugins for PHP, some free, some proprietary. Wikimedia currently uses Turck MMcache and used to use the ionCube PHP Accelerator. There is Alternative PHP Cache, however we had more problems with it than ionCube.

Fortunately, these all seem to be easy to install as Zend plugins, you just drop in a library and change your php.ini. No fussy recompiling of the entire PHP!

Depending on the cache and options used, you may have to perform a special operation whenever updating script files.

Image Resizing

ImageMagick can be used for image resizing (see Manual:Configuration settings#Images). When it is not available the GD PHP module is used instead where found.

See also

Template:Languages

Retrieved from "http://xoops.org/modules/mediawiki/index.php/PHP_configuration"

This page has been accessed 841 times. This page was last modified 06:23, 20 November 2007. Content is available under XOOPS Web Application System.