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 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化