Duplicating my site on Localhost – Partial Success but not quite there
-
I am trying to set up a localhost version of my custom theme public WordPress site in order to test and update some features. The public site is installed in its own subdirectory (www.startguides.net/sgnet_wp/). I’ve duplicated that structure on my local wordpress installation.
The exported .htaccess file from the public site didn’t work on the local site (when trying to load the home page on localhost, it just opened a save dialog–strange). I replaced it with a blank one (just has # BEGIN WordPress # END WordPress) and the site loads. The public .htaccess contains this code:
——————————————-
# Use PHP5.4 as default
# Changed PHP handler from application/x-httpd-php54 to application/x-httpd-phpbeta on Thu Jan 14 08:09:50 MST 2016.
AddHandler application/x-httpd-phpbeta .php# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
——————————————–I’ve successfully
- exported my site and database from Bluehost
- set up the latest WAMP (wampserver3.0.6_x64_apache2.4.23_mysql5.7.14_php5.6.25-7.0.10.exe)
- created an alias (localhost/startguides) for the imported site on WAMP
- imported the database and edited to reflect the localhost locations (per https://www.webnots.com/how-to-move-live-wordpress-site-to-localhost/)
- loaded the main page and wp-admin through localhost/startguides WAMP alias.
Issues
None of the menu links will load their respective pages. For example, I get the following error when I click on the Solutions page link in the menu:
——————————-
Not Found
The requested URL /startguides/solutions/ was not found on this server.
Apache/2.4.23 (Win64) PHP/5.6.25 Server at localhost Port 80
——————————-If I try to load/install a new plugin, I get this error:
—————————————–
Installation failed: Download failed. Destination directory for file streaming does not exist or is not writable.
—————————————–
(I can install manually by copying plugin to the /plugins directory–I installed Better Search Replace to possibly help with troubleshooting but don’t really know what to do with it…)When I load Settings/Permalinks I get the following error table at the top of the page:
——————————–
Warning: fopen(F:/Jacobs Design/Job Files/Barber Companies/StartGuides/Website/Wordpress/.htaccess): failed to open stream: Permission denied in F:\Jacobs Design\Job Files\Barber Companies\StartGuides\Website\Wordpress\sgnet_wp\wp-admin\includes\misc.php on line 123
Call Stack
# Time Memory Function Location
1 0.0012 351248 {main}( ) …\options-permalink.php:0
2 0.4788 40360312 flush_rewrite_rules( ) …\options-permalink.php:151
3 0.4788 40360504 WP_Rewrite->flush_rules( ) …\rewrite.php:273
4 0.4934 40426576 save_mod_rewrite_rules( ) …\class-wp-rewrite.php:1833
5 0.4949 40429272 insert_with_markers( ) …\misc.php:212
6 0.4955 40429568 fopen ( ) …\misc.php:123
—————————————-Not a programmer, so not sure what to do next. I’ve looked at a lot of posts trying to find an answer, and some of the .htaccess coding advice seemed promising, but didn’t work.
Thanks in advance for any help.
- The topic ‘Duplicating my site on Localhost – Partial Success but not quite there’ is closed to new replies.