wp_temp_dir does not change the /tmp temporary default directory
I have a problem changing the temporary folder. I have have define the new temporary folder using
define( 'WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/' );
before the line
/* That's all, stop editing! Happy publishing. */
but without any success. I have created a small test.php
script to checking the success of changing to the new temporary folder such that
?php echo sys_get_temp_dir() . PHP_EOL; ?
with the output
/tmp
I have checked the permissions of the wp-config.php
, wp-content/temp/
and wp-includes/functions.php
files and they are the equivalent to 777.
I am not sure how to proceed and I have not found a lot information on internet. I hope someone could give me a hint. Thanks in advance
Topic filesystem uploads media Wordpress
Category Web