Jump to content

open_basedir not enabled beta 4


Recommended Posts

15 minutes ago, Woodsman said:

You need to reboot your server after making the php.ini changes to have them go into effect.

Obviously if you can't reboot your server yourself you need to contact your host.

You don't need to reboot the server, just restart php-fpm or apache, whatever you are using.

Link to comment
Share on other sites

1 minute ago, RevengeFNF said:

You don't need to reboot the server, just restart php-fpm or apache, whatever you are using.

Yes if you have independent  access tools to restart separately I agree. As this goes in my case with my present host I can reboot from my hosting account but not via the WHM at present.

Link to comment
Share on other sites

On 4/11/2018 at 3:09 PM, Adlago said:

My host confirmed that open_basedir is enable.
Nonetheless, I added to that in php ini:


open_basedir = "/home/:/tmp"

This did not remove a message.
I added the same to in the admin folder php ini file and then a message has already been removed.
Strange ...

where is php ini? Thats my question.Then it says disable all this:

exec, system, pcntl_exec, popen, proc_open, shell_exec

I cannot find any of it.

Link to comment
Share on other sites

php ini  is in your root directory.

Open it in Notepad++, and add

disable_functions = exec,pcntl_exec,popen,proc_open,system, shell_exec
open_basedir = "/home/:/tmp"

upload again in root.

I added also php ini in the admin directory. This removed messages in the ACP

Link to comment
Share on other sites

For WHM user using Easy Apache.

First enable PHP open_basedir Protection and save

0.thumb.jpg.c17b7c01fd6e7b6dfd0c735d0bc23dab.jpg

 

Go to MultiPHP INI Editor Mode and choose PHP version your site are on.

1.thumb.jpg.508986ad6ed980421e7f73f3d11b9099.jpg


Place this code somwhere in the php.ini editor and save:

open_basedir = "/home/:/tmp"


2.thumb.jpg.434f4c0b86f32225d40e6b20ec26d8f5.jpg


Go to Restart Services and press PHP-FPM (In my case)

3.thumb.jpg.26fbcd6cf876512d8c3bd8a77c6ddba7.jpg


Restart and you are done! The message should disappear in your IPS ACP.

4.thumb.jpg.bc533db19e4dbc41abe0bd2a8ade6bff.jpg

 

Link to comment
Share on other sites

3 hours ago, Woodsman said:

You need to reboot your server after making the php.ini changes to have them go into effect.

Hi, what changes needed in php.ini?

my php.ini file is "open_basedir = on"

 

 

Link to comment
Share on other sites

49 minutes ago, j4ss said:

Hi, what changes needed in php.ini?

my php.ini file is "open_basedir = on"

 

 

That won't necessarily do anything. "open_basedir" is a command that gives permissions to certain files and folders. That's why:

open_basedir = "/home/:/tmp"

Works. It's giving that PHP the permissions only into /home/ (Implying subdirectories) and /tmp (implying no subdirectories).

Link to comment
Share on other sites

Please consult with your server administrator, each case may be different and require a different setup/path/setting, based on many factors, you cannot simply provide one setting for everyone. 

Do not apply settings in this topic if you are not sure of what you are doing, doing so can cause security issues.

You do not need to restart the server after applying the settings either, only php/apache

Link to comment
Share on other sites

2 minutes ago, Rhett said:

Please consult with your server administrator, each case may be different and require a different setup/path/setting, based on many factors, you cannot simply provide one setting for everyone. 

Do not apply settings in this topic if you are not sure of what you are doing, doing so can cause security issues.

You do not need to restart the server after applying the settings either, only php/apache

This most of all.

Link to comment
Share on other sites

On 4/14/2018 at 1:55 PM, opentype said:

Well, putting it on the dashboard is definitely working. We can tell from all the topics about people trying to set the additional security measures. ? 

Problem is... some of us run (admin) our own servers... and we DON'T have open_basedir enabled for a specific reason - same way with the "dangerous php functions" being enabled.  I'm well aware of what I have enabled... I don't need a big old warning that can't be dismissed from something that doesn't know the why/how of my configuration.  ?

Link to comment
Share on other sites

5 hours ago, Tracy Perry said:

Problem is... some of us run (admin) our own servers... and we DON'T have open_basedir enabled for a specific reason - same way with the "dangerous php functions" being enabled.  I'm well aware of what I have enabled... I don't need a big old warning that can't be dismissed from something that doesn't know the why/how of my configuration.  ?

You can always open_basedir the whole server and the message will disappear.

Link to comment
Share on other sites

So, backing up, all we did was (1) move our security warnings/recommendations to the dashboard to give them more visibility, and (2) fixed some bugs causing some of the messages to be unreliable. Obviously this has worked, as evidenced by this thread...perhaps a little too well.

We will be removing the open_basedir warning in an upcoming maintenance release, and allowing the other warnings to be dismissed for a short period of time.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...