[X-Unix] Beginner Questions: Setting up access to localhost for
testing only.
Jakob Peterhänsel
jakob at hjemme.dk
Thu May 12 16:06:13 PDT 2005
Hi,
Well, the world will not be able to read your config.inc.php file, as
it's PHP and only set up a lot of variable in the current session.
If PHP is enabled, if will parse the file, and if you look at the
code, it will not output anything. Try it!
Permissions on the files under the wedserver documents should be as
the top level is, unless you create a special folder where PHP should
be able to Write/delete files. If you set you a XOOPS site (or
anything else that needs a cache access), you will permit this on
special folder, but only to the WWW user/group - ie. Apache.
Hope it helps,
Jakob Peterhänsel
"Tell me why, don't we try, not to break our hearts
and make it so hard for our selfs"
P.S.B. 1987
Email: jakob at hjemme.dk
AIM: Marook
Phone: +45 22684961
On 13/05/2005, at 0:38, dm87 at proparallax.com wrote:
> Thanks Jon and Jakob! I have it setup now and running. I have run
> it in WebServer and thought I'd give it a go in Sites to see how
> that works.
>
> I have been looking at file permissions. Obviously I do not want
> the world to be able to read my phpMyAdmin config file, it has
> passwords in it.
>
> Questions:
>
> 1) I have used octet numbers for permissions before, and am having
> a little trouble getting used to the way Panther "Get Info" handles
> permissions. I am still painfully slow on the command line, so I
> tend to use the GUI when possible. I want to set the files to 644,
> and I think the following reflects 644:
> owner: read/write
> group: read only
> other: read only
> Is this correct? And are these the appropriate permissions to use
> for developing a php site on Panther?
>
> 2) When I look at the permissions for the config.php file I find
> that they are greyed out and I may not change them. So, that means
> they are left at 644. That makes the config.php file readable to
> the world, in theory. However, when I try to bring up the config
> file with the browser, I get a blank page. This is good, I think.
> But what is going on? Is the config.php file secure from viewing
> by the world? Are my passwords secure?
>
> Thanks
> Donna dm87
>
> _______________________________________________
> X-Unix mailing list
> X-Unix at listserver.themacintoshguy.com
> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
>
> Listmom is trying to clean out his closets! Vintage Mac and random
> stuff:
> http://search.ebay.com/_W0QQsassZmacguy1984
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1873 bytes
Desc: not available
Url : http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20050513/915b8ff0/smime-0001.bin
More information about the X-Unix
mailing list