List Info

Thread: File Upload Issue




File Upload Issue
user name
2006-11-02 19:09:19

How am I supposed to know the password for apache account? As far as I know apache is a system account and you never set its password.

 


From: mantisbt-help-bounceslists.sourceforge.net [mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 11:53 AM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

Use the apache login instead of your account.

Example:

[vincentlocahost]$ su - apache
Password:
[apachelocahost]$ touch /var/www/mantis/uploads/IT/test

Vincent

Singh, Gurpreet a écrit ;:

Yes apache runs the httpd daemon.

I am not sure what you meant by log with the apache account. Please explain.

 

Thanks

Gurpreet

 


From: mantisbt-help-bounceslists.sourceforge.net">mantisbt-help-bounceslists.sourceforge.net [ mantisbt-help-bounceslists.sourceforge.net">mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 11:30 AM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

Hi,

Is apache runs the httpd daemon? Can you log with the apache account and try to move a file into the upload directory?

Vincent

Singh, Gurpreet a écrit ;:

Hi Vincent

 

Here is the info that you asked for:

 

/var/www/mantis

File Owner: root

File Group: root

Permissions: 755

 

/var/www/mantis/uploads

File Owner: apache

File group: root

Permissions: 755

 

Thanks

 

Gurpreet

 

 

 

 


From: mantisbt-help-bounceslists.sourceforge.net">mantisbt-help-bounceslists.sourceforge.net [ mantisbt-help-bounceslists.sourceforge.net">mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 1:55 AM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

Hi,

What are the permissions/owner/group of the /var/www/mantis and /var/www/mantis/uploads directories ?

Vincent

Singh, Gurpreet a écrit ;:

Hi,

 

We are running Mantis 1.0.6 on FC4 with PHP 5 and Apache 2.02. We are having trouble getting file uploads to work. We set the following path as the upload folder for a project:

 /var/www/mantis/uploads/IT

 

Then we attempt to upload a file, and get the following error:

SYSTEM WARNING: move_uploaded_file(/var/www/mantis/uploads/IT/bd8bde1e9d12779c3ccfeccc56917732) [function.move-uploaded-file]: failed to open stream: Permission denied

 

SYSTEM WARNING: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpfQiI9b' to '/var/www/mantis/uploads/IT/bd8bde1e9d12779c3ccfeccc56917732'

 

The /var/www/mantis/uploads/IT folder is owned by the apache account and the root group. Its permissions were initially 755, but changing them to 777 did not help.

 

Here's the interesting thing: if we set the upload folder to /var/www/uploads/IT (i.e., move it out of the mantis installation folder), and keep the same owner, group, and 755 permissions, it works.

 

Now, we could just give up and leave the uploads folder outside the mantis folder, but I would prefer not to. At the very least, I would like to understand why it does not work inside the mantis folder.

 

Any assistance anyone can provide will be much appreciated.

 

Thank you,

Michael Kraft

 

 

File Upload Issue
user name
2006-11-02 19:16:36
root does not need to know the password ;)

So, "su - root" then "su- apache".

Singh, Gurpreet a écrit :
ms05.mailstreet2003.net" type="cite">

How am I supposed to know the password for apache account? As far as I know apache is a system account and you never set its password.

 


From: lists.sourceforge.net">mantisbt-help-bounceslists.sourceforge.net [lists.sourceforge.net">mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 11:53 AM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

Use the apache login instead of your account.

Example:

[vincentlocahost]$ su - apache
Password:
[apachelocahost]$ touch /var/www/mantis/uploads/IT/test

Vincent

Singh, Gurpreet a écrit :

Yes apache runs the httpd daemon.

I am not sure what you meant by log with the apache account. Please explain.

 

Thanks

Gurpreet

 


From: lists.sourceforge.net">mantisbt-help-bounceslists.sourceforge.net [ mantisbt-help-bounceslists.sourceforge.net">mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 11:30 AM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

Hi,

Is apache runs the httpd daemon? Can you log with the apache account and try to move a file into the upload directory?

Vincent

Singh, Gurpreet a écrit :

Hi Vincent

 

Here is the info that you asked for:

 

/var/www/mantis

File Owner: root

File Group: root

Permissions: 755

 

/var/www/mantis/uploads

File Owner: apache

File group: root

Permissions: 755

 

Thanks

 

Gurpreet

 

 

 

 


From: lists.sourceforge.net">mantisbt-help-bounceslists.sourceforge.net [ mantisbt-help-bounceslists.sourceforge.net">mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 1:55 AM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

Hi,

What are the permissions/owner/group of the /var/www/mantis and /var/www/mantis/uploads directories ?

Vincent

Singh, Gurpreet a écrit :

Hi,

 

We are running Mantis 1.0.6 on FC4 with PHP 5 and Apache 2.02. We are having trouble getting file uploads to work. We set the following path as the upload folder for a project:

 /var/www/mantis/uploads/IT

 

Then we attempt to upload a file, and get the following error:

SYSTEM WARNING: move_uploaded_file(/var/www/mantis/uploads/IT/bd8bde1e9d12779c3ccfeccc56917732) [function.move-uploaded-file]: failed to open stream: Permission denied

 

SYSTEM WARNING: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpfQiI9b' to '/var/www/mantis/uploads/IT/bd8bde1e9d12779c3ccfeccc56917732'

 

The /var/www/mantis/uploads/IT folder is owned by the apache account and the root group. Its permissions were initially 755, but changing them to 777 did not help.

 

Here's the interesting thing: if we set the upload folder to /var/www/uploads/IT (i.e., move it out of the mantis installation folder), and keep the same owner, group, and 755 permissions, it works.

 

Now, we could just give up and leave the uploads folder outside the mantis folder, but I would prefer not to. At the very least, I would like to understand why it does not work inside the mantis folder.

 

Any assistance anyone can provide will be much appreciated.

 

Thank you,

Michael Kraft

 

 


File Upload Issue
user name
2006-11-02 21:11:19

Ok, I tried [apachelocahost]$ touch /var/www/mantis/uploads/IT/test
from apache account and it works.

 


From: mantisbt-help-bounceslists.sourceforge.net [mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 12:17 PM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

root does not need to know the password ;)

So, "su - root" then "su- apache".

Singh, Gurpreet a écrit ;:

How am I supposed to know the password for apache account? As far as I know apache is a system account and you never set its password.

 


From: mantisbt-help-bounceslists.sourceforge.net">mantisbt-help-bounceslists.sourceforge.net [ mantisbt-help-bounceslists.sourceforge.net">mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 11:53 AM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

Use the apache login instead of your account.

Example:

[vincentlocahost]$ su - apache
Password:
[apachelocahost]$ touch /var/www/mantis/uploads/IT/test

Vincent

Singh, Gurpreet a écrit ;:

Yes apache runs the httpd daemon.

I am not sure what you meant by log with the apache account. Please explain.

 

Thanks

Gurpreet

 


From: mantisbt-help-bounceslists.sourceforge.net">mantisbt-help-bounceslists.sourceforge.net [ mantisbt-help-bounceslists.sourceforge.net">mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 11:30 AM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

Hi,

Is apache runs the httpd daemon? Can you log with the apache account and try to move a file into the upload directory?

Vincent

Singh, Gurpreet a écrit ;:

Hi Vincent

 

Here is the info that you asked for:

 

/var/www/mantis

File Owner: root

File Group: root

Permissions: 755

 

/var/www/mantis/uploads

File Owner: apache

File group: root

Permissions: 755

 

Thanks

 

Gurpreet

 

 

 

 


From: mantisbt-help-bounceslists.sourceforge.net">mantisbt-help-bounceslists.sourceforge.net [ mantisbt-help-bounceslists.sourceforge.net">mailto:mantisbt-help-bounceslists.sourceforge.net] On Behalf Of Vincent DEBOUT
Sent: Thursday, November 02, 2006 1:55 AM
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

 

Hi,

What are the permissions/owner/group of the /var/www/mantis and /var/www/mantis/uploads directories ?

Vincent

Singh, Gurpreet a écrit ;:

Hi,

 

We are running Mantis 1.0.6 on FC4 with PHP 5 and Apache 2.02. We are having trouble getting file uploads to work. We set the following path as the upload folder for a project:

 /var/www/mantis/uploads/IT

 

Then we attempt to upload a file, and get the following error:

SYSTEM WARNING: move_uploaded_file(/var/www/mantis/uploads/IT/bd8bde1e9d12779c3ccfeccc56917732) [function.move-uploaded-file]: failed to open stream: Permission denied

 

SYSTEM WARNING: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpfQiI9b' to '/var/www/mantis/uploads/IT/bd8bde1e9d12779c3ccfeccc56917732'

 

The /var/www/mantis/uploads/IT folder is owned by the apache account and the root group. Its permissions were initially 755, but changing them to 777 did not help.

 

Here's the interesting thing: if we set the upload folder to /var/www/uploads/IT (i.e., move it out of the mantis installation folder), and keep the same owner, group, and 755 permissions, it works.

 

Now, we could just give up and leave the uploads folder outside the mantis folder, but I would prefer not to. At the very least, I would like to understand why it does not work inside the mantis folder.

 

Any assistance anyone can provide will be much appreciated.

 

Thank you,

Michael Kraft

 

 

 

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )