Private PHP!

Discussion in 'HOWTO-Related Questions' started by silentpeace, Jan 20, 2006.

  1. silentpeace

    silentpeace New Member

    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?:rolleyes:
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you mean that a client shall not be able to upload php files to a site and get an error instead?
  3. silentpeace

    silentpeace New Member

    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. :)
  4. falko

    falko Super Moderator Howtoforge Staff

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

        <Files ~ '.php$'>
            Order allow,deny
            Deny from all
            Allow from none
        <Files ~ '.phps'>
            Order deny,allow
            Allow from all
    It doesn't display an error for PHP files, but at least it doesn't show the source code.

Share This Page