## Aurigma Image Uploader Flash 7.0.1

# Configuring PHP

- Collapse All Sections
- Language Filter ( all languages )

Typically, default server configuration does not allow uploading files with Image Uploader Flash. This topic describes how to configure a server you are going to deploy Image Uploader Flash on properly.

First of all, if you use PHP version that is earlier than 6.0, disable the magic_quotes_gpc directive in your php.ini file.

## Configuring Permissions

The folder where you are going to save files should have modify permissions. Depending on your operating system it can be set in one of the following ways.

- On Windows NT/2000/XP you should grant the modify permission to the Internet guest user (IUSR_<machinename>).
- On Windows 2003 Server you should grant the modify permission to the NETWORK SERVICE group.
- On Windows Vista/2008 Server/7 you should grant the modify permission to the account your site application pool is running under, Network Service by default.
- For *NIX systems you should specify read and write permissions.

## Configuring Maximum POST Request Length

Usually, a limitation for maximum POST request length is specified to reduce the risk of DoS attacks. If the request size exceeds a specific value, it is considered malicious and the upload would be broken.

To increase the limit of the maximum upload size, you should edit your PHP configuration files.

1. Open the php.ini file. You can find it:

   - On Linux: /etc/php.ini
   - On Windows: c:\windows\php.ini

2. Set the required limits:

       post_max_size = 100MB
       upload_max_filesize = 100MB

3. Optionally, set the following parameters:

   - memory_limit
   - upload_tmp_dir
   - max_execution_time

To make sure that new settings are applied, use the phpinfo() function which outputs information about the current state of PHP.

### PHP

    <?php
    	phpinfo();
    ?>

If you use the Apache web server, you should also edit the php.conf file.

1. Open the php.conf file. You can find it:

   - On Linux: /etc/httpd/conf.d/php.conf
   - On Windows: <Apache installation folder>\conf\php.conf

2. Change the LimitRequestBody parameter according to the post_max_size value, e.g.:

   LimitRequestBody 104857600

If you use another server, refer to its documentation for instructions on the configuration.

Do not forget to restart your server after modifying its configuration.