How to make proc/stat and proc/cpuinfo readable

DA-Rff

Verified User
Joined
Dec 4, 2006
Messages
119
I want to use cachecrawler on my server and it needs proc/stat and proc/cpuinfo to be readable by php.

How can I set these to be readable?

Thanks for the help
 
You might need to check if you have some PHP Disabled functions active.

First create a file to check. So create something like: phpsys.php

Put this in:
Code:
<strong>CPU Information:</strong>
<?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
</pre>

Open the php file in your browser. You should see cpu info. If not remove some functions from for example the webapps ini file.
system,exec,popen and proc_open

If you remove them from this ini file:
Code:
/usr/local/phpXX/lib/php.conf.d/50-webapps.ini
(where phpXX is your php version)

Restart/reload your webserver. Check in browser sys file again. If it works this is your problem.

Then just do the following to customize your disable list to make it work:
 
Back
Top