![]() Rename the folder to mywebsite mv wordpress mywebsite Now that we have PHP, MySQL and a database, we are now ready to install WordPress How to install WordPress on Macįirst we have to download WordPress to your website folder cdĮxtract the downloaded file tar -xf MySQL server user is root and no password.Ĭreate a database for WordPress website. On your terminal, execute this command to install MySQL brew install mysql To stop the php service, go back to the Terminal and press control + x How to install MySQL on Mac Open Safari and type this url: 127.0.0.1:8080/phpinfo.php While you are on the directory Documents/website, type this command on Terminal to run PHP service php -S 127.0.0.1:8080 But if your mac don’t have php, open the Terminal and paste this command: brew install phpĬopy and paste this code on the Terminal ![]() As of this date, PHP is included in macOS. Once homebrew is installed, you can now install PHP. Please check my post about how to install homebrew. To install php and mysql, you need homebrew to install this packages on Mac. MySQL is where data is being stored and retrieve by PHP when WordPress runs SQL queries.PHP make WordPress possible to interact with the database and fetch data.If you are ready, time now to…”.Ĭlick to “Run the Install” to continue onto WordPress’ famous 5-minute install.You can install WordPress on Mac locally without XAMPP or Mamp. WordPress can now communicate with your database. Once this is entered and you continue, you’ll receive a message that says “All right, sparky! You’ve made it through this part of the installation. Enter the following information for the database:ĭatabase Name: db_mysite (the database name from Step 3 above) I need this before we can get started.” THAT’S OK! Just click “Create a configuration file” and then click “Let’s Go” from the next screen. You may get a screen that says “There doesn’t seem to be a wp-config.php file. In your web browser, go to localhost:8888/mysite. Drag this folder into the MAMP document root from Step 2 above – /Users/USERNAME/Sites/ (or the default location for this is /Applications/MAMP/htdocs/ if you used the default location). ![]() Unzip the file you just downloaded, which will create the folder named “wordpress” (you can rename this to whatever you want – I use the name of my current site – let’s call it “mysite”). (If this is not your first database, click on the word “NEW” in the left column to bring up the “create new database” line.) Step 5: Downloading WordPressĭownload and install the latest version of WordPress. In the center, enter in a database name such as “db_mysite”, leave the default of “collation” and press “create”. just click on “Open start page” in the MAMP window.) Step 4: Creating The Databaseįrom the MAMP start page is open in your browser, click the phpMyAdmin link from the MySQL section. Your MAMP servers have now been started! Once the MAMP servers start, the MAMP start page should open in your default web browser. To start the MAMP Apache and MySQL servers, simply click “Start Servers” from the MAMP start-up screen. Once you’re done editing all of the settings, hit OK to save them. An example of a document root is /Users/USERNAME/Sites/ (the default location for this is /Applications/MAMP/htdocs/). This is where all of your files are going to be for your local web server. On the APACHE tab, set a document root.On the PHP tab, verify that version 5 is selected.Your local URL will then be localhost:8888. For ease of use, leave the default ports of 8888 for Apache, and 8889 for MySQL. Click the PREFERENCES button and then “Ports” (along the top).While you’re editing settings, MAMP might prompt you for an administrator password. Now that you’ve got MAMP installed on your computer, launch MAMP application. ![]() Install it just as you would any other Mac Application. Visit the MAMP website to download the FREE version of MAMP. Step 1: Download and Install MAMP on your Mac (Windows version still in development). MAMP is an application you can install on your Mac that gives you all of the tools needed to run WordPress on your local machine, making it much easier for development and testing websites before making them live. MAMP stands for Macintosh, Apache, MySQL, and PHP. When you want to design or develop a dynamic WordPress website offline where no one but you can see it, then the FREE version of MAMP is the way to go.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |