Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#39006 - [phoronix-test-suite] Does not launch - many php errors

Attached to Project: Community Packages
Opened by Cyril Raphanel (kamelie1706) - Sunday, 23 February 2014, 09:11 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 25 February 2014, 08:03 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Cannot be launch

***
sudo phoronix-test-suite
***

PHP Warning: require(): open_basedir restriction in effect. File(/usr/share/phoronix-test-suite/pts-core/pts-core.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/) in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 39
PHP Warning: require(/usr/share/phoronix-test-suite/pts-core/pts-core.php): failed to open stream: Operation not permitted in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 39
PHP Fatal error: require(): Failed opening required '/usr/share/phoronix-test-suite/pts-core/pts-core.php' (include_path='.:/usr/share/pear') in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 39
[cyril@BIGONE Downloads]$ sudo phoronix-test-suite
PHP Warning: require(): open_basedir restriction in effect. File(/usr/share/phoronix-test-suite/pts-core/pts-core.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/) in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 39
PHP Warning: require(/usr/share/phoronix-test-suite/pts-core/pts-core.php): failed to open stream: Operation not permitted in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 39
PHP Fatal error: require(): Failed opening required '/usr/share/phoronix-test-suite/pts-core/pts-core.php' (include_path='.:/usr/share/pear') in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 39
[cyril@BIGONE Downloads]$ sudo phoronix-test-suite
PHP Warning: require(): open_basedir restriction in effect. File(/usr/share/phoronix-test-suite/pts-core/pts-core.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/) in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 39
PHP Warning: require(/usr/share/phoronix-test-suite/pts-core/pts-core.php): failed to open stream: Operation not permitted in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 39
PHP Fatal error: require(): Failed opening required '/usr/share/phoronix-test-suite/pts-core/pts-core.php' (include_path='.:/usr/share/pear') in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 39


Additional info:
phoronix-test-suite-4.8.6-1-any

Steps to reproduce:
Just launch it
This task depends upon

Closed by  Sergej Pupykin (sergej)
Tuesday, 25 February 2014, 08:03 GMT
Reason for closing:  Not a bug
Comment by Cyril Raphanel (kamelie1706) - Sunday, 23 February 2014, 09:12 GMT
Can someone edit the title adding "phoronix-test-suite"?
Comment by Cyril Raphanel (kamelie1706) - Sunday, 23 February 2014, 21:01 GMT
One curious thing, optionnal packages recommended are:
- php-gtk(https://aur.archlinux.org/packages/php-gtk/)
- php-gd (https://www.archlinux.org/packages/extra/x86_64/php-gd/)
- php-curl => could not find the package in official package list nor in AUR
Comment by Sergej Pupykin (sergej) - Monday, 24 February 2014, 09:13 GMT
1st warning says you that you have to strict restriction in php.ini:open_basedir. You should allow /usr/share/phoronix-test-suite.
Comment by Cyril Raphanel (kamelie1706) - Monday, 24 February 2014, 16:38 GMT
At least test proceeding now but a lot of warning still
PHP Warning: is_executable(): open_basedir restriction in effect. File(/bin/date) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in /usr/share/phoronix-test-suite/pts-core/phoronix-test-suite.php on line 64
[NOTICE] The php.ini configuration is using the "open_basedir" directive, which may prevent some parts of the Phoronix Test Suite from working. See the Phoronix Test Suite documentation for more details and to disable this setting.

[NOTICE] is_file(): open_basedir restriction in effect. File(/usr/share/php/fpdf/fpdf.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts-core.php:99

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/sbin/glxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/bin/glxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/glxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/vendor_perl/glxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/core_perl/glxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_readable(): open_basedir restriction in effect. File(/dev/nvidia0) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in phodevi_system.php:1456

[NOTICE] is_readable(): open_basedir restriction in effect. File(/sys/module/fglrx/initstate) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in phodevi_system.php:1460

[NOTICE] is_readable(): open_basedir restriction in effect. File(/dev/dri/card0) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in phodevi_system.php:1464

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/sbin/nvidia-settings) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/bin/nvidia-settings) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/nvidia-settings) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/vendor_perl/nvidia-settings) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/core_perl/nvidia-settings) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/sbin/fglrxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/bin/fglrxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/fglrxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/vendor_perl/fglrxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/core_perl/fglrxinfo) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_file(): open_basedir restriction in effect. File(/proc/dri/0/name) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in phodevi_system.php:1593

[NOTICE] is_file(): open_basedir restriction in effect. File(/sys/class/drm/card0/device/vendor) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in phodevi_system.php:1603

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/sbin/lsb_release) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/bin/lsb_release) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/lsb_release) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/vendor_perl/lsb_release) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/core_perl/lsb_release) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_file(): open_basedir restriction in effect. File(/etc/release) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in phodevi_system.php:968

[NOTICE] is_file(): open_basedir restriction in effect. File(/etc/palm-build-info) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in phodevi_system.php:974

[NOTICE] is_file(): open_basedir restriction in effect. File(/etc/debian_version) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in phodevi_system.php:986

[NOTICE] is_file(): open_basedir restriction in effect. File(/usr/share/php/fpdf/fpdf.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts-core.php:99

NOTICE: The following PHP extensions are OPTIONAL but recommended:

OpenSSL PHP OpenSSL support is recommended to support HTTPS traffic.
GD The PHP GD library is recommended for improved graph rendering.
POSIX PHP POSIX support is highly recommended.
PHP FPDF PHP FPDF is recommended if wishing to generate PDF reports.


[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/sbin/Xorg) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/bin/Xorg) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/Xorg) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/vendor_perl/Xorg) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/core_perl/Xorg) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/sbin/X) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/local/bin/X) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/X) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/vendor_perl/X) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516

[NOTICE] is_executable(): open_basedir restriction in effect. File(/usr/bin/core_perl/X) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/share/phoronix-test-suite) in pts_client.php:1516


Comment by Sergej Pupykin (sergej) - Monday, 24 February 2014, 16:47 GMT
1st warning contains useful information again :) It needs /bin for /bin/date
Comment by Cyril Raphanel (kamelie1706) - Monday, 24 February 2014, 17:17 GMT
To remove all warnings I had to add
/bin:/usr:/root:/sys:/proc:/var:/etc:/dev

ok ... is this a security risk to do so? last time I touch php it was 10 years ago and security was not a strong point of this language :-)

If not maybe usefull to add that to installation instruction
Comment by Sergej Pupykin (sergej) - Tuesday, 25 February 2014, 08:03 GMT
Post-install prints advice to "Add / to the open_basedir list" and "Enable zip.so"

Loading...