• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Problems due to temporary directory problem

BRAHM

Basic Pleskian
Hi,

I am facing problems to upload files trough my php sites and to update WP sites.

the common error message is:

The package could not be installed. PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file \TMP/akismet.tmp

I have tried to free some space of my server and I have run these lines.. would be them caused the problem?

#rm -rf /tmp/*

#rm -rf /usr/local/psa/tmp/*

#rm -rf /usr/local/psa/PMM/tmp/*
 
  1. Specify a new temporary folder going to Domains > example.com > File Manager > wp-content and create a new directory named TEMP
  2. Open the /var/www/vhosts/example.com/httpdocs/wp-config.php file and enter the following line at the bottom:
    define('WP_TEMP_DIR', ABSPATH . 'wp-content/TEMP');
 
  1. Specify a new temporary folder going to Domains > example.com > File Manager > wp-content and create a new directory named TEMP
  2. Open the /var/www/vhosts/example.com/httpdocs/wp-config.php file and enter the following line at the bottom:
    define('WP_TEMP_DIR', ABSPATH . 'wp-content/TEMP');

Hi IgorG,

I have tried this but my other sites in codeigniter the file upload is facing the same problem.

I have edit php.ini in Tools and preferences and I have set up by my own the directive upload_tmp_dir to /tmp

and it solved for WP and Codeigniter sites hosted.

For some reason when I try to edit again php.ini file trought plesk the file get empty, why?
 

Attachments

  • 2019-02-25_0902.png
    2019-02-25_0902.png
    71.6 KB · Views: 12
Back
Top