dounei5721 2014-06-06 16:27
浏览 21
已采纳

本地wordpress dev发出index.php和admin工作 - 没有其他页面响应

I am having a severe issues setting up a local dev environment on my mac for a wordpress site i am working on. Below is the process i have tried:

Start apache locally Set up dev environment in httpd.conf files Set up dev name. Set up dev name to link to location of files Set up dev IP. This process worked fore every other instance except this one.

The wp-admin works fine and all posts and updates can be made there. The index.php works fine. However, this is it. No posts are working and they all come back with the same error message: 'The requested URL // was not found on this server’.

*It should be mentioned that I had xampp installed on my machine and it was running out of the same port as my local apache and sql. I changed the ports on xampp and this did not work. I uninstalled xampp, restarted my computer and this did not work.

I have several other virtual environments up and they work just fine – though they are not .php and sql based. I have been looking into this issue for about a day now and cannot figure it out.

  • 写回答

1条回答 默认 最新

  • dsbezji539113152 2014-06-06 16:35
    关注

    OS X by default disables .htaccess overriding in order to enable it follow these steps:

    Open this file:

    /etc/httpd/users/yourusername.conf
    

    Save with:

    <Directory "/Users/yourusername/Sites/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    

    Then restart apache with this command:

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

报告相同问题?

悬赏问题

  • ¥15 各位请问平行检验趋势图这样要怎么调整?说标准差差异太大了
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 wpf界面一直接收PLC给过来的信号,导致UI界面操作起来会卡顿
  • ¥15 init i2c:2 freq:100000[MAIXPY]: find ov2640[MAIXPY]: find ov sensor是main文件哪里有问题吗
  • ¥15 运动想象脑电信号数据集.vhdr
  • ¥15 三因素重复测量数据R语句编写,不存在交互作用
  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab