Problems, need help? Have a tip or advice? Post it here.
9 posts Page 1 of 1
I posted on these forums a while back regarding problems I was encountering running CouchCMS in Wamp. Since I could not fully overcome these problems I gave up on it.

I have recently gained some time and decided to re-visit CouchCMS nad tried it out on the four local server systems. I experienced the same problem on them all, even on the portable uniserver I downloaded from this site.

The problem occurs during the login process. I found that after installation all was OK. I logged in and had no problem. However, when it came to a re-log I found that after entering my password and clicking 'login' the browser went into a permanent loop with the page hanging and the re-direct not happening. If I replaced all characters from the 'login.....' onwards with 'index.php' I went to the CouchCMS screen and all functioned well from that point.

I had this problem on all 4 systems and each new login met with the same problem.

It was a while before I realised what changes I had made that might cause this.

When I used the tutorial 'Aurelius' web files I placed them all within a sub-folder of the 'www' folders of the server systems (I like to keep my work organised). I placed the installed couch folder inside this folder.

I believe that using CouchCMS within sub-folders of the 'www' home areas caused the problem

I have since tried CouchCMS and the Aurelius tutorials simply within the 'www' home areas and have not experienced the problem.

I am not sure if this is a bug or not but I thought I would post it here as a warning to others.

Mike
Thanks for sharing your observations, Mike.

It is perfectly OK to install Couch within sub-folder(s) of a site's root. If prettyURLs are turned on, this would need making a little change to the generated .htaccess file (the 'RewriteBase' setting to be precise). Apart from this, there should be no other changes required.

That said, with you experiencing trouble on four different installations I'll have to look deeper into the issue.

You stated that you had the same trouble on the portable version too. Could you please email/PM me the entire 'www' folder of that problem installation? I'll try to duplicate the issue at my end to see what the problem could be.

Thanks.
Thanks KK for the quick response. Unfortunately I cannot forward any other details. I cleared out all offending material and performed a clean install.

However, originally I simply made a folder - Aurelius - with the www area and use PhPMyadmin to create a databae which I named aurelius. I edited the couch config.example file and saved it as config.

The couch folder resided in the www and I used http://localhost/couch/ to install it.

I then moved the couch folder into the aurelius folder.

From then on I used http://localhost/aurelius/couch to access couch. This, it would appear, caused my problems.

However, now using the root of localhost, I have no similar problems.

Hope this helps.
To clarify, you ran the couch installation with the couch folder in the www folder. After installation you then copied the couch folder into the Aurelius folder, and the problem appeared.

If that's correct, have you tried running the installation with the couch folder already inside the Aurelius folder?
I haven't tried that but as I was writing my last post I realised that I had not tested that element of the installation process. I will compare the two when I have time and report back to you.
I have just done a clean Xammp install and placed Aurelius in its own folder in the htdocs area. I placed the couch folder within the aurelius folder and installed couch from there.

The installation was fine and I could login on first time. However, upon restarting Xammp and logging in to couch the browser hangs at this point:

http://localhost/Aurelius/couch/login.p ... 2Fcouch%2F

I suspect I am doing something silly but I do not know what.
@Sertius,
I downloaded the portable version of Couch and the Aurelius sample.
Followed the exact steps you mentioned (i.e. placed 'Aurelius' in the root and then moved 'couch' into it).
I could install Couch without a hitch and all subsequent logins also had no trouble.

That said, the URL that you posted in your previous reply yields a clue as to what the problem might be -
http://localhost/Aurelius/couch/login.php?redirect=%2Faurelius%2Fcouch%2F

In the URL, the location being redirected to is 'aurelius' while the URL shows it with a capital 'A' i.e. 'Aurelius'.
This can cause redirection. I think if you'll check, the folder name would be with a small 'a'.

Could you please try accessing http://localhost/aurelius/couch/login.p ... 2Fcouch%2F and see if that helps?

Thanks.
Indeed in this case it would appear that case is so important. Methinks I will need to take more care in my namings although I always use lower case for all other things web based.

Many thanks KK. I simply renamed the folder and it worked.

So not so much a bug but more in the area of good general advice - ALWAYS USE LOWER CASE -

Thanks
Thanks for the confirmation, @Sertius :)
I agree, always using lower-case for everything in URL is not a bad idea.
9 posts Page 1 of 1