Git Product home page Git Product logo

basedir's Introduction

SugarCRM Basedir

Build Status

Build Status

Description

The SugarCRM Basedir extension allows you to take take advantage of open_basedir in an environment that relies on the Apache module mod_vhost_alias. It does this by automatically prepending the current VirtualDocumentRoot to the open_basedir configuration.

The basedir module also keeps realpath cache enabled. Realpath cache is normally automatically disabled when using open_basedir. Realpath cache is disabled for security reasons, however this can cause performance challenges.

Installation

git clone https://github.com/sugarcrm/basedir
cd basedir
phpize
./configure
make
make install

Building in docker

docker build -t basedir .
docker run basedir:latest

Configuration Documentation

Parameter Description
basedir.enable bool Controls whether or not the basedir module is activated.
basedir.open_basedir string An optional list of static paths that will also be included in the open_basedir configuration. Paths should be separated by a colon.
basedir.basedir_uri_component string An optional directory name which if present in the path underneath the DocumentRoot will be substituted as the root passed to open_basedir.

Security Concerns

The realpath cache is normally disabled to prevent a security issue. Once a path has been cached, that file could be replaced with a link to a protected file. While the protected file would not normally be accessable, with open_basedir enabled PHP believes that all cached paths are safe and have not been modified.

License

Apache 2.0

basedir's People

Contributors

jpackagejasonc avatar kadunuthula-sugarcrm avatar nathanhruby avatar smalyshev avatar zsprackett avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.