Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: alejandro on November 08, 2011, 12:25:35 AM

Title: Need some Help Please! phpbasedir restriction (solved)
Post by: alejandro 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.
Title: Re: Need some Help Please!
Post by: johnp 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

Title: Re: Need some Help Please!
Post by: cactus 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
Title: Re: Need some Help Please!
Post by: alejandro 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


Title: Re: Need some Help Please!
Post by: mmccarn 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
Title: Re: Need some Help Please!
Post by: Stefano on November 08, 2011, 01:38:53 PM
search here and in the wiki for open_basedir
Title: Re: Need some Help Please!
Post by: alejandro 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.
Title: Re: Need some Help Please!
Post by: janet 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.
Title: Re: Need some Help Please!
Post by: alejandro 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
Title: Re: Need some Help Please!
Post by: cactus 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.
Title: Re: Need some Help Please! phpbasedir restriction (solved)
Post by: alejandro 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