trying to turn on allow_url_fopen by putting php.ini in wordpress root does not work

前端 未结 6 678
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 22:00

ok so, Im building a fancy pants wordpress theme and part of the theme has php getting image widths and using those numbers to resize page elements. It works fine on my loca

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-06 22:34

    If you are on cPanel 11.58+ this is an option within the cPanel. You can do enable this by following these steps: 1. Login to cPanel. 2. Select "MultiPHP INI Editor" under the "Software" section 3. Select the domain you want to make this change for from the drop down 4. The first option will be "allow_url_fopen".

    If you want to make the above change global in WHM you can so do something similar in multiphpini editor.

    However, if you are on an older cPanel version you will have to edit your php.ini manually.

    https://documentation.cpanel.net/display/ALD/MultiPHP+INI+Editor+for+cPanel

提交回复
热议问题