Jump to content

php_value in .htaccess not working


Ferdog

Recommended Posts

OS: FreeBSD 6.1

Apache 1.3.37

PHP 5.2.3 with Suhosin-Patch 0.9.6.2

 

I can't get any php_value directives in my .htaccess file working, specifically upload_tmp_dir. PHP is running as an Apache module and in httpd.conf I have AllowOverride All.

 

This is what is in the .htaccess file which is in the root of the virtual host's web directory:

 

php_value upload_tmp_dir /usr/local/www/mydomain/uploads

 

When a file is uploaded through my very basic HTML form it is still being uploaded to the default directory /var/tmp.

 

My simple HTML form:

 

<form enctype="multipart/form-data" accept="image/png,image/gif,image/jpg" action="uploader.php" method="POST">
Choose a file to upload: <input name="uploadedfile" type="file" />
<input type="submit" value="Upload File" />

 

Any guidance would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/64455-php_value-in-htaccess-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.