Koozali.org: home of the SME Server

PhreeBooks - currencies not updating

Offline Charles2008

  • *
  • 174
  • +0/-0
Re: PhreeBooks - currencies not updating
« Reply #15 on: October 16, 2013, 03:51:11 PM »
@Janet
I will investigate further the Port 80 issue.

I had been thinking, like you, that if this server was 'Server & Gateway' this may well not be happening.
I will try the 'bridge mode' angle.
Charles

Offline Charles2008

  • *
  • 174
  • +0/-0
Re: PhreeBooks - currencies not updating
« Reply #16 on: October 16, 2013, 10:45:12 PM »
I am beginning to think that this is related to the allow_url_fopen issue.

However, I have checked my logs and can't see anything:
/var/log/httpd/error_log
/var/log/messages

http://forums.contribs.org/index.php?topic=31809.0
http://forums.contribs.org/index.php?topic=33951.0;wap2

This sort of remote interrogation and downloading of data seems to be disabled by design.
I have come across the following to allow this globally, but I would prefer to do it for just the ibay in question if sensible:

http://wiki.contribs.org/DB_Variables_Configuration#Php
Code: [Select]
db configuration setprop php AllowUrlFopen On
Code: [Select]
expand-template /etc/php.ini
Code: [Select]
/etc/init.d/httpd-e-smith restart
I need to investigate further.
Charles


Edit:  I am pretty sure that this is what I need:
'Allow PHP URL File Open per ibay'
http://wiki.contribs.org/Useful_Commands

Now before I do anything drastic, can someone who is a little more experienced than me just confirm that this is the right solution. Thanks.
« Last Edit: October 16, 2013, 11:00:52 PM by Charles2008 »

Offline Charles2008

  • *
  • 174
  • +0/-0
[Solved ]Re: PhreeBooks - currencies not updating
« Reply #17 on: October 17, 2013, 12:11:30 AM »
I am delighted to say that I have solved it.
It was in fact this PHP URL File Open issue, and the details in my 'Edit' above have the solution.
I had to make a 'custom-template fragment':

Here is exactly what I did:

ssh into LAN server and at the command line:

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.confActually, it looks like I had one of these already, but no harm done.

Create the template name (file) 99allow_url_fopen :
Code: [Select]
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
Code: [Select]
touch 99allow_url_fopen
Edit the new custom-template file:
Code: [Select]
nano 99allow_url_fopen
and copy in the code given here - http://wiki.contribs.org/Useful_Commands (Allow PHP URL File Open per ibay):
Code: [Select]
<Directory /home/e-smith/files/ibays/IBAYNAME/html>
php_admin_flag allow_url_fopen on
</Directory>

Put in the correct ibay name, save and exit nano.

As per the instructions, expand:
Code: [Select]
expand-template /etc/httpd/conf/httpd.confand finally, restart httpd.
Code: [Select]
/etc/init.d/httpd-e-smith restart
Code: [Select]
exit
And now currencies are updating beautifully  :lol:
« Last Edit: October 17, 2013, 12:37:59 AM by Charles2008 »

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: [Solved ]Re: PhreeBooks - currencies not updating
« Reply #18 on: October 17, 2013, 01:43:18 AM »
Charles2008

Well done. You have learnt something & I am sure you are happy now !
Just goes to show that reading the available documentation does lead to answers.
That approach is probably applicable to many other web app contribs.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Charles2008

  • *
  • 174
  • +0/-0
Re: PhreeBooks - currencies not updating
« Reply #19 on: October 17, 2013, 11:06:24 AM »
@Janet
Why, thank you! :D
You are right, it makes me very happy that I have sorted it out - it was really bugging me.

BTW, I have printed off your 'Well Done' message, cut it out and stuck it to the wall above my desk alongside my Gymkhana Rosettes, my '3rd place in the 100m Dash' Certificate and my 'Cycling Proficiency' badge!

Thanks for your help/encouragement.
Charles