Wordpress - some plugins get tmp directory or wrong permissions error

  • Answered
i got this error on a diff plugin yesterday, which then i directly uploaded the plugin to the wp-content plugin directory and then activated it fine via the WP site back end. i thought it was only one time thing. now today a new plugin gets the same type of error. can you help me? (but to the same site i just tried to add new plugin Yoast Seo and it download into my site fine, what is going on?) thank you!

Installing Plugin: NextGEN Gallery 2.0.31
Downloading install package from http://downloads.wordpress.org/plugin/nextgen-gallery.zip…
Warning: touch() [function.touch]: Unable to create file /tmp/nextgen-gallery.tmp because No such file or directory in /home/xxxxxxx/public_html/zzzzz.org/wp-admin/includes/file.php on line 179
Warning: unlink(/tmp/nextgen-gallery.tmp) [function.unlink]: Operation not permitted in /home/xxxxxxx/public_html/zzzzz.org/wp-admin/includes/file.php on line 503

Download failed. Could not open handle for fopen() to /tmp/nextgen-gallery.tmp
Hello TheBoatPeople, and thanks for your question, Have you possible made your php.ini file recursive on your account? If you haven't done this already, you should be able to create a php.ini file specifying the directory that PHP should use to place temporary files on the server with this setting:
upload_tmp_dir ="/home/userna5/tmp/"
That way the server will utilize your own home directory's /tmp directory, instead of the server-wide one when doing things like saving WordPress plugins for installation from your dashboard. If you're still having any issues at all, please let us know! - Jacob