Missing temporary folder

I have Wordpress installed. Host Provider 1 & 1. Now, if I tried to download a media file, it will show me an error without a temporary folder . I also define the fpr temp path directory. I link to this link link . And created the php.ini file in the home directory. The contents of my php.ini file

upload_max_filesize = 16M
upload_tmp_dir = on
upload_tmp_dir = /epigram.co.uk/tmp

I also tried changing the wp-config file and added this

define('WP_TEMP_DIR','/epigram.co.uk/tmp');

Also tried with the full path. as

define('WP_TEMP_DIR',$_SERVER['DOCUMENT_ROOT'].'/tmp');

Nothing helped me. Any help would be appreciated. thank

+4
source share
5 answers

php.ini, etc/, upload_tmp_dir ( ";" ) .

1.)

2.) apache :

mkdir wwwtmp && chmod 0777 wwwtmp

3.) php.ini ( root)

 su
 vim /opt/lampp/etc/php.ini
 upload_tmp_dir = /home/my_user/wwwtmp/

, ";"

4.) ( vim: wq a enter) xampp,

/opt/lampp/./lampp restart

, , .

+2

: WordPress : "image.jpg" - " ".

, :

  • "tmp" WordPress 777. FTP-.

  • "php.ini" .

  • php.ini :

    upload_max_filesize = 16M

    upload_tmp_dir = on

    upload_tmp_dir = /home/username/public_html/wordpressDir/tmp

wordpressDir WordPress. WordPress , : upload_tmp_dir =/home/username/public_html/tmp

  1. php.ini wp_admin.

.

+1

plesk. PHP vesion 7.something 5.-, ! wordpress media

+1

Linux aws.

chmod -R 775 /tmp
0
source

Adding from the server plugin saved my time. it is easy to use, just upload the image via ftp and use the Add from sever plugin to import into the media library.

-1
source

All Articles