Page 1 of 1

what to know about server configuration?

Posted: Wed Sep 08, 2004 5:59 am
by newmember
What things i have to know about host server configuration (where my site will be stored)?

Posted: Wed Sep 08, 2004 12:22 pm
by lostboy
To find out about your server, run the

<?phpinfo();?>

to get the details.

Posted: Thu Sep 09, 2004 4:11 am
by newmember
it will be possible to run phpinfo()? i thought that host admins probably will set very strict security rules...

Anyway, can you tell me what is the typical setup for webhosts?
for examle, how php is configured to run...
as apache module or as cgi executable?
what is the typical path for user home directory?

And about one more thing i was wandering is how do i protect my files from being directly viewed from web...
what i mean is, let's say i keep simple file-based guestbook... so i save user comments to file...
How do i make sure that this file won't be accessible from outside?

thanks...

Posted: Thu Sep 09, 2004 4:24 am
by feyd
as apache module or as cgi executable?
module.
what is the typical path for user home directory?
/usr I think..
How do i make sure that this file won't be accessible from outside?
.htaccess search the forums for further details.

Posted: Thu Sep 09, 2004 4:38 am
by newmember
i know about .htaccess... but will i have enough priviligies to setup one?

Posted: Thu Sep 09, 2004 4:41 am
by feyd
normally, yes, if you have a decent host.

Posted: Thu Sep 09, 2004 4:43 am
by newmember
so basicly if i can't setup .htaccess then i can't protect my files?
so it is very important to find out whether my webhost allows this? right?

Posted: Thu Sep 09, 2004 4:55 am
by feyd
you can protect them, you just have to be a LOT more careful and/or elaborate with the protection..

Posted: Thu Sep 09, 2004 5:28 am
by newmember
ok thanks:)
maybe you can give some clues how to protect?

Posted: Thu Sep 09, 2004 12:24 pm
by feyd
best option, after htaccess is, put the data in a directory that isn't accessible to the web users (outside the webroot)

Posted: Thu Sep 09, 2004 12:26 pm
by newmember
ok i see
thanks for help:)