kavitha Posted February 17, 2006 Posted February 17, 2006 hi i enabled the register_globals in .htacess and in php.ini file.but that wil work for Apache server. i want run this oscommerce on resin.i am getting the error like this: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. i think this is not error. it is the statement given in application.php plz give me solution for this.
Guest Posted February 17, 2006 Posted February 17, 2006 hi i enabled the register_globals in .htacess and in php.ini file.but that wil work for Apache server. i want run this oscommerce on resin.i am getting the error like this: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. i think this is not error. it is the statement given in application.php plz give me solution for this. What I would do first woud be to determine if register_globals is really on or not. An easy way to do this is to make a test.php file with the following code: <?php phpinfo(); ?> and then open the page. You should get a big screen full of data about your server's configuration. In Configuration - PHP Core section the state of register_globals is listed.
kavitha Posted February 18, 2006 Author Posted February 18, 2006 What I would do first woud be to determine if register_globals is really on or not. An easy way to do this is to make a test.php file with the following code: <?php phpinfo(); ?> and then open the page. You should get a big screen full of data about your server's configuration. In Configuration - PHP Core section the state of register_globals is listed. thanks for your solution. but when i run test.php on resin i am getting Exceptions like this: com.caucho.quercus.QuercusRuntimeException: 'phpinfo' is an unknown function. [phpinfo] at com.caucho.quercus.env.Env.error(Env.java:2281) at com.caucho.quercus.env.Env.error(Env.java:2114) at com.caucho.quercus.expr.FunctionExpr.evalImpl(FunctionExpr.java:132) at com.caucho.quercus.expr.FunctionExpr.eval(FunctionExpr.java:96) at com.caucho.quercus.expr.Expr.evalTop(Expr.java:300) at com.caucho.quercus.program.ExprStatement.execute(ExprStatement.java:74) at com.caucho.quercus.program.BlockStatement.execute(BlockStatement.java:111) at com.caucho.quercus.program.PhpProgram.execute(PhpProgram.java:259) at com.caucho.quercus.page.InterpretedPage.execute(InterpretedPage.java:73) at com.caucho.quercus.page.PhpPage.executeTop(PhpPage.java:116) at com.caucho.quercus.servlet.QuercusServlet.service(QuercusServlet.java:194) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:1 06) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:178) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:267) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:388) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:490) at com.caucho.util.ThreadPool.run(ThreadPool.java:423) at java.lang.Thread.run(Thread.java:595) plz help me. kavitha
mattc428 Posted February 18, 2006 Posted February 18, 2006 I found this answer in the forum awhile back.. Open up notepad and paste in this line: register_globals = On Then save that file as php.ini Upload to your root directory, and upload it to the admin directory. Worked for me, give it a shot :thumbsup:
Guest Posted February 18, 2006 Posted February 18, 2006 thanks for your solution.but when i run test.php on resin i am getting Exceptions like this: com.caucho.quercus.QuercusRuntimeException: 'phpinfo' is an unknown function. [phpinfo] at com.caucho.quercus.env.Env.error(Env.java:2281) ... at com.caucho.util.ThreadPool.run(ThreadPool.java:423) at java.lang.Thread.run(Thread.java:595) plz help me. kavitha It looks like resin's Quercus has a subset of the built-in PHP functions. Perhaps there is a documentation on that somewhere? I'm still new at all this, but it seems to me that oscommerce is complex enough on its own. Trying to run it in a Java application server? Amazing! I commend your bravery, but I can't help with resin issues. Have you tried asking about this issue on resin forums or mailing lists or newsgroups or whatever?
hotdogsandpizza Posted February 19, 2006 Posted February 19, 2006 I found this answer in the forum awhile back.. Open up notepad and paste in this line: register_globals = On Then save that file as php.ini Upload to your root directory, and upload it to the admin directory. Worked for me, give it a shot :thumbsup: I did just that myself...and uh...still get the same error. Ref to see for yourself: http://www.penguin.roxr.com/e-store/ Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. Created the php.ini file, uploaded it to my root directory and admin directory...no result. If anyone wants to see the test.php >>> http://penguin.roxr.com/test.php
nxnlvz Posted June 26, 2006 Posted June 26, 2006 To add php.ini changes to Caucho Quercus you need to do the following to either the web.xml file or resin-web.xml . This all depends on where you placed the servlet definition. web.xml <web-app> <display-name>OSCommerce</display-name> </web-app> resin-web.xml <web-app xmlns="http://caucho.com/ns/resin"> <servlet servlet-name="resin-php" servlet-class="com.caucho.quercus.servlet.QuercusServlet"> <init> <php-ini register_long_arrays="on"/> <php-ini register_globals="on"/> <database>jdbc/quickie_mysql</database> </init> </servlet> <servlet-mapping url-pattern="*.php" servlet-name="resin-php"/> </web-app> resin.conf <database> <jndi-name>jdbc/mysql_oscommerce</jndi-name> <driver type="org.gjt.mm.mysql.Driver"> <url>jdbc:mysql://dbserver.domain.dom:3306/oscommerce</url> <user>USERNAME</user> <password>PASSWORD</password> </driver> <prepared-statement-cache-size>8</prepared-statement-cache-size> <max-connections>20</max-connections> <max-idle-time>30s</max-idle-time> </database> Obviously change out the references to database for your own database. There are also some problems with globals in Quercus. They will be fixed but until then you will have to change the refernece to $$link to read $$link =& $GLOBALS["link"]; Give it a go -nxn
Recommended Posts
Archived
This topic is now archived and is closed to further replies.