|
From: <php...@li...> - 2010-06-16 10:32:11
|
In order to get a java-bridge configuration up and running I initially
set my PHP open_basedir to "/".
For security reasons I now want to restrict the open_basedir path to
within the webserver document root.
I had an issue with attempts to access "/dev/shm/", which I fixed by
changing JAVA_PIPE_DIR in:
/var/lib/tomcat5.5/webapps/JavaBridge/java/Java.inc
However, having done so I now find that files in /tmp are being
accessed, such as: "/tmp/.php_java_bridgejNmYsU.i".
I can't see where this location is being set. Does anyone have any ideas?
The full error log is:
=========================================================================================
Warning: fopen() [function.fopen]: open_basedir restriction in effect.
File(/tmp/.php_java_bridgejNmYsU.i) is not within the allowed path(s):
(/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc
on line 846
Warning: fopen(/tmp/.php_java_bridgejNmYsU.i) [function.fopen]: failed
to open stream: Operation not permitted in
http://localhost:8080/JavaBridge/java/Java.inc on line 846
Warning: stream_set_blocking(): supplied argument is not a valid stream
resource in http://localhost:8080/JavaBridge/java/Java.inc on line 848
Warning: stream_set_timeout(): supplied argument is not a valid stream
resource in http://localhost:8080/JavaBridge/java/Java.inc on line 849
Warning: fopen() [function.fopen]: open_basedir restriction in effect.
File(/tmp/.php_java_bridgejNmYsU.o) is not within the allowed path(s):
(/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc on
line 850
Warning: fopen(/tmp/.php_java_bridgejNmYsU.o) [function.fopen]: failed
to open stream: Operation not permitted in
http://localhost:8080/JavaBridge/java/Java.inc on line 850
Warning: unlink() [function.unlink]: open_basedir restriction in effect.
File(/tmp/.php_java_bridgejNmYsU.i) is not within the allowed path(s):
(/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc on
line 851
Warning: unlink() [function.unlink]: open_basedir restriction in effect.
File(/tmp/.php_java_bridgejNmYsU.o) is not within the allowed path(s):
(/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc on
line 852
Warning: unlink() [function.unlink]: open_basedir restriction in effect.
File(/tmp/.php_java_bridgejNmYsU) is not within the allowed path(s):
(/home/josepht/DEV) in http://localhost:8080/JavaBridge/java/Java.inc on
line 853
Warning: stream_set_timeout(): supplied argument is not a valid stream
resource in http://localhost:8080/JavaBridge/java/Java.inc on line 854
Warning: fwrite(): supplied argument is not a valid stream resource in
http://localhost:8080/JavaBridge/java/Java.inc on line 858
Broken local connection handle fwrite(): supplied argument is not a
valid stream resource
|