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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:17:44+00:00 2026-06-08T01:17:44+00:00

The loaded configuration file path is /usr/local/lib/php.ini (found using phpinfo(); ). How can I

  • 0

The loaded configuration file path is /usr/local/lib/php.ini (found using phpinfo();).

How can I edit this file or making a copy of this file anywhere I wish? In some forums I was asked to execute this command,

cp /usr/local/lib/php.ini /public_html so that the PHP.ini file will be copied to public_html folder. But I do not understand where to execute this command.

I do not have much idea in PHP, so that I could resolve this issue on my own. What is the detailed procedure to do this?

  • 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-08T01:17:46+00:00Added an answer on June 8, 2026 at 1:17 am

    If you have access to your own dedicated server or virtual machine:

    Open up the terminal, type sudo nano /usr/local/lib/php.ini,
    make the required changes, hit Ctrl + O to save, and then Ctrl + X to exit.

    If you want to copy to somewhere else, use cp /usr/local/lib/php.ini /path/to/new/location

    If you are using a shared hosting provider

    You can not modify the php.ini file or use another version. You will need to override the settings in the .htaccess file or a PHP runtime. Please note that your shared host may have these settings disabled, so you can’t hog the shared server’s RAM.

    File .htaccess example

    php_value memory_limit 16M
    

    Runtime example (at the very top of the PHP script)

    ini_set('memory_limit', '16M');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[root@localhost \]# php -i | grep Configuration Configuration File (php.ini) Path => /usr/local/lib Loaded
Configuration File (php.ini) Path C:\Windows Loaded Configuration File C:\php\php.ini I installed php on my
what is Configuration File Path and loaded Configuration File in PHP. When i see
What is the difference between configuration file and loaded configuration file? If ini file
I am using an XML configuration file that is loaded into my Java application
I am wondering how to make sure spring configuration file is loaded only once.
What happens if php.ini is missing? Does PHP load with a default configuration? In
I loaded a 640 x 480 (in px) jpg image from res using Bitmap.
I loaded an UIView out of a nib-file. I wrote some methods which I
I have loaded the calendar in my LWUIT based UI. Thanks to this thread

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.