Can't install Dolphin if using Sentora - ZPanel

I've come up with this error which has been documented before:

 

Warning: file_exists(): open_basedir restriction in effect. File(/usr/local/bin/php) is not within the allowed path(s): (/var/sentora/hostdata/okgurls/public_html/okg:/var/sentora/temp/) in /var/sentora/hostdata/okgurls/public_html/okg/install/index.php(1171) : runtime-created function on line 2

 

Before you tell me to disable open_basedir, it's not enabled in PHP.INI or HTTPD.CONF.

 

I found on the digitalocean site that the problem is with Sentora. It seems it won't allow anything to be written to a TMP file. The file must be named TEMP. The writer said "Just change the script". There are two instances of TMP in Install/index.php, but changing them to temp makes no difference. I'm sure there are other issues.

 

Has anyone been successful installing Dolphin with Sendora or Zpanel and are you willing help me and others?

 

See my other post on Softaculous.

 

Ta

Demmy

Quote · 31 Dec 2015

ZPanel sets up open_basedir restrictions via the apache config file rather than php.ini.  And yes, it has to be there, but it may not be named httpd.conf.

You may want to try looking for it here. etc/zpanel/configs/apache/httpd-vhosts.conf

Once the file has been found you look for a line similar to this.

php_admin_value open_basedir "/var/zpanel/hostdata/USER/public_html/DOMAIN:/var/zpanel/temp/ etc." and remove it.

You may also need to do a full file system search for files with the name of httpd.conf and httpd-vhosts.conf


This is the reason i prefer a server that is not running any panels at all. Just a bare install of the operating system. That way i am not dealing with some stupid vhost system that a config panel setup.

You may not want to accept that i am telling you there is a open_basedir setting, but i assure you, it is there somewhere, and not necessary in the servers main httpd.conf or php.ini. The problem with control panels like zpanel, cpanel, plesk and others is they have their own config files for it's weird way of handling virtual hosts.

I assure you it's there, the problem is finding it. And once found and removed from all files it is found in, the apache server will need to be restarted.

https://www.deanbassett.com
Quote · 31 Dec 2015

Hi Deano and thanks for your very swift reply. I'm not a Linux person as you're about to find out, but I have looked in a few other places. The Apache config in my case is apache2.conf and as you suggest, Sentora has added an include line to their own config. I've looked there and in a lot of places, but obviously not the right one yet and I'm not sure if I looked for the code you mentioned. it was a long hard night.

 

You mention a full file system search but that's something I haven't figured out yet. I'm using Nano via Putty and I'm not sure if it can cope with that. can you recommend a command that does a full search? The thought of looking everywhere is daunting.

 

Thanks for your help and yes, I do believe you. Thanks also for an excellent and easy to follow reply.

 

Demmy

Quote · 31 Dec 2015

Drop to secure shell and do your file searches there.  A quick search on the net will reveal the commands and switches to help you find the files.

Geeks, making the world a better place
Quote · 31 Dec 2015

Hi Geek_Girl, I can do file searches okay and I've previously looked in the many of the files Deano has mentioned. I was actually looking for a text-string search command because it should locate what I want even if it takes all day. I use Grep in Windows and it's great.

 

Demmy

Quote · 31 Dec 2015

SUCCESS! Many thanks to Deano for your excellent response to my request. I found the problem wording, only to find that I had already made changes to the line below it last night. It doesn't pay to do things when you're tired. Unfortunately I depended on Nano's primitive search command and it missed the phrase I was looking for.

 

On fixing the problem, the install went fine, but eventually crashed at the Permission Reversal screen. With a little help from another post on this forum I backtracked and found the Path Check on (I think) the second page was wrong. Despite having a green tick, the path was full of typos. Once I fixed that, the install was flawless. I still haven't tested the script, but I thought I'd report back and say thanks.

 

As others will probably wish to use Sentora, I'll do a detailed tutorial and make it available here. Please give me a few days.

 

Thanks also to Geek-Girl for responding. I'll look into centos soon.

Quote · 31 Dec 2015

 

Hi Geek_Girl, I can do file searches okay and I've previously looked in the many of the files Deano has mentioned. I was actually looking for a text-string search command because it should locate what I want even if it takes all day. I use Grep in Windows and it's great.

 

Demmy

Yes, I said to drop to secure shell and do a file search there.  I also mentioned the net.  You go out on the net and search for, oh, let's say, "linux commands to find files."

Geeks, making the world a better place
Quote · 31 Dec 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.