![]() Open up the nf file by running: sudo nano /etc/apache2/nf Once you have a version you're happy with, we have to enable apache to use it. This is not a needed step, so check out my article on updating the PHP version on Mac OS X. However, you might want to update the version. Nowadays, your Mac will come with PHP installed. You might be thinking, wow, that's a lot of stuff, but your Mac will come with most of this stuff pre-installed. The elements we need to run a WordPress installation locally are as follows: However, in this article, I'll guide you on setting it up locally. I used to do a lot of WordPress development and always had to leverage MAMP/XAMP for this. ![]() Today we'll learn how to run a WordPress installation on our Mac OS X system. You can read more about Derek and contact him at his website: by step guide installing WordPress on Mac OS X 11 Jun, 2021 Written exclusively for WDD by Derek Underwood, a professional web designer and software developer. You can find the widget in the MAMP folder. MAMP comes with a dashboard widget that will turn your environment on and off instantly. When you are not developing and testing a website, you may want to turn off Apache, PHP and MySQL. If you click on it, you should instantly get to your new WordPress website. In our example, you should see a folder named “super-blog”. You should see a folder for each website you are developing. Open up a web browser and navigate to “localhost”. ![]() Save the changes you made to this file and then rename the file “wp-config.php”. Next, make sure the name of your database ( “wp-superblog” in our example) is shown on line 3. Open that file and change both the database username and password to “root” on lines 4 and 5. ![]() Navigate into your “super-blog” folder and locate a file called “wp-config-sample.php”. The easiest way to download WordPress is to point your web browser to Unzip the WordPress package and copy everything in the WordPress folder into your “super-blog” folder. As an example, make a folder called “super-blog” to correspond to the database you made. Within your “webspace” folder, make a new folder with the name of the website that you will be developing. As an example, enter “wp-superblog” and click “Create” to make a database. Look for the section entitled “Create new database” and name your database. Next, click on “phpMyAdmin” to launch the phpMyAdmin web application. From the main MAMP menu, click on “Open start page.” Your web browser should pop open up to a “Welcome to MAMP” page. You already have MySQL running, but you need to create a separate database for each WordPress website that you develop on your Mac. WordPress requires a MySQL database to store posts and settings. I like to use a root folder called “webspace” that I created in the Finder. All your websites will reside in this location, so you want to pick something that you can navigate into easily. Next, click on the Apache section and change the Document Root to a location that you can quickly access. Next, modify the ports for Apache and MySQL by selecting “Preferences” and select “Set to default Apache and MySQL ports.” You should end up with port 80 for Apache and port 3306 for MySQL. If the lights are red, click “Start Servers”. The status lights will tell you if Apache and MySQL are running. Go into the MAMP folder and then open the MAMP icon. You can safely ignore the “ MAMP Pro” folder. To get MAMP, open up your web browser and go to Download MAMP, mount it, and then drag the MAMP folder into your Applications folder. As a bonus, it comes with phpMyAdmin to help you work with databases quickly. One of the great things about MAMP is that it includes almost every PHP option pre-installed and enabled. They also have a “Pro” version at additional expense. MAMP is a free and ready-to-go install of Apache, MySQL, and PHP for Mac OS X. You want to turn off “Web Sharing” if it is currently enabled. Navigate into your System Settings and check the “Sharing” settings. Turn off Web Sharingįirst, you need to make sure the Mac OS X installation of Apache is not running. In this guide, I will show you how to quickly install and configure a working WordPress environment including Apache, PHP, and MySql. ![]() Plus, do you really want to spend time tweaking MySQL? Ready for some WordPress development on your Mac? First, you need to be running Apache, MySQL, and PHP.Īlthough Mac OS X comes with Apache and PHP, you don’t want Apple’s automatic software update to break your development environment by changing your working versions of PHP and Apache. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |