Jump to content

Diretiva open_basedir


Recommended Posts

Estou fazendo algumas configurações de segurança no PHP seguindo alguns tutoriais. Porém estou em dúvidas quanto ao open_basedir.

Como o PHP handler no meu servidor está configurado como SuPHP, habilitar o open_basedir pelo WHM não vai fazer funcionar, então parece que tem que ser feito direto no php.ini padrão do servidor ou pelo editor no WHM.

Resolvi ir por ssh e acessar o arquivo /usr/local/lib/php.ini. Só que não sei o que fazer agora pois todos os sites que encontrei falam para adicionar esses caminhos: /home/:/tmp:/usr/local/lib/, mas na documentação do cPanel (https://documentation.cpanel.net/display/ALD/PHP+open_basedir+Tweak) os caminhos são outros.

Quais devo usar ou como que os colegas configuram em seus servidores?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

Do you agree with our terms?