[SPTUsers] Installation problem: file_uploads configuration
directive
Darin Burleigh
burleigh at chem.wisc.edu
Wed Nov 19 14:12:39 CST 2003
On Tuesday, November 18, 2003, at 03:11 PM, Edward Almasy wrote:
> On Tue, Nov 18, at 01:00:10PM, Ammerman, Jackie wrote:
>> When configuring SPT with the "SPT--Install.php" page I get the
>> following
>> error:
>> Your web server does not have file uploads enabled (via the
>> file_uploads
>> configuration directive), which are required for the software to
>> operate
>> correctly.
> The file_uploads directive is actually part of the PHP portion of
> the server configuration, which (I believe) under RedHat 9 appears
> in
> /etc/php.ini.
>
> It's covered in the PHP documentation very briefly here:
>
> http://www.php.net/manual/en/configuration.directives.php#ini.file-
> uploads
On MacOS X, php comes installed by default as an Apache module, which
means
it does not have a 'php.ini' file. To set this option, edit the Apache
httpd.conf file:
<IfModule mod_php4.c>
php_admin_flag file_uploads on
</IfModule>
After restarting the web server, you can test that the value has
changed using
th commands 'php_info()' or ini_get( "file_uploads")'.
However, the docs for the 'get_cfg_var' command state:
"It will NOT return configuration information set when the PHP was
compiled, or read from an Apache configuration file (using the
php3_configuration_option directives). "
(emphasis mine)
The install script tests for the 'file_uploads' option using
'get_cfg_var' and not 'ini_set', and therefore fails. One workaround
is to edit the file CWIS--Install.php.
-darin
Darin Burleigh
Systems Programmer, Journal of Chemical Education
burleigh at chem.wisc.edu
(608) 262-8647
More information about the SPTUsers
mailing list