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.


Nginx Server

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#65950 (In Topic #14108)

Non-joined user

information to install ocPortal using Nginx Server?

Hello:

I just find ocPortal and I think that is a very good option, maybe a replace of wordpress!!!

But I need to know if there is information about how to install ocPortal using Nginx Server, because I have a wordpress installation using Nginx and have good performance.

Thank you for Any advise that you can give me about this matter.

Thank you,

Best Regards,

Victor
Back to the top
 
Posted
Rating:
#65952
Avatar

Hi,

We use nginx as a reverse proxy server on this site, but I've never used it as a web server. However if you already have PHP working in nginx I can't see how anything about getting ocPortal working would be hard.


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

Fan in training

The problem I'm seeing is that nginx doesn't support .htaccess files as far as I know.  I'm wanting to do the same thing but wondering if I'm then going to have to go into the nginx.conf and create a million rules for each site denying access to all of the files that ocPortal uses .htaccess to deny access for.  Is there a quick fix for this that anybody knows of?  Or is this even a problem?
I do know that using nginx as a reverse proxy cache works great but I'm trying to set up like 100 sites and load balance to two servers which is creating problems when trying to proxy pass everything to Apache virtual hosts.
Back to the top
 
Posted
Rating:
#104431
Avatar

ocPortal's htaccess-everywhere is us being rather defensive. It's not really needed.

I think the biggest risk is someone downloading files from your theme, to rip it off, but it's not that much of a risk given that 80% of the theme work is rip-off-able anyway, due to how browsers work.


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

Fan in training

So people won't be able to go in and access source files or info.php?  I could care less about themes.  I just really like all of the protections that are in place normally e.g.  People can't submit a form from that you haven't allowed them to.  And how they get an error trying to navigate to domain.com/sources.
Now don't get me wrong, I'm in love with open source, but I'm not as much in love with someone being able to see the password for my database.
Here's one more while I'm at it….  What do you think of the opcache that comes with PHP5.5+  I've went through the cache files for ocPortal and it seems like they all use set and get methods that aren't available with this cache.  But then the folks over at PHP say that using opcache is the way to go from 5.5 on up, even over APC.  My question is this…  Will my site run faster with 5.4 and APC with the enable mem-cache of ocPortal set to 1 or just leaving that at 0 and using opcache?
Back to the top
 
Posted
Rating:
#104437
Avatar

Fan in training

By the way, I don't think, I told you yet today…  Awesome product man.  Keep up the great work.  I'm working on a few accessibility tweaks that I'll send your way someday soon.
Back to the top
 
Posted
Rating:
#104441
Avatar

So people won't be able to go in and access source files or info.php?

Nope. As those are php files they will execute rather than download. All the source files only contain functions or classes, so there's no directly accessible code on those. info.php would just not do anything (hence why it is not info.dat or something because yeah that'd be a major hole).

Bear in mind we support IIS, even going as far as partnering with Microsoft to release it through their official Web Platform. IIS doesn't support .htaccess files either.

People can't submit a form from that you haven't allowed them to.

Is done within ocPortal, not on the server level.

What do you think of the opcache that comes with PHP5.5+  I've went through the cache files for ocPortal and it seems like they all use set and get methods that aren't available with this cache.  But then the folks over at PHP say that using opcache is the way to go from 5.5 on up, even over APC.  My question is this…  Will my site run faster with 5.4 and APC with the enable mem-cache of ocPortal set to 1 or just leaving that at 0 and using opcache?

Right, so you need to know the distinction between shared memory and an opcode cache. Things like APC are often both these things. As far as I am aware, PHP integrated Zend Optimizer, which doesn't have a shared memory feature. It's not something I've looked at closely myself.

By the way, I don't think, I told you yet today…  Awesome product man.  Keep up the great work.

Thank you :).

I'm working on a few accessibility tweaks that I'll send your way someday soon.

Ah ok, cool :). Please do. Are you a screen reader user?


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

Fan in training

Thanks for the clarifications.  I really do appreciate it.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: