• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3866
  • Last Modified:

How to edit realpath_cache_size in php.ini?

Hello,

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:

realpath_cache_size
realpath_cache_ttl

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

--------------------------

Thanks.
0
SrinathS
Asked:
SrinathS
  • 3
3 Solutions
 
GaryCommented:
Try placing it in the admin folder.
0
 
SrinathSAuthor Commented:
Gary,

No luck. Joomla System Information page still shows those values as default.
0
 
GaryCommented:
Add the values to bottom of /usr/local/lib/php.ini
Restart the Apache
See if it still reports no change.
0
 
Dave BaldwinFixer of ProblemsCommented:
0
 
GaryCommented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now