Koozali.org: home of the SME Server

Need some Help Please! phpbasedir restriction (solved)

Offline alejandro

  • *
  • 35
  • +0/-0
Need some Help Please! phpbasedir restriction (solved)
« on: November 08, 2011, 12:25:35 AM »
I've been running 7.51 with one application installed on an ibay.
this ibay was php 5 enabled (as per php5 howto contrib)
Now I've installed SME 8 beta 6..  and reconfigured the ibay as normal (after I got an error searching php5 cgi) and this application is not working anymore....

I've installed it on a new ibay to see if somethig is wrong in the ibay config but nothing..
Is there anything to change or enable to get it running again.
I'm not sure about the origin of the problem. but as it was working within 7.5.1 with php5 tweak enabled It should work on 8beta6 (php 5.2?)
application is Dolibarr 3.0.1 With some custom modules written for php/mysql.

I have a very limited php/mysql knowledge so I really need any kind of help
Many thanks in advance
Regards
Alejandro.
« Last Edit: November 12, 2011, 02:49:37 AM by alejandro »

Offline johnp

  • ****
  • 312
  • +0/-0
Re: Need some Help Please!
« Reply #1 on: November 08, 2011, 12:57:49 AM »
I think you need to provide the instructions you followed to install it fresh. If you upgraded, you may need to look at any custom settings you have for httpd.conf


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Need some Help Please!
« Reply #2 on: November 08, 2011, 08:17:46 AM »
I've been running 7.51 with one application installed on an ibay.
this ibay was php 5 enabled (as per php5 howto contrib)
Now I've installed SME 8 beta 6..  and reconfigured the ibay as normal (I got an error searching php5 cgi) and this application is not working anymore....
Can you show us the output for the following command (make sure you replace ibayname with the name of your ibay):
Code: [Select]
db accounts show ibayname
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline alejandro

  • *
  • 35
  • +0/-0
Re: Need some Help Please!
« Reply #3 on: November 08, 2011, 01:25:55 PM »
Johnp / cactus: Many thanks for your answers.
I upgraded from my 7.5.1 production server
everything went just fine... except for this little misconfiguration use.
I think I found where the problem is: (This is not a bug! in fact is a problem with my application and php)
this is the output of messages log:

 PHP Warning:  Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/e-smith/files/ibays/dolitest/) in Unknown on line 0
 PHP Warning:  File upload error - unable to create a temporary file in Unknown on line 0
 PHP Warning:  fopen() [<a href='function.fopen'>function.fopen</a>]: Filename cannot be empty in /home/e-smith/files/ibays/dolitest/html/htdocs/MCCImport/index.php on line 115

Of course if someone can give me the right way of enabling or allow tmp file to be created (php-side or app_side) it would be great.
thanks again in advance for any help on this.

Regards
Alejandro

by the way this is the output of ibay db status:

dolitest=ibay
    CgiBin=enabled
    Gid=5088
    Group=system
    Name=pruebas del doli
    PasswordSet=no
    PublicAccess=local
    Uid=5088
    UserAccess=wr-group-rd-group
    php5=no



Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Need some Help Please!
« Reply #4 on: November 08, 2011, 01:38:14 PM »
Code: [Select]
db accounts setprop dolitest PHPBaseDir '/home/e-smith/files/ibays/dolitest/:/tmp/'
signal-event remoteaccess-update

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Need some Help Please!
« Reply #5 on: November 08, 2011, 01:38:53 PM »
search here and in the wiki for open_basedir

Offline alejandro

  • *
  • 35
  • +0/-0
Re: Need some Help Please!
« Reply #6 on: November 10, 2011, 03:05:22 PM »
Code: [Select]
db accounts setprop dolitest PHPBaseDir '/home/e-smith/files/ibays/dolitest/:/tmp/'
signal-event remoteaccess-update
This was just what I needed!
Many many thanks mmccarn.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Need some Help Please!
« Reply #7 on: November 11, 2011, 12:41:40 AM »
alejandro

sme 8b6 has php5, that's why you do not need to install the php5cgi contrib.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline alejandro

  • *
  • 35
  • +0/-0
Re: Need some Help Please!
« Reply #8 on: November 11, 2011, 10:33:13 PM »


alejandro

sme 8b6 has php5, that's why you do not need to install the php5cgi contrib.

Mary: Thanks for your post.
 I know SME8b6 has php5 (one of most important reasos of my upgrade)
 I reconfigured ibays as normal (as said in my first post) disabling php 5 cgi contrib configuration for each ibay using php5
 and then the problem  was what I asked.
 mmccarn gave me the clue to solve it
 Thanks anyway!
 I'm sure I'll need  more help as just testing the new SME 8b6

Regards
Alejandro

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Need some Help Please!
« Reply #9 on: November 12, 2011, 01:19:35 AM »
I'm sure I'll need  more help as just testing the new SME 8b6
When you do please take the time to pick a more descriptive subject for your problem. Thanks in advance.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline alejandro

  • *
  • 35
  • +0/-0
Re: Need some Help Please! phpbasedir restriction (solved)
« Reply #10 on: November 12, 2011, 02:54:11 AM »
When you do please take the time to pick a more descriptive subject for your problem. Thanks in advance.
I apologize, I'll try to be more specific next time (I've modified the subject for someonelse with this problem)
(This happened on my production server and I was in a hurry... )
Regards
Ale