How to edit realpath_cache_size in php.ini?

Posted on 2012-09-16
Last Modified: 2012-10-05

I've a server running on CentOS 6.3 with cPanel. I would like to change the values of these settings in the default php.ini file:


I'm following this guide to change these, but can't find any of these values in php.ini file. (

I ran these commands to find the actual path to php.ini:
php -i | grep php.ini
Configuration file (php.ini) => /usr/local/lib
Loaded configuration fiile => /usr/local/lib/php.ini
vi php.ini


I manually created a php.ini in my public_html folder, but Joomla not loading it.

Can anyone let me know how can edit the above two lines of code in php.ini file?

In php configuration (php info) file, it displays with default values as below:

realpath_cache_size 16K
realpath_cache_ttl 120


Question by:SrinathS
    LVL 58

    Expert Comment

    Try placing it in the admin folder.

    Author Comment


    No luck. Joomla System Information page still shows those values as default.
    LVL 58

    Accepted Solution

    Add the values to bottom of /usr/local/lib/php.ini
    Restart the Apache
    See if it still reports no change.
    LVL 82

    Assisted Solution

    by:Dave Baldwin
    LVL 58

    Assisted Solution

    Both those values can be changed, says nothing in the links about them being read-only, just ignored in safe-mode which would be understandable since you're increasing the apache threading size

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 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

    21 Experts available now in Live!

    Get 1:1 Help Now