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 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置