Fixing 'size exceeds maximum permitted' on IIS
Answer
This FAQ is related to a problem encountered using DOCman on Joomla! 1.5 installed on Windows Server 2003 using IIS (not apache).
Some users may find that a problem occurs when Frontend Users (e.g. registred users, authors, editors and publishers) try to upload a document. DOCman returns an error: 'size exceeds maximum permitted'.
However, Backend Users (e.g. managers, administrators and superadministrators) can upload files up to the size stated in php.ini and / or the Joomla! DOCman config file.
The problem relates to the PHP install procedure and whether the PHPRC environmental variable was set on the Windows Server when PHP was installed. Adding PHPRC to the System Environmenal Variables and rebooting the Server seems to address this problem.
Step by step:
- On your Windows 2003 Server navigate to: Control Panel > System
- Click on the Advanced Tab and then on Environment Variables.
- Add a New variable to the System Variables
- Variable name: PHPRC
- Variable Value: the root path to your default php.ini e.g.C:\php or C:\WINDOWS
- Reboot the server so that the environment variable is registered.