Skip to content

Instantly share code, notes, and snippets.

@vnys
Last active August 29, 2015 14:05
Show Gist options
  • Save vnys/b61fe324ef52c077be77 to your computer and use it in GitHub Desktop.
Save vnys/b61fe324ef52c077be77 to your computer and use it in GitHub Desktop.
moving wordpress to localhost running mamp
  • symlink htdocs:
cd /Applications/MAMP/
ln -s /Users/<username>/Code/<wp-site> ./htdocs
  • Import database using phpmyadmin
  • Update settings in wp-config.php
  • Rename wp_options > siteurl to localhost:8888
<IfModule php5_module>
AddType application/x-httpd-php .php
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
AddType application/x-httpd-php-source .phps
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment