App Error#503 and check.php

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
q3wolfi
Posts: 5
Joined: 19 Mar 2011, 16:04

App Error#503 and check.php

Post by q3wolfi »

Hi Guys,

i am new to Mantis installing it on a Linux Machine.

Now i have encountered following problem:

when i try to set up a new projekt and an upload folder /be with "http://localhost/mantis/manage_proj_create.php" i receive this error:

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

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

then i tried the admin check thingy and i got this:
Checking MantisBT upload file size is less than php BAD
There may also be settings in your web server and database that prevent you from uploading files or limit the maximum file size. See the documentation for those packages if you need more information.
Your current settings will most likely need adjustments to the PHP max_execution_time or memory_limit settings, the MySQL max_allowed_packet setting, or equivalent.
There may also be settings in your web server that prevent you from uploading files or limit the maximum file size. See the documentation for those packages if you need more information.

funny stuff, as i dont find any "documentation" and i didnt find out how to change the suggested settings; can someone give me information on how to fix this stuff? Since i dont have any clue.....
php settings are allright...
could it be possible, that the rights on the folder are not correct? I have set to www-data and read/write, but it didnt work.
yeah and now i dont have any ideas (since i am new to linux stuff) and the clues given above are not that good / specifitc.
especially: "MySQL max_allowed_packet setting, or equivalent."

i searched this forum, all i found was a post upgrading from version A to B but it didnt solve this prob.
thanks
atrol
Site Admin
Posts: 8564
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: App Error#503 and check.php

Post by atrol »

q3wolfi wrote: when i try to set up a new projekt and an upload folder /be with "http://localhost/mantis/manage_proj_create.php" i receive this error:
You do not have to configure any upload folder if you didn't change the default settings of MantisBT. The default setting is to store attachments in database.
Please use Search before posting and read the Manual
q3wolfi
Posts: 5
Joined: 19 Mar 2011, 16:04

Re: App Error#503 and check.php

Post by q3wolfi »

uh okay, then i should fix it, because i dont want to have files in the database stored Oo

or how can i fix it, that the storage into the db will work?
atrol
Site Admin
Posts: 8564
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: App Error#503 and check.php

Post by atrol »

q3wolfi wrote:uh okay, then i should fix it, because i dont want to have files in the database stored Oo
To store attachments on file system you have to add the folliwing line to file config_inc.php

Code: Select all

$g_file_upload_method = DISK;
q3wolfi wrote:or how can i fix it, that the storage into the db will work?
This should work out of the box if you don't specify any directory
Please use Search before posting and read the Manual
q3wolfi
Posts: 5
Joined: 19 Mar 2011, 16:04

Re: App Error#503 and check.php

Post by q3wolfi »

okay, now i've found the problem; my config_inc.php contains only:

Code: Select all

<?php

	$g_hostname = 'localhost';
	$g_db_type = 'mysql';
	$g_database_name = 'bugtracker';
	$g_db_username = 'root';
	$g_db_password = '*********';

?>
i added the line, but when i want to add the subdirectory /var/www/mantis/be or simply /be after i changed the config_inc.php it still throws this error... :/



well, i "fixed" it. If i want to use folders, i need to create it by myself on the server, set the owner to www-data and then the fileupload works.
maybe this is a bug or not, but its a bit annoying that mantis doesn't create a "projectfolder" when i set that stuff to disk.
Post Reply