doubi6669 2015-07-04 12:19
浏览 11

如何在我的mac上运行processwire站点?

I have an existing site, using processwire framework, sitting on a godaddy server and working fine. I want to run a version of it on my mac. I've downloaded the whole site folder to my mac and tried to open the home.php page through the browser with the php listener, but I'm getting an HTML page with a bit of code and than the following error:

<b>Fatal error</b>:  Call to a member function get() on a non-object in <b>/Users/yotamhacohen/Downloads/ProcessWire-master/site/templates/home.php</b> on line <b>13</b><br />

I'm kind of new into web developing (especially DB) so if you give any instructions regarding that, please be specific. Thanks.

  • 写回答

1条回答 默认 最新

  • duankuaizhe8257 2015-08-25 09:45
    关注

    I guess for a start you should put your site into /Users/yotamhacohen/Sites/ProcessWire-master/ and then access it in your browser via http://localhost/~yotamhacohen/ProcessWire-master/. This is where your local MAMP setup expects your code. If you're new to all this, you might want to learn first how to set up your local server properly.

    eg. http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/

    You also need to move the content of the database. This is where your contents are stored.

    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?