duanla4959 2017-04-06 07:07
浏览 73


I have a php file that authenticate with ldap, it was working fine on localhost but when i uploaded it to cpanel(softaculous), i got this error Fatal error: Uncaught Error: Call to undefined function ldap_connect(), i know that i have to uncomment extension=php_ldap.dll in php.ini,but i can not find this file,where can i find the php.ini file in cpanel?Also i want to know from where i can restart the apache on cpanel?

// Active Directory server
$ldap_host = "CRAMSDCR01V.cloud4rain.local";

// connect to active directory
$ldap = ldap_connect($ldap_host);
  • 写回答

2条回答 默认 最新

  • doushangxianq07480 2017-04-06 07:10

    You can find it under File Manager on cPanel

    at the Top Right corner on your FIle Manager Page >> Klik Settings Button >> check the Show Hidden Files (dotfiles) option

    you can add the the new file, if there's doesn't exist yet.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥15 nslt的可用模型,或者其他可以进行推理的现有模型
  • ¥15 arduino上连sim900a实现连接mqtt服务器
  • ¥15 vncviewer7.0安装后如何正确注册License许可证,激活使用
  • ¥15 phython如何实现以下功能?查找同一用户名的消费金额合并2
  • ¥66 关于人体营养与饮食规划的线性规划模型
  • ¥15 基于深度学习的快递面单识别系统
  • ¥15 Multisim仿真设计地铁到站提醒电路
  • ¥15 怎么用一个500W电源给5台60W的电脑供电
  • ¥15 请推荐一个轻量级规则引擎,配合流程引擎使用,规则引擎负责判断出符合规则的流程引擎模板id
  • ¥15 Excel表只有年月怎么计算年龄