Hi ghosthider,

There's not a ton of detail there, but my guess is that you're uploading a script and some support files via FTP, then trying to run the installation script via a Web browser. In that case, the user you FTP in as is often different from the user the Web server runs as, and so the installer script (running from the Web server) is not able to change permissions on the files uploaded as the FTP user.

One solution is to upload a ZIP or TAR file with the support files, then let the installer script unpack them. That way they will all be owned by the Web server user.

It's worth noting that the security of this model is not great. Having all of your code writable by the Web server means that many sorts of errors in any Web program would allow an attacker to make changes to any code which the Web server is allowed to change, including anything which was installed by running a script via the Web browser. The more traditional way of installing code, with an installation process run by a user other than the Web server user, is more secure but is tricky or impossible in some hosting configurations.


In reply to Re: Successfully accessing files by sgifford
in thread Successfully accessing files by ghosthider

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.