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 8106495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:29:11+00:00 2026-06-06T00:29:11+00:00

How do you load a .user.ini PHP configuration file when using the built in

  • 0

How do you load a .user.ini PHP configuration file when using the built in web server?

My setup is like this:

site
│   include.php
│
├───bin
│       router.php
│       server.bat
│
└───public
        .user.ini
        index.php

The document root is public, and bin\router.php routes to public\index.php if the file does not exist.

I did a phpinfo(), to verify that the .user.ini was not being loaded. The setting I am trying to change is error_log.

  • 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-06-06T00:29:14+00:00Added an answer on June 6, 2026 at 12:29 am

    Petah, I’ve just twigged what the issue is from your comment. The built-in webserver was only introduced in 5.4

    This web server is designed for developmental purposes only, and should not be used in production.

    It acts as a webserver listening on the specified socket. The .user.ini states that:

    These files are processed only by the CGI/FastCGI SAPI. This functionality obsoletes the PECL htscanner extension. If you are using Apache, use .htaccess files for the same effect.

    In other words you can’t use .user.ini files with the built-in webserver or with Apache/mod_php, etc. You have to use a custom php.ini. The safest way to do this is to clone the default php.ini (or php_value/flag directives with Apache/mod_php) and then add the lines you want for development. Of course you could always just add an ini_set command in you script(s) startup as well.

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

Sidebar

Related Questions

I'm using PHP version 5.3.2 on both my local development server and remote web
In my web application I load user controls in the page_loadComplete event. This works
Currently i have url parameters like this http://www.website.com/index.php?user&page=edit And in index.php i have set
I am using a configuration (.ini) file with my java app. At the moment
I'm having trouble accessing springSecurityService from resources.groovy file, I'm trying to load user locale
Is it possible to load a User Control that was registered in the web.config
I am using my own implementation of the UserDetailsService interface to load a User
A pleasant user experience requires a page to load very fast. This can be
What is the performance impact of using Page.LoadControl in ASP .NET to load User
This is the login function (after I validate user name and password, I load

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.