Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002605 [Quercus] minor always 04-15-08 07:16 04-16-08 16:42
Reporter sgraf View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.5
Summary 0002605: php.ini file path is not relative to application root
Description Quercus Servlet On Tomcat 6.0.16

Although there are several examples on your website where the php.ini file location is given by using a path relative to the application root path doing so will not allow the servlet to retrieve the correct php.ini file.

From what I have observed QuercusServlet.setInitParam() is using com.caucho.vfs.Path.lookup() but this function will return a path relative to the current working directory which will usually be the /bin directory of the application server.

To correctly load a php.ini file in the WEB-INF directory I had to specify the complete path.

I realize that this might not be a problem for Resin based application servers but this bug report might still shed light on the mysterious ini-file parameter issue for anyone who wants to run Quercus on another application server.

Additional Information doesn't work:

<init-param>
  <param-name>ini-file</param-name>
  <param-value>WEB-INF/php.ini</param-value>
</init-param>



correction:

<init-param>
  <param-name>ini-file</param-name>
  <param-value>${catalina.home}/webapps/myquercusapp/WEB-INF/php.ini</param-value>
</init-param>
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
04-15-08 07:16 sgraf New Issue
04-15-08 07:18 sgraf Issue Monitored: sgraf
04-16-08 16:42 ferg Assigned To  => ferg
04-16-08 16:42 ferg Status new => closed
04-16-08 16:42 ferg Resolution open => fixed
04-16-08 16:42 ferg Fixed in Version  => 3.1.6


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker