APPLICATION ERROR #503

General discussion of Mantis.

Moderators: Contributor, Developer

Post Reply
Nucleide
Posts: 3
Joined: Feb 12, 2007 2:37 pm

APPLICATION ERROR #503

Post by Nucleide » Feb 12, 2007 3:03 pm

Hi,

When i try to create a project, i try to configure mantis for uploading the files by project on a specific directory.

In the Config file, i add the lines

$g_absolute_path_default_upload_folder = 'M:\AltTech\Mantis\Uploads'

When i create a new project i add the a new directory by default eg: '\Project1' and it return me the fallowing error message.


APPLICATION ERROR #503
Invalid upload path. Directory either does not exist or not writable to webserver


I'm wondering why it's not create the directory itself. It's not practicle to go to the server, create the directory and declare it when you create the project....

Thanks

Narcissus
Developer
Posts: 338
Joined: Feb 17, 2005 4:45 am

Post by Narcissus » Feb 13, 2007 7:21 pm

Is it possible that your web server service doesn't have the right permissions on the 'M:\AltTech\Mantis\Uploads' directory?

If you're using Windows / IIS, make sure that the IIS user is able to make the appropriate changes to the directory (I think by default it will not).

Nucleide
Posts: 3
Joined: Feb 12, 2007 2:37 pm

APPLICATION ERROR #503

Post by Nucleide » Feb 14, 2007 4:00 pm

Hi,

I use apache so i'm not sure how to setup folder security with apache...

Just to try, i allow everybody and System to have a full control over the directory and it still dont work.

Any idea?
Thanks

Narcissus
Developer
Posts: 338
Joined: Feb 17, 2005 4:45 am

Post by Narcissus » Feb 15, 2007 2:29 pm

Hi Nucleide:

Just looked in the code and this is what seems to be the case: by setting a project path, you are OVERRIDING the default that you set in config_inc.php. So, in theory, you either use the same path for all projects, or you have to create a new directory for each project and define the complete path to that directory when creating the project.

Now, having said all that: there is no real need to have a different directory for each project. Mantis takes care to ensure that no one file overwrites another and so on, so it should be fine to just have that value in the config_inc.php file and leave the project value empty...

Post Reply