简体   繁体   中英

Wordpress Permalinks & Apache not found or unable to stat, referer

I am trying to get a copy of a Wordpress site spun up in my local environment and the home page loads correctly, but when I attempt to load a link from the menu I get a 404.

  1. I have given ownership to www-data, and set folders and files to 755 & 644.
  2. I have the default .htaccess in place.
  3. apache.conf is set so the directory AllowOverwrite is set to ALL

So now when I look at the apache log I see this entry just after loading a page that results in a 404...

[php7:error] [pid 6427] [client ::1:53910] script '/home/my-user/development/index.php' not found or unable to stat, referer: http://localhost/my-wordpress-site/

I have the default .htaccess in place.

That might not do, if you have WP running in a folder, and not at root domain level.

Flush the permalink settings in the admin dashboard (simply save the settings once again), then WP should update the .htaccess itself – provided it is writable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM