Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: When dir /data/temp is deleted? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
udgd66
Valued Community Member
Valued Community Member
Avatar

Joined: 06 December 2010
Location: Italy
Online Status: Offline
Posts: 98
Posted: 16 December 2010 at 2:44am | IP Logged Quote udgd66

I'm seeing that DIR /data/temp contains a lot of temporary files, also if these files are already deleted from long time.
It's necessary to make purge manually sometime?

Bye and again thanks
Back to Top View udgd66's Profile Search for other posts by udgd66
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6089
Posted: 16 December 2010 at 5:24am | IP Logged Quote Igor

WebMail attempts to purge that directory, however, due the nature of WebMail architecture, it's not possible to tell when the session has actually expired; particularly since multiple users might access the same account.

For those who'd like to purge the directory periodically and make sure that files currently used are intact, there's a simple script. You can either run it from web browser or put it in crontab to be run, say, once a day. The script is designed to be located in root directory of WebMail Pro. In addition, the script remembers when it was run previously, that reduces the amount of extra job.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
udgd66
Valued Community Member
Valued Community Member
Avatar

Joined: 06 December 2010
Location: Italy
Online Status: Offline
Posts: 98
Posted: 16 December 2010 at 6:41am | IP Logged Quote udgd66

Great!!!
I put this line in my crond is correct?

@daily /usr/bin/php /home/mario/cron_clear_temp.php

Tnx
Back to Top View udgd66's Profile Search for other posts by udgd66
 
udgd66
Valued Community Member
Valued Community Member
Avatar

Joined: 06 December 2010
Location: Italy
Online Status: Offline
Posts: 98
Posted: 08 February 2011 at 2:59am | IP Logged Quote udgd66

cron_clear_temp.php no longer works with 6.0 version.
Back to Top View udgd66's Profile Search for other posts by udgd66
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6089
Posted: 10 February 2011 at 7:07am | IP Logged Quote Igor

In WebMail Pro 6.0.1 we've just released, there's a number of API methods available, you can find sample
scripts in examples directory. One of those is clear-tmp.php which should do the trick.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
udgd66
Valued Community Member
Valued Community Member
Avatar

Joined: 06 December 2010
Location: Italy
Online Status: Offline
Posts: 98
Posted: 11 February 2011 at 12:30am | IP Logged Quote udgd66

Work porfectly. Tanx.
Back to Top View udgd66's Profile Search for other posts by udgd66
 
udgd66
Valued Community Member
Valued Community Member
Avatar

Joined: 06 December 2010
Location: Italy
Online Status: Offline
Posts: 98
Posted: 22 February 2011 at 12:19am | IP Logged Quote udgd66

I don't know why, but clear-tmp.php function, doesn't work since one week.
It return this error:
Code:

PHP Fatal error:  Call to a member function ClearTempFiles() on a non-object in /var/www/webmail/examples/clear-tmp.php on line 22


Back to Top View udgd66's Profile Search for other posts by udgd66
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6089
Posted: 22 February 2011 at 2:41am | IP Logged Quote Igor

Did you make any changes to api.php file?

In clear-tmp.php file, replace include_once with require_once.
Does it show any different error after that?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
udgd66
Valued Community Member
Valued Community Member
Avatar

Joined: 06 December 2010
Location: Italy
Online Status: Offline
Posts: 98
Posted: 22 February 2011 at 6:07am | IP Logged Quote udgd66

No, i didn't make any change to api.php file. It's original of 9/02/2011 17:52

With "require_once" i have the same error!!
Back to Top View udgd66's Profile Search for other posts by udgd66
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6089
Posted: 22 February 2011 at 6:40am | IP Logged Quote Igor

Absolutely no idea then, particularly since, according to your own statement, the script worked fine
for some time and then it stopped working all of a sudden.

We'd like to take a look into this, FTP access would be helpful. Please send the details via
our HelpDesk and include the URL of this thread.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
udgd66
Valued Community Member
Valued Community Member
Avatar

Joined: 06 December 2010
Location: Italy
Online Status: Offline
Posts: 98
Posted: 09 March 2011 at 11:56pm | IP Logged Quote udgd66

Hi at all,
in version 6.0.2, the clear-tmp.php function return: "WebMail API not allowed".
Why?

Back to Top View udgd66's Profile Search for other posts by udgd66
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6089
Posted: 10 March 2011 at 1:47am | IP Logged Quote Igor

Do you run the script placed to examples directory? If you put it elsewhere, make sure you have
assigned WM_ROOTPATH correctly, it should contain filesystem path to main directory of WebMail Pro.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
udgd66
Valued Community Member
Valued Community Member
Avatar

Joined: 06 December 2010
Location: Italy
Online Status: Offline
Posts: 98
Posted: 10 March 2011 at 3:02am | IP Logged Quote udgd66

Sorry Igor i was wrong: i'm trying to run php not as root (i'm using linux)
I think that the 6.0.2 version, is quite stable.
I almost finished my tests, after i think to use webmail in my company.
Bye bye
Back to Top View udgd66's Profile Search for other posts by udgd66
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide