Web Hosting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb HostingWeb Hosting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 19th, 2001, 03:53 PM
vile vile is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 2 vile User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool

How can I make a secure hosting with PHP ?
So, whats the problem ?
mod_php executes with apache's permissions
(usualy apache.apache or nobody.nobody)
and everybody can see scripts and datas of other
users. Suexec doesn't solve the problem, because
suexec works only with CGI scripts.
Is there any other solution, or I must use perl and php instead of mod_php and mod_perl?
Is somebody made some changes on Apache source to use setuid
without suexec?

Reply With Quote
  #2  
Old March 19th, 2001, 11:11 PM
gron0021 gron0021 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 4 gron0021 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have never used suexec. But if all it requires is executing a cgi script, just call you php script as a cgi script. first add #!/path/php as the first line of your script and make you php script executeable. I hope this helps.

Reply With Quote
  #3  
Old April 10th, 2002, 11:47 PM
rootroute rootroute is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 3 rootroute User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
SpeedyCGI

Well, there's the perl Module CGI::SpeedyCGI which achieve something
similar to mod_perl, but out of the apache box. it runs via a backend process connected to a local socket called on each request.
under suexec it's one's own uid. the perl modules are loaded only once, and variables retain their values at the beginning of the scripts like in mod_perl.

It's unlikely suexec will change on apache anytime soon. If you read the apache and suexec sources, you'll see it's tied to many other parts that take it for granted.
another reason is that changing this model would whipe out all the security
development effort already put in suexec for the last 7+ years.
When rightly configured, suexec is the best privacy/security enhancing feature.
that also make it simple compared to complicated directory/extensions declarations etc. simplicity=security because less likely to break with a sandgrain-in-the-gears.

URL supports SpeedyCGI,
as well as php, ssl, mod_perl and a bunch
of libraries.

Boris

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb HostingWeb Hosting > Secure hosting with PHP and perl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway