PHP Security - phpSuExec - Server wide shared include folder

Posted on 2007-08-08
Last Modified: 2007-08-30
I have a dedicated server running phpSuExec.

I do not really want to lower the security level to 3.1 compatibility mode (non-phpSuExec) .

I do want to have a server wide include folder, that all sites on the server can share.

Is this possible? And if so what is the best way to proceed?

Question by:Luv2Muff
    LVL 4

    Expert Comment

    If you are using IIS, just set up a virtual directory in each account pointing to wherever you need it to. In Apache, I think this is possible too.

    Author Comment

    Soory, I should have said that I am using Linux, apologies.
    LVL 4

    Expert Comment

    Hi - no problem! Your answer is here:

    I've used these instructions and they've worked for me! Let us know how you get on!

    Author Comment


    Thanks for the link. I cannot see how that solution is going to work if I am running running phpSuExec.

    Please can you confirm and explain further?


    LVL 4

    Accepted Solution

    All you are doing with that solutions is using a common shared virtual directory. phpsuexec should stop including and sharing resources between sites that are not explicitly unshared.

    That is - you can set up a virtual directory for each site. This should work. There is nothing stopping you from creating the virtual directory with the same path. As far as apache or php knows, they could be completely different. Try it. If it doesn;t work then fine. If it does, problem solved!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now