Topic on Project:Support desk

I do not have access to the root folder: (/bin/bash)

6
Sokote zaman (talkcontribs)

hello


How to modify the address of the (/bin/bash) folder to the following address:

/home/example/tmp/wgTmpDirectory/


Warning: is_executable(): open_basedir restriction in effect. File(/bin/bash) is not within the allowed path(s): (/home/example/:/tmp:/var/tmp:/opt/alt/php73/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php73/lib/php/) in /home/example/domains/example.com/public_html/mediawiki/includes/shell/Command.php on line 311


Thank you for your help

Thanks

MarkAHershberger (talkcontribs)

Can you remove the open_basedir restriction?

Sokote zaman (talkcontribs)

Thank you for your response

I do not want to use root for security and I have installed MediaWiki on the user.

And I can not access open_basedir.

Please help me to give (/ bin / bash) the address to the user from root

Thank you for your help

Thanks

Bawolff (talkcontribs)

/bin/bash is a file not a folder. It is insecure to put this in a directory writable by your webserver. You probably do not want to do what you are asking to do. It is significantly worse for security than not having open_basedir.

Additionally the path to bash is not configurable in mediawiki, so you cant anyways.


That said, that warning is just a warning, mediawiki should continue to work fine (however some security features that depend on bash will be disabled, specificly resourse limits on external commands)

Sokote zaman (talkcontribs)

Thank you very much for the useful information you provided

Question: Can I solve this problem by customizing the MediaWiki source?

Because I have installed two plugins that need a bash to run properly and completely

Bawolff (talkcontribs)

are they giving a different warning? (The warning you posted shouldnt really prevent executing things. If /bin/bash isnt executable, it will instead call whatever command it is directly)

Reply to "I do not have access to the root folder: (/bin/bash)"