To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-08-2002, 04:01 AM   #1
h8dk97
Junior Member
 
Join Date: Aug 2002
Posts: 4
Virtual hosting and PHP

Hi All,

I want to setup virtual hosting on my Linux server with apache, php, perl, postgresql and mysql. What I don't know is how to make it secure, if one of my customers decides to write a php script which would access someone else’s directories and files how can I prevent it? I don't have time to go through each line of code which my customers upload on the server. Please let me know if you know the solution for this.

Thanks in advance.

Jerry
h8dk97 is offline   Reply With Quote
Old 10-08-2002, 08:45 AM   #2
mrJazz
Member
 
Join Date: Aug 2002
Location: UK
Posts: 39
The best solution is to use Plesk Server Administrator (www.plesk.com). This will do all the securing your need and allow you to administer your server from a web interface...

Plesk only allows you to see YOUR files.. no-one elses. by using chroot
mrJazz is offline   Reply With Quote
Old 10-08-2002, 09:10 PM   #3
h8dk97
Junior Member
 
Join Date: Aug 2002
Posts: 4
I don't see how this product can prevent somebody writing a php script that would access directories/files that belong to other people. The problem is that apache is run by one user i.e. nobody, this user has access to all the web content on the server, therefore a php script of one person can potentially access somebody else's files. And I don't want to run a separate httpd for every customer for obvious reasons.
h8dk97 is offline   Reply With Quote
Old 10-08-2002, 09:54 PM   #4
mattwade
Senior Member
 
mattwade's Avatar
 
Join Date: Jan 2002
Posts: 252
The easiest way would be to use PHPs safe mode and base dir restrictions...
__________________
Matt Wade
http://codewalkers.com/ - Home of the PHP Coding Contest
http://phphosts.codewalkers.com/ - Directory of PHP Web Hosts. Free Listing.
mattwade is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:29 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.