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.


Custom PHP

Login / Search

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

Fan in training

I installed a custom php on my web server (as it is a shared server and it was the only way to get access to customize the php.ini file) But, when OCPortal installed, it evidentially called the shared php install. Is there any way (other than reinstalling) to get it to recognize my custom php install instead of the server wide? Thanks!
Back to the top
 
Posted
Rating:
#37637
Avatar

Hi, I'm not sure how you could have installed PHP on your server. Did you place some files, or run some kind of installer? Is it a Windows or Linux server?
PHP gets tied into a web server in the web server configuration - so I don't think your PHP could be installed, as you wouldn't have access to that.
It might be theoretically possible to get a second PHP install using the .htaccess file of Apache, on rare server configurations, but it's not something I could easily explain.


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

You might also want to look at our recommended.htaccess file, as this shows how some PHP options can be overridden.


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

Fan in training

 I'm already using the recommended.htaccess file (as .htaccess) and
http://wiki.dreamhost.com/Custom_PHP.ini
On my host, you can install your own php that will override the server defaults.
 
Back to the top
 
Posted
Rating:
#37641
Avatar

Oh I see. The webhost here is actually helping you with what I alluded to in my last post, but I'm very surprised - I've never seen a host do that before.

ocPortal doesn't decide about what php.ini file is used, as it's determined before ocPortal runs and outside it's control. So reinstalling won't help and also isn't necessary. If you can work out how to get PHP files running off your php.ini file (as the instructions should apparently do), then the problem will be solved.

Check the instructions were followed correctly. In particular, make sure that you included the .htaccess file settings that tutorial has in addition to the settings from recommended.htaccess (I'm just guessing here you followed the instructions, but then overwrote the .htaccess file you made with ocPortal's – you need to merge them). If things still don't work, you'll need to ask dreamhost, as the instructions would have to have been wrong.


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

Fan in training

Awesome. That worked. I forgot that it included info for the htaccess file. Thanks again!!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: