I have problems uploading banners while using an IIS webserver

The following answer to this question was given by the user 'brashguido' for version 2.0. It has been modified to be appropriate for version 2.4

Things to check;

  1. Make sure your files are not corrupted and and are in a valid format (gif, jpeg, png, swf, dcr, rpm, mov).
  2. Check your PHP environment. Both the file_uploads and the upload_tmp_dir options need to be set correctly in order for OpenX to be able to upload. Be sure that the upload_tmp_dir setting is correct, as this is what tripped me up. I have phpAdsNew installed as a subdirectory of an Xoops installation which does not use the upload_tmp_dir to upload files.

    Example;

    file_uploads = on

    upload_tmp_dir = "x:\php\uploads"

    NOTE: Once you have modified these settings you will need to restart IIS in order for them to take effect!

  3. Create a file with the following code in the root of your phpAdsNew installation;


    <?php
    phpinfo()
    ?>

    Save the file as something like phpinfo.php and then access it via http:///phpinfo.php and it will print your PHP environment settings to screen. Ensure that the file_uploads and upload_tmp_dir are set correctly. After you've verified this you may want to delete or move this file as it can be a security risk.

  4. If you are using Local SQL for storage, you should now be able to upload. If using Local Webserver mode with a local directory as the storage method there are a few extra steps.
  5. Make sure the Public URL value in your OpenX -> Settings -> Delivery Settings page is correct for the value of 'Image Store URL'

    Example
    http://www.example.com/OpenX/www/images

  6. Make sure that on the same Settings page, the 'Local Directory' configuration is correct.

    Example
    x:\OpenX\www\images

  7. Finally, when using Webserver mode you might need to ensure that the webserver has NTFS write permissions to your OpenX/www/images directory. Please see IIS support pages for how to set Folder Permissions within IIS.

All things equal, you should now be able to upload banners to OpenX on IIS without any problem.

NOTE: These tips assume that PHP is configured using ISAPI mode rather than CGI. If you are using CGI you will need to modify NTFS permissions as well.