Zen Cart Logo
Forums / Basic Configuration / Pub directory not clearing out after downloads

Pub directory not clearing out after downloads

Views: 1,129

Results 1 to 2 of 2
31 Oct 2016, 2:05 PM
#1
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Pub directory not clearing out after downloads

For the past two days, I've received emails from my webhost (Dreamhost) warning me that my Zen Cart pub directory is compromised because folders within it are CHMOD 777.

When I go to check, there are between 5 and 10 randomly named folders in the directory that I have to manually delete.

From what I've read in the forums, these folders should automatically be cleaned up when a new download starts. But suddenly that isn't happening for me.

Any ideas why this might be happening?

31 Oct 2016, 3:43 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Pub directory not clearing out after downloads

Dreamhost in my experience doesn't like directories to be 777 and can cause issues. Suggest changing the download header code to generate 755 temporary folders.

File: includes/modules/pages/download/header_php.php
On or around line 222.