How to set up FTP access for local WordPress site running via MAMP

Sometimes you may need ftp access for your local WordPress development (to update WordPress core version, themes and Plugins) running via MAMP or MAMP PRO. You can use the ftp server built into Mac OS X but unfortunately ftp server is not activated by default. Here are the steps to activate the ftp server and how to setting up FTP access:

(1) Open ‘System Preferences’
(2) Go to ‘Sharing’

How to set up FTP access for local WordPress site running via MAMP

(3) Activate “File Sharing”
(4) Click on “Options”
(5) Select (tick) “Share files and folders using SMB”
(6) Click on “Done”
(7) Below the entry “FTP Access: On” you will find a text Other users can access shared folders on this computer, and administrators all volumes, at “afp://10.10.10.10” or “smb://10.10.10.10”. (you will get different IP than 10.10.10.10)

How to set up FTP access for local WordPress site running via MAMP

(8) Write down the IP Address (you will get different IP than 10.10.10.10)
(9) Close the preferences panel.

Now, open MAMP / MAMP PRO.
(10) Go to ‘General’
(11) Change to your Mac username from ‘www (Apache) / mysql (MySQL)’ in ‘Run Apache/MySQL server as user:’ option.

How to set up FTP access for local WordPress site running via MAMP

(12) Restart your webserver (Apache?)

✓ All Done! Now you’re good to access your ftp using following credentials :

FTP Host: Your IP (step 8) or localhost
Username: Your mac username (step 11)
Password: Your mac password
Local Directory Path: Your WordPress installation path ( eg.: /Applications/MAMP/htdocs/wordpress.local )

Set up FTP access for local #WordPress site running via #MAMP #LocalDev cc.: @mamp_en Click To Tweet

How to change Firebug default font in Firefox

If you’re a designer or a developer and don’t like the default font of Firebug, here I am showing you a trick to change font family of Firebug in Firefox.

[Step 1] Install Stylish add-on for Firefox from the link : https://addons.mozilla.org/en-US/firefox/addon/stylish/

Screenshot:
How to change Firebug default font in Firefox

[Step 2] Go to Tools > Add-ons, and click on User Styles

[Step 3] Click on Write New Style and Input Name whatever you like. In my case, I have given ‘Source Code Pro font for Firebug’. Then in Insert area, insert the following code :

.panelNode-html *, .panelNode-stylesheet *, .panelNode-css * {
    font-family: 'Source Code Pro' !important;
    font-size: 12px !important;
}

.objectLink div {
    font-family: sans-serif !important;
    font-weight: normal;
}

.highlightOpen .nodeLabel {
    background: transparent !important;
}

.panelNode-css .groupHeader {
    color: #75715e !important;
    background: transparent !important;
    border: dashed 1px #75715e !important;
    border-left: none !important;
    border-right: none !important;
    padding: 4px !important;
    margin: 10px 0 !important;
}

* Source Code Pro font from Google

Screenshot:
How to change Firebug default font in Firefox

Click Save and you’re done!

Screenshot:
How to change Firebug default font in Firefox

Tutorial: How to change Firebug default font in @Firefox. cc.: @mozillafirefox Click To Tweet

How to install / update SVN (Subversion) on Mac OS X

Below are the steps to install / update SVN (Subversion) on Mac OS X.

Note: To compile and install SVN, you need Xcode with the Command Line Tools installed.

Download the SVN Source:

cd ~/Downloads/
curl -o subversion-latest.tar.gz http://apache.mirrors.tds.net/subversion/subversion-1.7.17.tar.gz
tar -xvf subversion-latest.tar.gz

* You can find latest version of SVN at http://apache.mirrors.tds.net/subversion/
* If you don’t have curl installed on your Mac, you can read VettyOfficer’s Weblog to learn how to install cURL in Mac OS X.

Build and Install SVN

The default SVN install on Mac OS X uses neon. neon allows you to connect to remote SVN repositories via HTTP and HTTPS. Lines 2-6 installs neon. Line 8 builds SVN using the –with-neon configuration flag.

cd ~/Downloads/subversion-1.7.17
sh get-deps.sh neon
cd neon/
./configure --with-ssl
make
sudo make install
cd ..
./configure --prefix=/usr/local --with-neon
make
sudo make install

Using / Updating the new SVN

Your environment will still use old SVN version installed with Mac OS X.
(Run svn --version command to check your SVN version.)

To use SVN version you just installed, you can update your PATH. Assuming you are using the bash shell, add or edit the following line in your ~/.bash_profile:

export PATH=/usr/local/bin:$PATH

Either quit/restart Terminal or run . ~/.bash_profile command.

You should now able to see latest SVN version you just installed.
(Run svn --version command to check your SVN version.)

Tutorial: How to install / update SVN (#Subversion) on Mac OS X Click To Tweet