Step by step (and with screenshots,) we’ll go through each part of the process — downloading and installing MAMP, basic MAMP configuration, creating a MySQL user and database, getting WordPress up and running, and in the end I’ll share some tips you might find useful in your WordPress journey.T2Laser is a Benbox and Elekscam replacement for Grbl based laser and CNC systems. The process is simple just download, click next-next-next and you are doneThis is an absolute beginners tutorial on how to get yourself a local WordPress development environment set up on your Mac OS X with MAMP. Each installer includes all of the software necessary to run out of the box (the stack). Bitnami WordPress Stack Installers Bitnami native installers automate the setup of a Bitnami application stack on Windows, Mac OS and Linux.It bundles the typical software stack you’d need to run all sorts of web applications including WordPress that is the Apache web server, a MySQL database server and a PHP interpreter. This means that in order to run WordPress locally, you would need to install and configure the set of software yourself, but luckily there’s MAMP!MAMP is a stand-alone application for Mac OS X which brings server power to your home or office desktop or laptop. In order to work, it requires a special set of server software that your hosting company will typically provide for you, but such software is not pre-installed on your local Mac. Placeholder content for popup link WordPress Download Manager - Best.WordPress is not a stand-alone application. Developer/Publisher: Dejal Systems, LLC.Download and try the latest software for Windows, Android, Mac, and iOS for free.
Wordpress Software Mac OS XLet’s browse to the MAMP website and get ourselves the latest copy of the software. Installing MAMPIf you’re a Mac user, you’ve probably gone through the process of installing new software in OS X, and MAMP is not too different. The first “M” stands for Macintosh, or as we call it nowadays — Mac. Search this page for a word chrome macNote that when starting and stopping services and changing the configuration, MAMP may ask you for your password, which is required to make system changes in OS X.The Status section on the left will show you when the Apache and MySQL services are started or stopped. You’ll be greeted with a user-friendly installer where you’ll have to keep hitting Continue to get through each step.Note that during the Installation Type step, you can hit Customize and uncheck MAMP PRO which would skip the trial commercial package.After MAMP has been installed, you can launch it using the Applications tab in your dock or by searching for MAMP in Spotlight. You’ll see that it contains a MAMP.pkg package which you can run. I’ll call it my_document_root.To make sure everything is working correctly, let’s create a new PHP file in the directory we just set as our document root. A folder in your Documents is a good place to start. That’s where you will install WordPress and store all your project files. This is like the public_html folder on your web hosting server, but a local one. We’ll type in a few commands (which you can easily copy and paste) that will connect to your local MySQL server, create a new database for WordPress and then create a new MySQL user with access to that database. You can find it in your Applications folder or easier, through Spotlight.The Terminal is a command line utility to your Mac, sort of what you might have heard about Linux, DOS and so on.If you’re planning to become a kick-ass WordPress developer, you’re going to have to learn this tool. MAMP ships with a database manager application called phpMyAdmin and the WordPress Codex has a guide on how to create a database with that, but let’s take a shortcut here and fire our Terminal in OS X. Creating a MySQL Database for WordPressNow, before installing WordPress we need a database where it would store its data and settings. If that gives an error, you should explicitly tell Terminal where the MySQL binary is (where you installed MAMP,) in my case it’s: /Applications/MAMP/Library/bin/mysql -uroot -prootIf everything’s correct, the first command will open a MySQL command line (in the same Terminal window) to which you type in the rest of the commands or as they’re called SQL queries. Note that there is no space character between arguments and their values. The first one connects to our local MySQL server using root as the username (the -u argument) and root as the password (the -p argument.) These are the default settings in MAMP. The table prefix is up to you. This should bring up the WordPress welcome page and then on to your database settings, which you probably are familiar with already.The database name, username, password fields are the ones we used when creating the user and database, remember? The host field is localhost because MySQL is running on the same computer (your computer) as the Apache web server. Feel free to move all the contents of that folder back to your document root and then delete the empty WordPress folder.Now, open your browser and point your web browser to localhost again. The one where we created our index.php file, remember? Note that the archive might (and probably will) extract an additional folder called wordpress with all the WordPress files inside. Download the ZIP archive and extract it to that document root directory. Here’s a screenshot from my Terminal to make sure you’ve done everything right:As you might have guessed, the bolded words in the paragraphs above are the values we’re going to use when setting up WordPress, so we’re really close now! Installing WordPressOkay, I assume you already know where to get the latest version of WordPress. While MAMP itself is a lightweight application, when working for a long time without turning it off (and without restarting your computer,) it can get a little laggy and use too much memory. Congratulations! ConclusionI’d like to end this tutorial with a few short tips you might find useful when working with WordPress locally on MAMP. After having filled those in you’re left with your brand new and empty WordPress installation, on your local machine, running MAMP. This entry was tagged tutorials, WordPress. That would really get you closer to the real world hosting environments, and a better WordPress pro.Thank you so much for reading, hope you enjoyed it and feel free to ask questions, post comments and come say hi on Twitter too. Cheers and thanks again!Posted on Januby Konstantin Kovshenin. You don’t need MAMP PRO unless you’re 100% sure you do.Final tip — whenever you become a MAMP ninja, don’t stop there! Your next goal is being able to run a local virtual machine with your favorite Linux distribution linked to your Mac OS X with a network file system or something similar. Apache and PHP binaries and service scripts are available in MAMP’s bin directory, Apache, PHP and MySQL logs are in the logs folder (duh.) If ever needed, Apache and PHP configuration files are located in MAMP’s conf directory, that’s /Applications/MAMP/conf.
0 Comments
Leave a Reply. |
AuthorNicole ArchivesCategories |