Witam, chce "podmienić" wszystkie exec() które nie wymagają użycia tej funkcji (czyli np. exec('cat plik')

na fopen, niestety pojawia się tutaj drobny problem ponieważ nie mogę otworzyć tego pliku.
Kod z fopen:
[root@alarmpi ~]# php -r 'fopen("/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq", "r");'
PHP Warning
: fopen(): open_basedir restriction in effect
. File(/sys
/devices
/system/cpu
/cpu0
/cpufreq
/scaling_cur_freq
) is not within the allowed path
(s
): (/srv
/http
/:/home
/:/tmp
/:/usr
/share
/pear
/:/usr
/share
/webapps
/) in Command line code on line 1
PHP Warning
: fopen(/sys
/devices
/system/cpu
/cpu0
/cpufreq
/scaling_cur_freq
): failed to open stream
: Operation not permitted in Command line code on line
1
Kod z exec:
exec("cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq", $freqArray); $freq = $freqArray[0]/1000;
Wersja php:
[root@alarmpi /]# php -v
PHP 5.6.11 (cli) (built: Jul 10 2015 10:16:21)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
Ten sam błąd pojawia się przy file, file_get_contents i każdej innej funkcji która operuje na plikach.