Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7589529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:10:59+00:00 2026-05-30T20:10:59+00:00

My server uses suPHP and so each website has it’s own php.ini file. My

  • 0

My server uses suPHP and so each website has it’s own php.ini file. My host recommended adding the following in my .htaccess file:

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/user/public_html
</IfModule>

This basically points to the site’s php.ini file. However, I am trying to have a standard .htaccess file across all sites that I don’t need to edit- basically part of my “boilerplate” site that I start off with. I tried to change the above to this:

<IfModule mod_suphp.c>
suPHP_ConfigPath %{DOCUMENT_ROOT}/public_html
</IfModule>

But this doesn’t work. As you can tell I am probably not understanding how this all works. Can anyone help me with the above code so that I don’t need to put the exact path in for each .htaccess file, and get Apache to work out the path to my php.ini file?

I hope that makes sense, it’s a little difficult to explain!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:11:01+00:00Added an answer on May 30, 2026 at 8:11 pm

    Just doing a sweep of old suphp Qs. mod_suphp uses the standard parameter parser so in principle %{DOCUMENT_ROOT} should work. The issue that you almost certainly have is that suPHP is generally used for shared hosting solutions and for these, the users effective DOCUMENT_ROOT is not the same as that established by the DocumentRoot directive in the system config.

    Most vendors set up an environment variable to point at the users document root. My host sets up DOCUMENT_ROOT_REAL, another that I’ve come across is PHP_DOCUMENT_ROOT. You need to look at your phpinfo() report to see what applies in your case. So on my .htaccess, I use

    suPHP_ConfigPath %{ENV:DOCUMENT_ROOT_REAL}/_private
    

    and that works fine for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

NOTE: program in java, server uses php, and mysql...file is .log or .txt file
I like CKEditor and my server uses PHP. I want to use CKEditor to
Suppose a mysql 5.5 server uses the following configuration for storing innodb data innodb_data_file_path
I am requesting and xml file over ajax, the server uses the header text/xml
I have a website that has images with urls like this: http://mysite.com/image1.jpg My server
My ISPs server uses MySQL. I have a table which has a field with
The MSDN documenation states: Indicates whether SQL Server uses the column as a ROWGUID.
Say a stored procedure on MSSQL Server uses an SQL transaction using BEGIN TRANSACTION/COMMIT
I want to talk to a flash server which uses RTMP, but I don't
I need to store about 600,000 images on a web server that uses NTFS.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.