WordPress for Mac. WordPress offers a first-party application. It’s a free download from their website, and is basically a wrapper around the WordPress.com website. If you’re using that option, you’ll be all set, as the Mac app offers almost everything present in the online back-end. First Time Installing WordPress on Mac. Resolved bertstheword (@bertstheword) 1 year, 8 months ago. Let me first get something off my chest: I’m completely new to wordpress and hosting websites in.
Let me first get something off my chest: I’m completely new to wordpress and hosting websites in general. I hope you will all be patient with me and I appreciate any help and/or suggestions.
I’m trying to setup a website on an old Mac Mini running MacOS 10.14.4 (Mojave) which is on all the time anyway.
I’ve googled at it for a couple of days and I’ve gotten this far:
– I installed Homebrew and used that to get Nginx (I didn’t want to use apples build-in Apache-server as I figured with Nginx I migth give myself an easier time ind the future in case I switch hardware.)
– Using Homebrew I also installed [email protected] and MySql 8.0.16 Homebrew
– I remapped Nginx’s config file to point to another disk where I want the website-files to be stored.
– I setup my local DNS-server so my domain-name points to the Mac Mini
– Downloaded and placed wordpress in the www-folder I pointed Nginx to.
– Made a MySQL-user and a database using CLI and then confirmed, by using “TablePlus” SQL GUI, that the wordpress-user I created can authenticate and see the database. Using TablePlus I’m able to manually make entries into the database I made for wordpress with the wordpress user.
Entering mydomainname.dk on the mac mini’s webbrowser I see the WordPress welcome-site.
I chose English and then entered my MySQL database-name and credentials. But all I get is:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at 127.0.0.1. This could mean your host’s database server is down.
• Are you sure you have the correct username and password?
• Are you sure that you have typed the correct hostname?
• Are you sure that the database server is running?
If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
As for database-host I’ve tried 127.0.0.1:3306, localhost and a lot of variations hereof.
The MySQL and WordPress is on the same physical machine, so as far as all the sites I’ve googled tell me, “localhost” should be enough.
What am I missing here ? Any help is appreciated and if any info or tests are needed let me know. :o) Thanks a lot for reading.
The page I need help with: [log in to see the link]
- The topic ‘First Time Installing WordPress on Mac’ is closed to new replies.
Macintosh, Apache, MySQL, PHP is an application that enables you to install WordPress on your Mac.As its moniker indicates, the program creates a local MySQL database and a PHP server on your Mac – both of which are essential for installing WordPress locally. MAMP stands for M acintosh, A pache, M ySQL, and P HP. MAMP is an application you can install on your Mac which allows you to have access to a local PHP server and MySQL server. Essentially, MAMP.
If you want to install WordPress on Mac OS X, you are always advocated using a local server environment setup tool, such as MAMP or XAMPP. In another guide, we have introduced the free web server package MAMP for Mac with steps to install WordPress on Mac OS X with MAMP. In this tutorial, we will review another free local development environment tool for Mac, XAMPP for Mac, and we will use this app to install WordPress on Mac so you can start developing websites locally, play or learn WordPress with a local WordPress installation without paying for a hosting account. You can build a WordPress site or blog locally on your computer, and transfer it to a real server when you are ready. It is a safe way to test WordPress before publishing online. If you are on Windows, do not forget to check out this guide: how to install WordPress on Windows PC?
How to Install WordPress on Mac?
To install WordPress on Mac with XAMPP is not difficult, there are several steps but just a couple tricky ones. Basically you need to download XAMPP for Mac, then install this software, after that go to download WordPress and install WordPress on Mac. Now let’s dive into the details, specifically by looking at some tricky steps.
Install XAMPP for Mac
Go to download the latest version of XAMPP for Mac from its official site here . At the time of writing, its latest version is 7.3.2. They are compatible with Mac OS X 10.6 or later. The main difference is the script or component versions, notably the PHP versions. However this does not affect our local WordPress installation. As everything with software, we recommend the more recent versions.
It’s a DMG file you will download. Double-click the file you just downloaded. Then install XAMPP on your Mac, drag the XAMPP folder to the Application folder to install it.
Launch XAMPP from the Launchpad on your Mac. Click the Start button in the General tab of the stack manager. Wait for the status icon to turn green.
Ensure that all services are running in the Services tab of the stack manager (or start them as needed). If you can’t start Apache on Mac, try to disable Web sharing from System Preferences… >> Internet & Wireless >> Sharing.
What is the best free drawing software for mac. A free open-source draw app for mac, Krita is made by artists for artists. It is ideal for use for artists of all skill levels. It has all the features and tools needed to create stunning concept art, illustrations, visual.
You can stop, start, restart or check the status of individual services from the Services tab of the stack manager any time you want.
Create WordPress Database in XAMPP
As we have mentioned above, local WordPress requires both PHP and MySQL. Now we need to set up a database for WordPress with XAMPP for Mac. XAMPP offers phpMyAdmin for us to manage databases. We can create MySQL database for our local WordPress installation on Mac with it. Before that, we need to enable localhost port forwarding in the Network tab.
Visit http://localhost:8080/ in Safari browser, click phpMyAdmin or directly access http://localhost:8080/phpmyadmin/ to open the web database management tool to create a database for your local WordPress site on Mac.
To create a MySQL database with phpMyAdmin on Mac, click Databases, choose & input the database name and click Create button, the MySQL database will be created and you can set up your local WordPress on Mac with it in following steps.
Now you have set up everything you need to get started developing and testing your local WordPress on Mac. Continue installing WordPress in just another couple of steps.
Download WordPress installer
Switch to the Volumes tab of the XAMPP stack manager on Mac. Click Mount button to mount the /opt/lampp directory. Then click the Explore button to open the XAMPP file manager in Finder.
Download WordPress from https://wordpress.org/download/ to the ‘htdocs’ sub-folder under the above XAMPP folder. Unzip the WordPress installer, you should get a ‘wordpress’ folder.
Create WordPress database connection
Wordpress For Macbook
From the local WordPress folder, you should see a wp-config-sample.php file, duplicate this file first, then rename this file to wp-config.php and edit the connection to WordPress database from there. Remember that we have already created a MySQL database with phpMyAdmin above? Now we need to set up a connection between the WordPress files and its database, or we can say to link the Apache server and MySQL server.
Open this configuration file with a text edit, such as the TextEdit, on Mac, you will find a section of this php file like below image:
To create database connection for your local WordPress on Mac, you need to replace “database_name_here” with the database name which we have just created using phyMyAdmin, replace “username_here” with “root” and leave “password_here” blank.
Instead of using the default database user, you can also optionally, manually create a new user and add to database in phpMyAdmin. See this guide to create database and add user to database in phpMyAdmin. When you run into the database connection not established trouble, this could be the fix.
Complete WordPress installing from browser
Wordpress Free Download For Windows 10
Run Safari or any other browser you have on Mac, open this URL http://localhost:8080/wordpress/ to access your local WordPress. You will pull up the classic WordPress setup wizard. Fill up the basic information it requires, click Install WordPress button, your local WordPress on Mac will be created.
Another great alternative to XAMPP is MAMP which can also help you create WordPress sites on Mac OS X. Check out this guide: How to Install WordPress on Mac with MAMP?
Migrate Local WordPress to Web Hosting Server
If you have finished testing and experimenting on the WordPress theme, layout, plugins and widgets on a local WordPress blog on Mac, you may want to move it from local machine to a live WordPress hosting server. Here is some very good WordPress hosting service for your information. To migrate a local WordPress, you have to do it all by yourself, your web host may not be able to help as all the files, database and configurations are on your local machine. Check out this guide and see how to transfer WordPress to cPanel hosting.
Wordpress For Mac Download
Update Feb 2019: this article was originally published in Jul 2014 and has since been updated. we update instructions and screenshots above to reflect the changes in the XAMPP for Mac Version 7.3.2 on Mac 10.14 (Mac OS Mojave).