Testing my web development in IE is the bane of my existence. Since I run Apache and MYSQL on my local host on my Mac it was always a trick to view my work though my Windows VM until my friend Mike Farmer showed me an easy way to access my development environment on my Mac from my virtual machine.
Steps:
Get default gateway of VM machine
Use that address the same way you would “localhost” on your Mac
Error Message: Unable to create directory … {long directory path} … Is its parent directory writable by the server?
Cause: I recently changed hosting services so when I migrated my blog over to the new server everything worked great except for my WordPress uploads. Most things in WordPress are kept relative and ask the server where things are but the path to the upload files are kept in the database so if you change servers without changing the database string pointing to the correct directory you will get an error and probably frustrated also.
UPDATE 05/25/09
Thanks to a comment from Matt Lindsay I now realize that there is a much easier way to update the wordpress upload string in the database than digging into the actual database. A big thanks goes out to matt for making my blog better. ; )
Quicker and easier fix
Login to your WordPress Admin
Go to “Settings”
Select “Miscellaneous”
Put the correct path in the input field labeled “Full URL path to files”
Save the changes and you should be done
The advantage I had in digging into the database is that when I switched hosting services only one of the folders in the path changed so I went in and just modified the one folder. This is nice if you don’t know the exact file path from the server root like me. ; )
Older more complicated fix:
Login to your database for the WordPress blog.
Browse/ view tables in the database created when setting up the blog
Browse/ view table named “wp_options”
In the “option_name” column look for “upload_path” (was #60 for me)
Edit the row values and change to the correct path
Save changes
After making that change the problem should be fixed and uploading will now work. If this helped be sure to give me a shout and leave a comment. Best of luck to you. ; )
Sources:
—————–
I figured this out all on my own. ; ) #HappyGeek
Sometimes in my advanced programming and database classes I feel like I have no clue what is going on. I really love what I do and feel like I excel in my classes and other times I just feel like this video.