Tag Archives: osx

Resolution of Ansible Issues on OS X Mavericks

Getting started with Ansible on OS X Mavericks. While following the installation instructions, it broke down on the final step, twice.

It first broke down with the following message (upon entering an empty password):

Then tried entering the password for my logged-in user, which resulted in the following error:

Solution 1: This was resolved with the solution found here.

After this, things were still breaking down, so I turned the -vvvv flag on. Here’s the output with -vvvv flag:

Solution 2: Go to System Preferences > Sharing, and enable Remote Login option:

OS X - Sharing - Remote Login

You will finally get the following output:

That’s all folks.

Laravel Blank (White) Screen of Death on Mac OS X

Kept getting a blank screen / white screen of death upon copy-pasting a new Laravel project from a Windows machine to Mac OS X (Mavericks – PHP 5.4). Nothing helped. No errors were shown or logged. Whoops was not showing either. It was probably a permissions issue, but no debugging help.

Got to the bottom of the issue only after installing a fresh copy of Laravel 4.1:

This emitted the following error upon browsing project in the browser:

That was it: permissions issue!

So here is the solution: set permissions of all files and folders in app/storage. So, go to your project root from Terminal, and enter the following:

That’s it!
 

Unable to Upload Files into WordPress on Localhost – OS X Apache

Came across a very weird bug in WordPress 3.7.1, which was not letting me upload any image/file through the Media Uploader. It was constantly giving the following error:

  • I tried changing folder permissions to 777; error.
  • Tried changing folder owner to _www; error.
  • Tried changing folder group to _www; error.

None of these solutions worked.

I have a custom folder structure, where wp-content has been renamed to content. So I turned to wp-config.php file. This is how it looks like in my wp-config.php:

I tried changing the last line back to /wp-content/uploads (and renamed the folder), but still the same error! I was pulling my hair at this point!

Then I don’t know what occurred to me, and I commented out that last line. And voila! It worked!

Now I have no clue why explicitly defining the uploads folder was causing the issue, whereas on the WordPress Codex that’s exactly how the uploads folder – on a custom path – is supposed to be defined. Anyway, if anyone is having this issue in WordPress 3.7.x (or other versions), simply try removing this line from your wp-config.php file:

That’s all folks.

Local Websites in Apache after updating to OSX Mavericks 10.9

If after updating OS X to Mavericks, your local Apache setup stopped returning the websites that you had setup locally, then it’s highly likely that your httpd.conf has been overwritten. However, before it was overwritten the Mavericks setup created a backup of the httpd.conf file, httpd.conf.pre-update, in /private/etc/apache2/ folder. You can use diff tools to find out the difference between the new and old httpd.conf files. Most likely, the inclusion of httpd-vhost.conf file must have been commented out, so uncomment that (along with any other changes that you might have had in the older httpd.conf file).

Reference: Quick Tip: Getting Apache Up And Running After Updating To Osx Mavericks (10.9)