How to edit realpath_cache_size in php.ini?

Posted on 2012-09-16
Medium Priority
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. (https://coderwall.com/p/-bhb6q)

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
  • 3
LVL 58

Expert Comment

ID: 38403514
Try placing it in the admin folder.

Author Comment

ID: 38403539

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

Accepted Solution

Gary earned 1332 total points
ID: 38403586
Add the values to bottom of /usr/local/lib/php.ini
Restart the Apache
See if it still reports no change.
LVL 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 668 total points
ID: 38403669
LVL 58

Assisted Solution

Gary earned 1332 total points
ID: 38403766
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
This article discusses how to implement server side field validation and display customized error messages to the client.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses
Course of the Month16 days, 9 hours left to enroll

864 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