Singh, Gurpreet | 2 Nov 2006 19:39

Re: File Upload Issue

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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mantisbt-help mailing list
Mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Vincent DEBOUT | 2 Nov 2006 19:52
Picon
Favicon

Re: File Upload Issue

Use the apache login instead of your account.

Example:

[vincent <at> locahost]$ su - apache
Password:
[apache <at> locahost]$ 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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

 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mantisbt-help mailing list
Mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Singh, Gurpreet | 2 Nov 2006 20:09

Re: File Upload Issue

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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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:

[vincent <at> locahost]$ su - apache
Password:
[apache <at> locahost]$ 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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

 

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mantisbt-help mailing list
Mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Vincent DEBOUT | 2 Nov 2006 20:16
Picon
Favicon

Re: 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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:

[vincent <at> locahost]$ su - apache
Password:
[apache <at> locahost]$ 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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

 

 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mantisbt-help mailing list
Mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Singh, Gurpreet | 3 Nov 2006 01:33

Re: File Upload Issue

The problem is resolved.

Actually, when I copied upload folder from our current production Mantis Server to the new Server, I used SCP and I guess that messed up with the folder permission even though everything looked fine.

I tried creating the folders manually and then copied the files and it worked without any problem.

 

Thanks for all the help.

 

Gurpreet

 

 

 

From: mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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:

[vincent <at> locahost]$ su - apache
Password:
[apache <at> locahost]$ 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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

 

 

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mantisbt-help mailing list
Mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Singh, Gurpreet | 2 Nov 2006 22:11

Re: File Upload Issue

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

 

From: mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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:

[vincent <at> locahost]$ su - apache
Password:
[apache <at> locahost]$ 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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

 

 

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mantisbt-help mailing list
Mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Singh, Gurpreet | 2 Nov 2006 20:22

Re: File Upload Issue

I get the following message when I try to su – apache from root account.

This account is currently not available.

 

From: mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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:

[vincent <at> locahost]$ su - apache
Password:
[apache <at> locahost]$ 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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

 

 

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mantisbt-help mailing list
Mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Adrian Crossley | 2 Nov 2006 21:46
Picon
Favicon

Re: File Upload Issue

IIRC the apache user has no shell by default; you will need to set /bin/bash to try this.

hth

-----Original Message-----
From: mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org on behalf of Singh, Gurpreet
Sent: Thu 02/11/2006 19:22
To: Help with Mantis
Subject: Re: [Mantisbt-help] File Upload Issue

I get the following message when I try to su - apache from root account.

This account is currently not available.



________________________________

From: mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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:

[vincent <at> locahost]$ su - apache
Password:
[apache <at> locahost]$ 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:mantisbt-help-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] 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








______________________________________________________________

This incoming email was virus scanned for HESA by MessageLabs.
______________________________________________________________

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mantisbt-help mailing list
Mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help

Gmane