HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Problem with OCPortal 6.1.1 installed in subfolder

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#68765 (In Topic #14604)
Avatar

Fan in training

I've experienced strange issue with OCPortal v6.1.1 installed on subfolder.

After installation while I am logged in everything works fine. But once logged off I am not able to loggin again any more.

The error appears:

"Forbidden
You don't have permission to access /demo/ocp61/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

Consider that everything worked fine before logging out and all folder and files have proper permissions. Web server is Apache and the issue exist on all browsers.

Example of install configuration:

Domain: www.sample.com
Base URL: www.sample.com/demo/ocp61
Cookie domain: /demo/ocp61

Has anybody experienced anything similar? Thank you.
Back to the top
 
Posted
Rating:
#68767
Avatar

Community saint

kurtamurta said

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

The 404 error looks like the same problem I had adding a custom error page. See
View topic: [RESOLVED] Custom 404 error page - ocPortal

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#68768
Avatar

Fan in training

Hi temp1024,

Thank you for your answer but from the post I am not able to conclude what should actually do.

Should I change .htaccess file or install ocportal in root folder? Could you please explain with more details?

I can access all content on my demo site except loggin and registration page.
Back to the top
 
Posted
Rating:
#68769
Avatar

Community saint

In .htaccess, change:

    ErrorDocument 404 /index.php?page=404

to

    ErrorDocument 404 /demo/ocp61/index.php?page=404

For your login problem, maybe check info.php to make sure that $SITE_INFO['base_url'] is pointing to the correct directory. It should be OK because you can get to the rest of your site, unless the rest of those pages are cached for some reason (you should have cleared the caches as part of the install).

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#68771
Avatar

Fan in training

It still doesn't work. Thank you anyway. I hope that OCP guys will notice this topic.
Back to the top
 
Posted
Rating:
#68772
Avatar

Community saint

Is there maybe a .htaccess file in the /demo directory that has some unexpected restrictions?

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#68773
Avatar

Community saint

Have a look at this topic in which I've got a thread running about my own LOGIN problems. Perhaps something there will help.

In any case, try the Disaster recovery tutorial (I think temp1024 has already mentioned it) and you should be able to get back control of your site.

Good luck!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#68774
Avatar

Fan in training

Fletch said

Have a look at this topic in which I've got a thread running about my own LOGIN problems. Perhaps something there will help.
The link doesn't work.

Fletch said

In any case, try the Disaster recovery tutorial (I think temp1024 has already mentioned it) and you should be able to get back control of your site.
The problem still exists. I've tried on other domain and hosting provider but that hasn't helped. I will try to install in the root in new domain and see what will happen.

Back to the top
 
Posted
Rating:
#68776
Avatar

Community saint

kurtamurta said

The link doesn't work.
Yeah, sorry about that. I thought I'd copied it correctly.

I suppose you could do your own search in the forums to see if the problem has arisen, and been fixed, previously.

Try a search for 'Mega LOGIN Problems' by 'Fletch' - can't seem to get the URL to play nice as a link!

 :thumbs:


Last edit: by Fletch

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#68788
Avatar

kurtamurta said

I've experienced strange issue with OCPortal v6.1.1 installed on subfolder.

After installation while I am logged in everything works fine. But once logged off I am not able to loggin again any more.

The error appears:

"Forbidden
You don't have permission to access /demo/ocp61/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

Consider that everything worked fine before logging out and all folder and files have proper permissions. Web server is Apache and the issue exist on all browsers.

Example of install configuration:

Domain: www.sample.com
Base URL: www.sample.com/demo/ocp61
Cookie domain: /demo/ocp61

Has anybody experienced anything similar? Thank you.

Pretty sure this error is coming from Apache, before ocPortal even runs. I would check the file access permissions on the 'demo' folder, the 'ocp61' folder, and the 'index.php' folder. I would check for .htaccess files in '/', '/demo' and '/demo/ocp61' and try disabling whatever you find to see if it helps. I would take a look at the Apache error log to see if it gives any more details.

EDIT: Looks like you covered half of that yourself and gave more details I missed. It's odd, I don't see why ocPortal's login could be related to an error that happens deeper down than ocPortal. But looking at the server logs is all I can really suggest. I think the only way ocPortal could do it is if your IP got banned; ocPortal writes that into a .htaccess in it's install directory if it can, for maximum early protection against hackers.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#68912
Avatar

Fan in training

Chris,

Thank you for you effort.

Maybe the issue is related to mod_security on the server. I will check with my hosting provider(s) and let you know. It could be usual problem but it is important for testing purposes.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: