Author Topic: Dumb dumb Web 101 Question  (Read 964 times)

0 Members and 1 Guest are viewing this topic.

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Dumb dumb Web 101 Question
« on: April 13, 2009, 04:27:11 PM »
So. I'm working on an ERP integration. I have the ERP publishing a .csv to a server. Problem is that it keeps me a FORBIDDEN error if I try to visit the directory, and it also won't allow the ERP to publish the .csv to the directory. I have permissions set to 777, but I'm sure I'm just being an idiot and missing something obvious. Thoughts?
wha

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #1 on: April 13, 2009, 04:37:33 PM »
Is the problem coming from the fact that it's a sub-directory of a Read-Only parent directory?
wha

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #2 on: April 13, 2009, 04:44:22 PM »
guhhhhhh. Is this a .htaccess thing?
wha

Bacchus7

  • Member
Re: Dumb dumb Web 101 Question
« Reply #3 on: April 13, 2009, 04:47:49 PM »
You're dangerous, Maverick! Your ego's writing checks that your body can't cash.
DTF

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #4 on: April 13, 2009, 04:53:53 PM »
omg thx.

Seriously, I know this question has a simple answer.
wha

demi

  • cooler than willco
  • Administrator
Re: Dumb dumb Web 101 Question
« Reply #5 on: April 13, 2009, 04:54:40 PM »
It does, but wouldnt it be funner to watch you squirm? How's work treating you? Get kicked around lately? Tell us a story
fat

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #6 on: April 13, 2009, 05:21:48 PM »
is it outputting something to that directory?

Si. Or it would be, but it can't publish to the folder.
wha

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #7 on: April 13, 2009, 05:22:03 PM »
It does, but wouldnt it be funner to watch you squirm? How's work treating you? Get kicked around lately? Tell us a story

I got a 30 pound box of raisins for free
wha

Tauntaun

  • I'm cute, you should be too.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #8 on: April 13, 2009, 05:26:38 PM »
Raisins + Carrots + PB = win  :drool
:)

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #9 on: April 13, 2009, 06:20:26 PM »
Okay, does anyone have a real answer? I wasted about 3 hours on this
wha

Ecrofirt

  • Heavy Metal Jesus
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #10 on: April 13, 2009, 06:51:00 PM »
Any idea what the web server software is? For instance, Apache uses .htaccess files, but IIS doesn't.

Clearly the problem with not being able to browse the directory is due to a setting. These things are set in .htaccess files if you're using Apache. Do you have access to the directory either directly or via FTP? If you do, you can check the file to see if it disallows directory browsing (It will say Options -Indexes somewhere in the file).

As for being unable to upload to the directory, You need to do the following:

If the directory you're trying to upload to is ERP\SuperSecret\GilloD\, and you have 777 permissions on GilloD, check the status on SuperSecret to verify that you have proper permissions there. If you don't have permissions to upload to the parent directory, you'll never be able to upload to he directory you're trying to get to.
8=D

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #11 on: April 13, 2009, 06:55:18 PM »
Any idea what the web server software is? For instance, Apache uses .htaccess files, but IIS doesn't.

Clearly the problem with not being able to browse the directory is due to a setting. These things are set in .htaccess files if you're using Apache. Do you have access to the directory either directly or via FTP? If you do, you can check the file to see if it disallows directory browsing (It will say Options -Indexes somewhere in the file).

As for being unable to upload to the directory, You need to do the following:

If the directory you're trying to upload to is ERP\SuperSecret\GilloD\, and you have 777 permissions on GilloD, check the status on SuperSecret to verify that you have proper permissions there. If you don't have permissions to upload to the parent directory, you'll never be able to upload to he directory you're trying to get to.

I just checked my logs and the error was "
[Mon Apr 13 11:42:55 2009] [error] [client 70.107.244.165] Directory index forbidden by Options directive: /var/www/vhosts/asilenttreatment.org/httpdocs/sageexport/", so ot's probs the .htaccess. I'll fool with this tommorrow, free dinner on the company dime tonight!
wha

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #12 on: April 13, 2009, 06:58:07 PM »
Qustion, though.

If everything is in "/httpdocs", I'll have to 777 httpdocs, right? Isn't that a HORRIBLE IDEA? Directory structure is "/httpdocs/erp/text.txt"
wha

Ecrofirt

  • Heavy Metal Jesus
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #13 on: April 14, 2009, 12:53:23 AM »
Qustion, though.

If everything is in "/httpdocs", I'll have to 777 httpdocs, right? Isn't that a HORRIBLE IDEA? Directory structure is "/httpdocs/erp/text.txt"

777 is typically a horrid idea. Isn't 755 what people typically set? That way the owner can do everything, and everyone else can just read and execute.
8=D

GilloD

  • TAKE THE LIFE OF FRED ASTAIRE. MAKE HIM PAY. TRANSFER HIS FAME TO YOU.
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #14 on: April 14, 2009, 10:31:39 AM »
I guess the problem is that it has to publish to a folder sans credentials, there's no place for a pass/login. I need more details on this, but all the relevant documentation is in French. Ugh.
wha

T-Short

  • hooker strangler
  • Senior Member
Re: Dumb dumb Web 101 Question
« Reply #15 on: April 14, 2009, 11:02:57 AM »
you can have a read/write folder as a sub of a read-only or private folder. you need execute privileges on the parent and child folder(s).
地平線