Koozali.org: home of the SME Server

Modifying the PHPBaseDir setting for an ibay

Offline Charles2008

  • *
  • 174
  • +0/-0
Modifying the PHPBaseDir setting for an ibay
« on: October 10, 2013, 09:33:01 PM »
In the past I have very successfully followed the instructions on the following page to resolve problems associated with the Open basedir restriction:
http://wiki.contribs.org/PHP#Open_basedir_restriction

However, this time I am having a problem with the first instruction:

Code: [Select]
db accounts getprop ibayname PHPBaseDir
I have SSH'd into my SME8 LAN server copied in the above line at the command prompt, changed the 'ibayname' to the correct ibayname  ...  and nothing. It just creates a new command prompt on the line below.

That isn't what happened when I successfully used it previously.

Any idea what am I doing wrong, please?
Charles

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Modifying the PHPBaseDir setting for an ibay
« Reply #1 on: October 10, 2013, 09:57:40 PM »
nothing wrong..

it means that the ibay has not a "custom" PHPBaseDir property

just set it as you need/prefer.. use the wiki page as an howto

Offline Charles2008

  • *
  • 174
  • +0/-0
Re: Modifying the PHPBaseDir setting for an ibay
« Reply #2 on: October 10, 2013, 11:17:34 PM »
Stefano, thank you.

You were right, of course.

Code: [Select]
db accounts setprop ibayname PHPBaseDir /home/e-smith/files/ibays/ibayname/:/tmp/then
Code: [Select]
signal-event ibay-modify ibayname
...   worked a treat. Now uploading fine.
Charles

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Modifying the PHPBaseDir setting for an ibay
« Reply #3 on: October 11, 2013, 01:07:15 AM »
Charles2008

The getprop part of the db command indicates you are asking to be shown a value for a particular setting. As that value did not exist, then you were shown nothing, which caused you to be confused, & caused you to even think the command was wrong.

While it's OK to follow published commands "by rote", without necessarily having a proper understanding of those comnands, this does limit your experience, usability, &  diagnostic ability.

I personally feel it would be far better for you to learn about & understand the db command syntax & switches etc, as doing so will allow you to have "instant" recognition of db settings & their effects etc.
The db command & the various sme server databases are a pretty easy concept to grasp.

To see the syntax usage, at the command prompt type
db
(followed by pressing the Enter key of course).
Refer to one of the many databases for what it all means eg accounts, configuration, yum_repositories & so on.
Also recommended reading is the
Db Command Tutorial Howto, a link to the Howtos is at top of Foums.

You will have a more enjoyable life using sme server if you understand & master the db command.
« Last Edit: October 11, 2013, 01:09:58 AM by janet »
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: Modifying the PHPBaseDir setting for an ibay
« Reply #4 on: October 11, 2013, 01:12:16 PM »
Janet, thank you for taking the time to post that.

I am very interested to learn about SMEserver's 'inner self' - not least because it will help me avoid situations like that above.

To avoid watching things like 'I'm a Celebrity, Get Me Out of Here' I used to make jam and wine in the evenings. Now I am installing software and trying to configure it. Don't worry, I have enough jam to last me a few years  :D
Charles