How to setup open_basedir in PHP for Joomla

做~自己de王妃 提交于 2019-12-12 03:39:30

问题


I am trying to setup open_basedir on the php.ini file on the server however I'm not really sure how.

Do I create a directory somewhere on the server?


回答1:


You can check the current status in Joomla! Administrator, under Site - System Information - PHP Information (example from 2.5)

Find your php.ini file (search for php.ini in the PHP Information page, it should be under Loaded Configuration File), make a backup and then add the following line (adapted to your current needs; don't forget to remove the comment sign ; before open_basedir):

open_basedir = /home/users/you/public_html

Restart your web server (probably Apache).

Now in Joomla! you should see the a value for open_basedir.

Make sure you test your Joomla! installation by trying some basic tasks, including updating an extension or installing a new one.


More documentation can be found here:

Joomla! Documentation - Consider Using PHP open_basedir

php.net Documentation - open_basedir



来源:https://stackoverflow.com/questions/13772065/how-to-setup-open-basedir-in-php-for-joomla

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!