OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



install problem

Forum for PKP's Lemon8-XML.

Moderators: jmacgreg, mj

Forum rules
Questions about Lemon8-XML testing and development can go here. You may also want to check out our Lemon8 page.

install problem

Postby dxmwml » Tue Sep 23, 2008 6:48 am

I thought I had successfully installed Lemon8, but there seems to be an issue (I cannot tell if it is with mod_rewrite?).

Our installation is http://cias-opl.rit.edu/apache2-default/l8x/

The default user names are same as install. Trying to log in results in a 404 error.

Any ideas?
dxmwml
 
Posts: 23
Joined: Mon Nov 07, 2005 8:03 am

Re: install problem

Postby mj » Tue Sep 23, 2008 7:47 am

Hi dxmwml,

Yes, this looks like a mod_rewrite issue -- CakePHP requires mod_rewrite to be enabled in order to make URLs RESTful. For example, http://cias-opl.rit.edu/apache2-default/l8x/pages/docs should load the documentation page; the fact that Apache is returning a 404 seems to indicate that it's not rewriting properly. What server environment and version(s) are you using? You may have to explicitly enable mod_rewrite in your httpd.conf.

MJ
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

Re: install problem

Postby jpliske » Mon Apr 06, 2009 10:04 am

Hello,

I am having a similar problem. I see the .htaccess file has this

Code: Select all
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>


So if I needed to explicitly enable mod_rewrite in my httpd.conf/apache2.conf, how would I do this?

I am using Ubuntu 8.04 and my lemon8 directory is /var/www/lemon8, what should my apache config have in it? Should I move the lines in .htaccess to apache2.conf?

Thanks,

Jeff
jpliske
 
Posts: 28
Joined: Tue Nov 25, 2008 11:59 am

Re: install problem

Postby mj » Mon Apr 06, 2009 10:11 am

Hi Jeff,

A quick google search turned up the following posts on enabling mod_rewrite in Ubuntu:

http://snippets.dzone.com/posts/show/6206
http://prasshhant.blogspot.com/2009/01/enable-modrewrite-in-ubuntu-804.html

MJ
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

Re: install problem

Postby jpliske » Mon Apr 06, 2009 11:34 am

Thanks MJ! It works now. I had done the "sudo a2enmod rewrite", but I was missing the "AllowOverride FileInfo" piece to the puzzle
jpliske
 
Posts: 28
Joined: Tue Nov 25, 2008 11:59 am

Re: install problem

Postby vlilloh » Tue Jun 09, 2009 3:23 am

Hi,

I know a little of .htaccess. My Lemon8 installation is in a 1&1 hosting, I have ssh connection but I don't know if i can run a "sudo a2enmod rewrite".

My "http://localhost/l8x/install.php" shows "Bad Request. Your browser sent a request that this server could not understand."

However, with the same 1&1 hosting, I have a Joomla installation that works fine with mod_rewrite. It .htaccess is
Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]


Why does not the Lemon8 .htaccess ... ??
Code: Select all
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>


Cheers.

Edit: More data:

http://localhost/l8x/app/webroot/ shows (with o without .htaccess file):
"Not Found. Error: The requested address '/app/webroot' was not found on this server."
Last edited by vlilloh on Thu May 13, 2010 8:26 am, edited 1 time in total.
vlilloh
 
Posts: 283
Joined: Thu Feb 07, 2008 3:35 am
Location: Murcia, Spain

Re: install problem

Postby mj » Tue Jun 09, 2009 4:49 am

Hi Vicente,

There are a couple of things that could be at issue here:

1) I assume you're using "localhost" as a placeholder for the actual URL of your hosted website, but if not, do bear in mind that localhost actually points to your desktop/laptop, not anything hosted at 1&1. This is a surprisingly common mistake.

2) Your hosting provider may not require or honour the IfModule directives -- if you are already using an .htaccess file without them, you can likely remove them from the Lemon8-XML .htaccess file.

3) I assume you're installing your Lemon8-XML application in a /l8x/ directory below your web root. You shouldn't have to access /l8x/app/webroot/, this is precisely what the .htaccess declarations are for. Lemon8-XML is built on the CakePHP framework, so you may want to have a look at their documentation on configuring .htaccess:

http://book.cakephp.org/view/37/Apache- ... d-htaccess
http://book.cakephp.org/view/308/Installing-CakePHP

Hope this helps,
MJ
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

Re: install problem

Postby vlilloh » Tue Jun 09, 2009 5:33 am

I assume you're using "localhost" as a placeholder for the actual URL of your hosted website

Yes.

Your hosting provider may not require or honour the IfModule directives

I thought. I test without them too.

I assume you're installing your Lemon8-XML application in a /l8x/ directory below your web root. You shouldn't have to access /l8x/app/webroot/, this is precisely what the .htaccess declarations are for.

Yes.

Finally, I tried some questions of the documentation that you say to me, but nothing. Same message.

Cheers.
Last edited by vlilloh on Thu May 13, 2010 8:27 am, edited 1 time in total.
vlilloh
 
Posts: 283
Joined: Thu Feb 07, 2008 3:35 am
Location: Murcia, Spain

Re: install problem

Postby mj » Tue Jun 09, 2009 5:57 am

Hi Vicente,

Hm. There are a couple of things I would check. A note first-off: it looks like your server is a bit picky about properly-formed URLs, ie. http://www.navigalia.com/lemon8 gives a 400 error, but http://www.navigalia.com/lemon8/ gives a 404 error (try a Google search for "trailing slash problem" for more information on this). Now, when I try http://www.navigalia.com/lemon8/index.php it gives a 404, even though this file should exist; similarly, trying http://www.navigalia.com/lemon8/.htaccess gives a 403 (prohibited), which is correct -- it sees that the .htaccess file is there. Similarly, I can go to http://www.navigalia.com/lemon8/app/web ... cument.odt and it will download the sample document, as expected.

This really seems to be a problem with the way .htaccess and mod_rewrite are set up on the server. I would double-check that /lemon8/.htaccess is readable and properly configured, and I'd also double-check permissions on the /lemon8 folder and sub-folders. You might also want to try temporarily disabling the mod_rewrite configuration for your base Joomla installation -- there look to be some directives in there that may be interfering with the .htaccess file in the /lemon8 subdirectory. Mod_rewrite can do some very unexpected things when you have .htaccess files in subdirectories (see, eg. the difference between /lemon8/.htaccess and /lemon8/app/.htaccess).

Hope this helps,
MJ
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

Re: install problem

Postby vlilloh » Tue Jun 09, 2009 11:46 am

Thanks MJ,

finally I installed Lemon8 again from a separate folder of the joomla installation, and adding a "RewriteBase /lemon8/" then it worked fine. Surely the cause was the mod_write configuration of the Joomla or I failed to add anything to the RewriteBase.

Let me ask you another question about Lemon8. The system allows add more users with its accounts? Is it possible that the users can get their own account themselve? Lemon8 does a public use, without accounts? I find nothing about this in the documentation.

Cheers.
vlilloh
 
Posts: 283
Joined: Thu Feb 07, 2008 3:35 am
Location: Murcia, Spain

Re: install problem

Postby mj » Wed Jun 10, 2009 10:49 am

Hi Vicente,

Glad to hear you were able to get it working. To address your question, no, the current release doesn't have any facility to add or otherwise manage user accounts (aside from the minimal ability to modify the password of the two that come built-in) once it's installed. The installer script does let you add accounts at that point, but once you're past that and the application is set up, you'll have to modify the users table directly to add new accounts.

MJ
mj
Site Admin
 
Posts: 304
Joined: Fri Mar 26, 2004 9:32 am
Location: Toronto, Canada

Re: install problem (mod_rewrite)

Postby Eduardo » Sat Dec 18, 2010 6:24 am

I've found another solution to enable the mod_rewrite, for the following install:

Linux Mint 10 (based on Ubuntu 10.10 and Debian)
Apache 2.6

http://www.lavluda.com/2007/07/15/how-t ... 22-debian/

I've tryed all others suggestions of this forum, but that is the single efficient.
Eduardo
 
Posts: 1
Joined: Thu Dec 16, 2010 1:43 am


Return to Lemon8-XML

Who is online

Users browsing this forum: No registered users and 1 guest