I mean the Unix file system permissions on /oracle might not allow the web server user to read necessary files. When you run it from the command line it probably works because you can read those files but the web server is most likely running as another user who might not have read access.