So combined we get our wp-config.php file to look like this: /** The name of the database for WordPress */ Because we are running our site locally the value of “localhost” already works. The very last line of code we needn’t worry about. If you ever forget you can find the same information on the MAMP start page at The lines update to the following: define('DB_USER', 'root') By default MAMP sets both of these values to root. The next two lines coincide with our database username and password. If you recall we named our database wordpress so we will update the first line to replace the “ database_name_here” text define('DB_NAME', 'wordpress') The lines of code we will be editing are below: /** The name of the database for WordPress */ Inside the file you’ll find some text that has been commented out, explaining what the file does and why it’s important to the functionality of WordPress. Once it you make it to Installation Type you will see a Customize button on the bottom left. Unless you plan on buying MAMP Pro, which I have to say has some great features, be sure to pay attention to the Installer prompt. If MAMP isn’t for your be sure to check out Kevin’s post about Installing WordPress on A Windows Computer.Īfter you have downloaded the software (which might take a little while to download due to it’s size) double click the. MAMP requires that your Mac be running Mac OSX 10.6.6 or later so be sure your system is up to date.Īt the time of this writing, MAMP currently offers a beta version for Windows users so if you are following along and are on a PC feel free to give it a try. Downloading MAMPīefore you can install MAMP on your Mac, you’ll need to download it from the MAMP website. MAMP stands for Macintosh, Apache, MySQL, and PHP. For this tutorial we will be using an application called MAMP. This environment uses a local PHP server and MySQL server that when working together provide the necessary code to run WordPress properly. WordPress requires an enhanced environment to run correctly on your Mac. How To Create A Local WordPress Installation On A Mac While most developers make their code play nicely with others, there’s always a chance that it can break your site causing a moment of panic and possibly even some down time before a you figure out a solution to the problem. ![]() There’s no better way to do this than to try it locally to work out any kinks or conflicts that may arise.Īlways keep updates in mind with WordPress, your themes, plugins, etc. Say you have installed a new theme or a new plugin and want to give it a try before anyone else can see it. On top of all of these things the concept of testing plays an even more important role. Since the installation is a local one it will not disrupt what your users see on your existing live website. Working with WordPress locally allows you to make changes and revisions to your website’s design, functionality, or even theme options on the fly. 2 How To Create A Local WordPress Installation On A Macīefore we dive in, I wanted to explain the benefits to installing a local version of your WordPress site or any website for that matter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |