Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2010, 02:14 PM
javaguy44 javaguy44 is offline
Junior Member
 
Join Date: May 2010
Posts: 4
Default Quercus + WordPress + Pretty Permalinks

Hi,

Has anyone got Quercus + WordPress + Pretty Permalinks to work?

I'm using UrlRewriteFilter, and have been at it for awhile but I can't get Pretty Permalinks to resolve.

Would love it if someone who got it working would share....would absolutely make my day!

I'm using:
- Tomcat 6
- WordPress 2.9.2
- Quercus 4.0.7
- Windows XP Pro
- Java 6

Thanks!
Reply With Quote
  #2  
Old 06-14-2010, 11:10 PM
domdorn domdorn is offline
Administrator
 
Join Date: Dec 2009
Location: Vienna / Austria
Posts: 97
Default

what do you mean with
"but I can't get Pretty Permalinks to resolve."
?

I'm assuming you are using turkeys rewrite filter?
please post your urlrewrite.xml here.

thanks.
dominik
Reply With Quote
  #3  
Old 11-06-2011, 03:36 PM
sinoea sinoea is offline
Junior Member
 
Join Date: Oct 2011
Posts: 4
Default Pretty Permalinks + Word Press + Quercus + Tomcat5.5

Hi,
can you please advise me on how to get pretty permalinks working
on WordPress with Quercus and Tuckey UrlRewriteFilter.

I keep getting a 404 error for pages/articles with Pretty Permalinks

The following is included in my web.xml:
<filter>
<filter-name>UrlRewriteFilter</filter-name>
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewrite Filter</filter-class>

<!-- set the amount of seconds the conf file will be checked for reload
can be a valid integer (0 denotes check every time,
-1 denotes no reload check, default -1) -->
<init-param>
<param-name>confReloadCheckInterval</param-name>
<param-value>60</param-value>
</init-param>

<!-- if you need to the conf file path can be changed
it is specified as a path relative to the root of your context
(default /WEB-INF/urlrewrite.xml) -->
<init-param>
<param-name>confPath</param-name>
<param-value>/WEB-INF/.htaccess</param-value>
</init-param>

<!-- sets up log level (will be logged to context log)
can be: TRACE, DEBUG, INFO (default), WARN, ERROR, FATAL, log4j, commons, slf4j,
sysout:{level} (ie, sysoutEBUG)
if you are having trouble using normal levels use sysoutEBUG
(default WARN) -->
<init-param>
<param-name>logLevel</param-name>
<param-value>TRACE</param-value>
</init-param>

<!-- you can change status path so that it does not
conflict with your installed apps (note, defaults
to /rewrite-status) note, must start with / -->
<init-param>
<param-name>statusPath</param-name>
<param-value>/status</param-value>
</init-param>

<!-- you can disable status page if desired
can be: true, false (default true) -->
<init-param>
<param-name>statusEnabled</param-name>
<param-value>true</param-value>
</init-param>

<!-- you may want to allow more hosts to look at the status page
statusEnabledOnHosts is a comma delimited list of hosts, * can
be used as a wildcard (defaults to "localhost, local, 127.0.0.1&quot -->
<init-param>
<param-name>statusEnabledOnHosts</param-name>
<param-value>localhost, dev.*.myco.com, *.uat.mycom.com</param-value>
</init-param>

<!-- defaults to false. use mod_rewrite style configuration file (if this is true and confPath
is not specified confPath will be set to /WEB-INF/.htaccess) -->
<init-param>
<param-name>modRewriteConf</param-name>
<param-value>true</param-value>
</init-param>

<!-- load mod_rewrite style configuration from this parameter's value.
note, Setting this parameter will mean that all other conf parameters are ignored.
<init-param>
<param-name>modRewriteConfText</param-name>
<param-value>
RewriteRule ^/~([^/]+)/?(.*) /u/$1/$2 [R]
RewriteRule ^/([uge])/([^/]+)$ /$1/$2/ [R]
</param-value>
</init-param>
-->

<!-- defaults to false. allow conf file to be set by calling /rewrite-status/?conf=/WEB-INF/urlrewrite2.xml
designed to be used for testing only
<init-param>
<param-name>allowConfSwapViaHttp</param-name>
<param-value>false</param-value>
</init-param>
-->

</filter>

<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>

<servlet>
<servlet-name>Quercus Servlet</servlet-name>
<servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class>

<init-param>
<param-name>script-encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>

<!--
Tells Quercus to use the following JDBC database and to ignore the
arguments of mysql_connect().
-->
<!--
<init-param>
<param-name>database</param-name>
<param-value>jdbc/test</param-value>
</init-param>
-->

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

<!--
Location of the license to enable php to java compilation.
-->
<init-param>
<param-name>license-directory</param-name>
<param-value>WEB-INF/licenses</param-value>
</init-param>
</servlet>

<servlet-mapping>
<servlet-name>Quercus Servlet</servlet-name>
<url-pattern>*.php</url-pattern>
</servlet-mapping>

----------------------

The .htaccess file is under the /WEB-INF/ directory and looks like this:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /translation-articles/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /translation-articles/index.php [L]
</IfModule>

# END WordPress


The Word Press app folder is called translation-articles and is on the
same level as the WEB-INF and the META-INF folders.


I have Apache HTTP 2.2 listening on port 80 and connected to
Tomcat5.5 (that listens to port 8080).

Normal ugly URLs work, but not Pretty Permalinks, I get a 404 error.

Hope you can help, I have been struggling for 4 days now.

Thanks!
Reply With Quote
  #4  
Old 11-06-2011, 05:31 PM
sinoea sinoea is offline
Junior Member
 
Join Date: Oct 2011
Posts: 4
Default .htaccess file not loaded properly

I changed the path location to the .htaccess file in web.xml
to /translation-articles/.htaccess

and updated the .htaccess file to:
RewriteEngine On
RewriteRule /translation-articles/index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /translation-articles/index.php [L]

and now I get this error:

INFO [TP-Processor2] [2011-11-06 18:30:22,621] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: starting conf reload check
INFO [TP-Processor2] [2011-11-06 18:30:22,621] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: conf file modified since last load, reloading
INFO [TP-Processor2] [2011-11-06 18:30:22,625] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: processing line: Options +FollowSymlinks
INFO [TP-Processor2] [2011-11-06 18:30:22,625] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: processing line: AllowOverride All
INFO [TP-Processor2] [2011-11-06 18:30:22,625] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: processing line: RewriteEngine On
INFO [TP-Processor2] [2011-11-06 18:30:22,625] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: RewriteEngine value parsed as 'On'
INFO [TP-Processor2] [2011-11-06 18:30:22,626] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: RewriteEngine as boolean 'true'
INFO [TP-Processor2] [2011-11-06 18:30:22,626] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: processing line: RewriteRule /translation-articles/index\.php$ - [L]
INFO [TP-Processor2] [2011-11-06 18:30:22,626] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: got rule /translation-articles/index\.php$ - [L]
INFO [TP-Processor2] [2011-11-06 18:30:22,626] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: parsed rule part /translation-articles/index\.php$
INFO [TP-Processor2] [2011-11-06 18:30:22,627] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: parsed rule part -
INFO [TP-Processor2] [2011-11-06 18:30:22,627] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: parsed rule part [L]
INFO [TP-Processor2] [2011-11-06 18:30:22,627] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: processing line: RewriteCond %{REQUEST_FILENAME} !-f
INFO [TP-Processor2] [2011-11-06 18:30:22,627] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: about to parse condition
INFO [TP-Processor2] [2011-11-06 18:30:22,628] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader ERROR: REQUEST_FILENAME currently unsupported, ignoring
INFO [TP-Processor2] [2011-11-06 18:30:22,628] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: processing line: RewriteCond %{REQUEST_FILENAME} !-d
INFO [TP-Processor2] [2011-11-06 18:30:22,628] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: about to parse condition
INFO [TP-Processor2] [2011-11-06 18:30:22,628] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader ERROR: REQUEST_FILENAME currently unsupported, ignoring
INFO [TP-Processor2] [2011-11-06 18:30:22,629] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: processing line: RewriteRule . /translation-articles/index.php [L]
INFO [TP-Processor2] [2011-11-06 18:30:22,629] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: got rule . /translation-articles/index.php [L]
INFO [TP-Processor2] [2011-11-06 18:30:22,629] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: parsed rule part .
INFO [TP-Processor2] [2011-11-06 18:30:22,631] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: parsed rule part /translation-articles/index.php
INFO [TP-Processor2] [2011-11-06 18:30:22,631] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ModRewrite ConfLoader DEBUG: parsed rule part [L]
INFO [TP-Processor2] [2011-11-06 18:30:22,631] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: inited with 2 rules
INFO [TP-Processor2] [2011-11-06 18:30:22,632] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: conf is NOT ok
INFO [TP-Processor2] [2011-11-06 18:30:22,632] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter ERROR: Conf failed to load
INFO [TP-Processor2] [2011-11-06 18:30:22,632] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ServerName Matcher DEBUG: looking for hostname match on current server name www.translatorstown.com
INFO [TP-Processor2] [2011-11-06 18:30:22,632] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: urlRewriter engine not loaded ignoring request (could be a conf file problem)
INFO [TP-Processor2] [2011-11-06 18:30:22,765] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.utils.ServerName Matcher DEBUG: looking for hostname match on current server name www.translatorstown.com
INFO [TP-Processor2] [2011-11-06 18:30:22,766] (ApplicationContext.java:647) - org.tuckey.web.filters.urlrewrite.UrlRewriteFilter DEBUG: urlRewriter engine not loaded ignoring request (could be a conf file problem)




There is a problem in the conf file it seems, but what is the probelm?
Reply With Quote
Reply

Tags
permalinks, quercus, wordpress

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:51 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.