#1  
Old 20th January 2006, 22:30
silentpeace silentpeace is offline
Junior Member
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Private PHP!

Can anyone tell me how to set up new site that after disabling PHP scripts, if client uploads php,instead of code on his site shows up some kind of error?
Reply With Quote
Sponsored Links
  #2  
Old 20th January 2006, 23:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,986
Thanks: 840
Thanked 5,647 Times in 4,457 Posts
Default

Do you mean that a client shall not be able to upload php files to a site and get an error instead?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 24th January 2006, 10:12
silentpeace silentpeace is offline
Junior Member
 
Join Date: Jan 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

I mean when he uploads php site and after that when someone tries to go to his site,lets say "index.php",visitor gets some kind of error page instead of php code of that "index.php".
Thnx for prompt answer.
Reply With Quote
  #4  
Old 24th January 2006, 22:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

You could put this into the "Apache Directives" Field of ISPConfig:

Code:
    <Files ~ '.php$'>
        Order allow,deny
        Deny from all
        Allow from none
    </Files>
    <Files ~ '.phps'>
        Order deny,allow
        Allow from all
    </Files>
It doesn't display an error for PHP files, but at least it doesn't show the source code.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unknown filter was not added: PHP ddelbia Installation/Configuration 31 7th October 2008 21:30
[error] an unkown filter was not added: PHP Arien Installation/Configuration 12 7th October 2006 15:17
Can not access website after uploading brianetilley Installation/Configuration 21 11th January 2006 20:43
Sharedip Ivan Installation/Configuration 3 7th December 2005 16:36
Installation Problems right after php building nagual Installation/Configuration 3 31st October 2005 11:28


All times are GMT +2. The time now is 00:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.