Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Failed to save domain Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
JohnCisco
Newbie
Newbie


Joined: 27 August 2009
Online Status: Offline
Posts: 5
Posted: 27 August 2009 at 9:32am | IP Logged Quote JohnCisco

Two part problem. I run the install script and under "WebMail data Folder" and "Creating/Deleting files" it says "Error, can't create/delete files in data folder"

I have set the permissions of the data folder and all subfolders to 777 and all files inside the data folder and subfolders to 666. I've checked this with multiple FTP clients and all show the permissions as they should be. ???

When I login to the admin section to setup the account, connecting to the SQL server is fine, when I add a domain I get "Failed to save domain" error when adding a domain. I'm assuming this has to do with the previous error?

confused...
Back to Top View JohnCisco's Profile Search for other posts by JohnCisco
 
JohnCisco
Newbie
Newbie


Joined: 27 August 2009
Online Status: Offline
Posts: 5
Posted: 27 August 2009 at 9:33am | IP Logged Quote JohnCisco

forgot to mention I'm using the PHP version
Back to Top View JohnCisco's Profile Search for other posts by JohnCisco
 
JohnCisco
Newbie
Newbie


Joined: 27 August 2009
Online Status: Offline
Posts: 5
Posted: 27 August 2009 at 10:07am | IP Logged Quote JohnCisco

spoke too soon, didn't see the "create tables" button on the admin panel for the database...i can add domains now but still don't know why I get the error when the folders are all set to 777
Back to Top View JohnCisco's Profile Search for other posts by JohnCisco
 
JohnCisco
Newbie
Newbie


Joined: 27 August 2009
Online Status: Offline
Posts: 5
Posted: 27 August 2009 at 11:53am | IP Logged Quote JohnCisco

So I've diagnosed the problem now and it is the folders must have permissions set to 777 in order for new files/folders to be created inside them. This is all done, but when the program makes a new folder when you check your mail to save all the mail data, the new folder has 755 permissions so nothing under it gets created.

Is there a way in the program to force a 777 on a new folder that is created?
Back to Top View JohnCisco's Profile Search for other posts by JohnCisco
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 28 August 2009 at 2:28am | IP Logged Quote Igor

By default, folders are created with 777 permissions. If that doesn't work for you for some reason, we suggest to search for mkdir through the source code and modify the code as follows:
Before:
Code:
mkdir($path)

Under:
Code:
mkdir($path,0777)


--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
JohnCisco
Newbie
Newbie


Joined: 27 August 2009
Online Status: Offline
Posts: 5
Posted: 31 August 2009 at 10:07am | IP Logged Quote JohnCisco

Thanks for the tip. For anyone else with a similar issue...
Even making that change wasn't working for me. Turns out that if Safe Mode is on, PHP ignores the permissions you set with mkdir so be sure safe mode is off as well.

Back to Top View JohnCisco's Profile Search for other posts by JohnCisco
 

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