|
|
|
|
Here is a list of the most important settings in PHP and Apache to get HammerKit to function correctly.
PHP installation configurations
If you install PHP from source be sure to use the following options in
the configure command:
./configure
--with-mysql
--with-apxs=/path/to/apxs (with Apache v1)
or
--with-apxs2=/path/to/apxs (with Apache v2)
--with-curl
--with-gd
--with-jpeg-dir
--with-png-dir
--with-zlib-dir
--enable-exif
--enable-ftp
The most importatnt options are --with-mysql, in order to enable MySQL
support in PHP, and --with-apxs. To get all the image manipulation
functions to work you need to have the GD graphics library enabled in
PHP with the --with-gd option. Support for creating JPEG and PNG images
is enabled by including the libraries for these image formats with the
--with-jpeg-dir and --with-png-dir options. Also the --enable-exif
option is needes if you want to be able to read EXIF data from JPEG and
TIFF images.
If you install PHP from binary packages be sure to install the packages
that enable the above mentioned configuration options. At least the
MySQL and GD libraries are often delivered as separate installation
packages apart from the main PHP installation package.
If you install Apache from binary packages you have to install the
devel package to get the needed apxs binary.
PHP configuration file php.ini
default_charset = iso-8859-1
default_mimetype = text/html
max_execution_time = 600
memory_limit = 100M
post_max_size = 100M
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
file_uploads = On
upload_max_filesize = 100M
The most important is a long enough max_execution_time. Our
recommendation is 600 seconds, which is big enough for large image
manipulation operations. If HammerKit is going to be used for uploading
large files then important settings are post_max_size and
upload_max_filesize, which both have to be set at least as large as the
largest files allowed to be uploaded.
Apache configuration
Usually there is no need for changing any
configurations in Apache in order to get HammerKit working. But for
security reasons we recommend blocking direct listings of directories.
That can be done by removing "Indexes" from from the Options setting
under the HTTP document root. The Options setting is after this usually
"Options FollowSymLinks MultiViews". |
� HammerKit Oy 2008 |
UPDATED: 22.10.2008 03:04 |
|