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.


External access to my local website

Login / Search

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

Fan in training

Hi all!

I am a really newbie with OcPortal. I finished the installation a few days ago and I am now reading about basic configuration, etc.

As you may know, after the installation we are provided with two links: one to the sample OcPortal website and one to the adminzone to setup.

I just wanted to make these links available from external networks (for example my office's network) so I have done all the necesary adjustments on my windows firewall and router to allow exteral HTTP access to my computer but I can't access to them. 

I did a quick test to see if it my adjustments were working so I created a small php file with the known code: <?php phpinfo(); ?>
and copied it into the folder where the ocportal files were installed and i could successfully access to it.  So now i think something is wrong with the OcPortal website's file. 

Did anyone go through this before? 

I appreciate your help! 

Matías 
Back to the top
 
Posted
Rating:
#111135
Avatar

Hi,

Sounds like maybe you need to change the base URL in info.php to something that works from outside, rather than e.g. localhost?


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:
#111145
Avatar

Fan in training

Hey Chris,

I don't understand what you mean by saying "you need to change the base URL in info.php".
I am not using localhost or 192.168... as hostname when i try to connect from external network.

you can see the issue by youself. This this out:

the link that it works:
http://200.126.167.150/M-OcPortal Installation Files/myinfo.php

the link that it doesnt work:
http://200.126.167.150/M-OcPortal Installation Files/index.php

Anyways i have lots of things to read before to get worry about this problem :)

I didn't even build my own website..
Back to the top
 
Posted
Rating:
#111146
Avatar

Actually my wild guess was correct.

ocPortal canonicalises around it's base URL via automated redirects.

If you open your index.php link, notice how it is redirecting to a 192.168.* address.

You'll need to hand-edit info.php to change the base_url setting, or call up config_editor.php to change it from there.


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:
#111147
Avatar

Fan in training

yeeeees!!!!! now it works! i just edited the info.php as you said and now it's working

Many thanks Chris!

Best regards
Matias
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: