Wordpress Install on OS X Snow-Leopard under Sites/public for use with capistrano
I would like to put my local OS X wordpress site in my ~users/Sites/public directory, instead of the ~users/Sites so i can properly setup a capistrano deployment.
When i try this i can visit the site locally by visiting http://localhost/public and everything looks and works great but if i ever try to go to h开发者_C百科ttp://localhost/public/wp-admin to administer my local copy of wordpress it tries to redirect me back to http://localhost/wp-admin which doesn't exist.
Do you know how I might be able to work around this problem?
Make a symlink. In the terminal:
cd /Library/WebServer/Documents/
sudo ln -s ~/Sites/public/wp-admin
Then type your user password when prompted.
Changing your DocumentRoot in your Apache config would probably be a good place to start.
精彩评论