美文网首页
解决PhpStorm使用系统默认php解释器出现502的问题

解决PhpStorm使用系统默认php解释器出现502的问题

作者: 和谐共处 | 来源:发表于2016-11-29 15:02 被阅读147次

    解决PhpStorm使用系统默认php解释器出现502的问题
    1.PhpStrom->Preferences->Deployment
    2.点击加号,输入名字locahost,选择In place
    3.选择Mapping,配置你的项目路径,和访问路径即可
    4.以上操作不行,修改apache默认站点

    修改系统apache默认站点目录
    1.打开/etc/apache2/httpd.conf文件
    sudo vim /etc/apache2/httpd.conf
    2.找到
    /Library/WebServer/Documents
    替换成你项目的目录
    如: /Users/mywork/HelloWorld

    5.以上还不行自行安装

    apache 启动、停止、重启
    sudo apachectl start
    sudo apachectl stop
    sudo apachectl restart

    系统php
    /usr/bin/php
    /etc/php.ini.default /private/etc/php.ini.defaut
    php.ini 中配置 enable_post_data_reading 为 On, 这样才会自动将 POST 数据填入 $_POST 数组中

    brew自定义安装php
    /usr/local/Cellar/php55/5.5.38_11/bin/php
    /usr/local/etc/php/5.5/php.ini

    相关文章

      网友评论

          本文标题:解决PhpStorm使用系统默认php解释器出现502的问题

          本文链接:https://www.haomeiwen.com/subject/kbnapttx.html