Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Separated another script,in another folder & using another DB? For security
Old 01-05-2012, 02:40 PM Separated another script,in another folder & using another DB? For security
Skilled Talker

Posts: 78
Name: syu
Trades: 0
For a website, sometime we used more than a script that separated, yes separated and dont have connection at all each other

for example
domain.com is a forum, using vbulletin
domain.com/blog is a blog, using wordpress
domain.com/store is ecommerce, using oscommerce
domain.com/article is article cms, using joomla
etc


so for security best practice, like if one of the script get hacked or get something wrong,
another script files in another folder,
and another mysql database,
is still secure


can we do that? if so how to do that actually? its looks like simple and basic, but i am still not sure how to do it

if there is tutorial link please let me know too, still cant found it
__________________
Lets help each other
basketmen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-06-2012, 08:57 AM Re: Separated another script,in another folder & using another DB? For security
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It's nothing to do with security or anything of the sort.

It's just that you can only have one "index.php" file in a folder.

Quote:
can we do that? if so how to do that actually? its looks like simple and basic,
Yep;

you create a folder called "blog" and install Wordpress in it.
OR
you create a folder called "article" and install Joomla in it.


I'm sure you can workout the rest from there onwards. AND if you can't you shouldn't be running any kind of website!!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-07-2012, 01:41 AM Re: Separated another script,in another folder & using another DB? For security
Skilled Talker

Posts: 78
Name: syu
Trades: 0
Quote:
Originally Posted by chrishirst View Post
It's nothing to do with security or anything of the sort.

It's just that you can only have one "index.php" file in a folder.


Yep;

you create a folder called "blog" and install Wordpress in it.
OR
you create a folder called "article" and install Joomla in it.


I'm sure you can workout the rest from there onwards. AND if you can't you shouldn't be running any kind of website!!
no you are missunderstanding, i know how to create new folder and install scripts generally, its basic thing

what i am asking is how to make the scripts access separated, its intermediate-advanced thing,
so if one of the script got hacked for example outdated worpress (in domain.com/blog), but other scripts still save, cant accessed by the hacker, for example joomla (in domain.com/article)
__________________
Lets help each other
basketmen is offline
Reply With Quote
View Public Profile
 
Old 01-08-2012, 07:35 PM Re: Separated another script,in another folder & using another DB? For security
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
what i am asking is how to make the scripts access separated, its intermediate-advanced thing,
They are seperate, installing them in sub-folders doesn't make them connected.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-16-2012, 09:08 PM Re: Separated another script,in another folder & using another DB? For security
Junior Talker

Posts: 3
Trades: 0
Basketmen -

I believe that what you are looking for, if I understand correctly, is typically known as a "chroot jail". This would essentially lock users who are able to exploit shell acess from an insecure library or network service into a particular directory.

Combining chroot with a hardened kernel that supports a mandatory access control architecture such as SELinux will have you well on your way to hosting a system that is simply not worth the trouble of penetrating for your average script-kid.

Hope this helps - let us know if there is anything else we can do to point you in the right direction!
joshwieder is offline
Reply With Quote
View Public Profile
 
Old 01-17-2012, 05:02 AM Re: Separated another script,in another folder & using another DB? For security
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
There are ways to avoid shell exploits.

A: Use jailed/gaoled shell for the account. Your host should have done this in a shared environment.

B: Disable password authentication for shell access and use private key authentication instead.

c: Move SSH off of it's default port 22. Again something a hosting company should do.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Separated another script,in another folder & using another DB? For security
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.81692 seconds with 12 queries