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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.