![]() If you are new to Mac, you can check out this video to learn to install the app on Mac system. So, once you have downloaded MAMP, install it like any other Mac software. Install WordPress on Mac: A Complete DIY Tutorial Sadly, they don’t let download just the free version so the total size of downloading MAMP would be close to 150 MB. Though, for our purpose a free version of MAMP is good enough to get started. MAMP is a software to create a personal Web server on your local system, and they offer a pro version too. Make sure to take advantage of Sticky Notes app in Mac to copy the details. Depending on the method you choose for uploading files and your security needs you may want to adjust the file permissions configuration.Along with this, you need to do few editing in Wp-config file and need to create a database via phpMyAdmin, which is very easy. Note: This tutorial only applies to hosting on a dedicated Mac. Visit the site in a web browser and complete the initial WordPress setup. Sudo chmod 600 /Sites/wordpresstest/wp-config.php sudo chown _www /Sites/wordpresstest/wp-config.php Reset the ownership and permissions with the following commands. ![]() Enter in the database name, user, and password and save the file. Lion will prompt to unlock the file before editing it. Located inside the wordpresstest folder is the wp-config.php config file, edit it using Text Edit. Within finder, open the hard drive and navigate to the Sites folder. Sudo chmod 660 /Sites/wordpresstest/wp-config.php Sudo mv wp-config-sample.php wp-config.php Rename the wordpress config file and edit it with the commands below. Click “Go” at the bottom of the screen to create the database user. Fill out the username, password, and select local under the host field. Once the database is created navigate to the privileges tab and click “Add a new User”. Use the phpMyAdmin tab to create a new database. The last step to the configuration is creating and setting a database. Once you are completed save the virtual host and MAMP PRO will prompt to restart Apache. Be sure to have your DNS record(s) for the hostname and aliases used pointing to your mini. cd /SitesĬreate the virtual host within MAMP PRO, under the hosts tab. The follow commands will uncompress WordPress, remove the original download file, rename the folder to ‘wordpresstest’, and update the ownership of the files and folders. Note: the last line for the ‘cp’ command may be different depending on where you saved your download and the version downloaded. Sudo cp ~/Downloads/wordpress-3.2.1.tar /Sites Start with creating the folder structure, downloading WordPress, and configuring the ownership.ĭownload WordPress by visiting this link in a web browser on your mini: sudo mkdir /Sites If this is will be a production site you will want to make sure that WordPress is always up to date as well as certain aspects of your theme, most notably the timthumb.php/thumb.php files. WordPress will have the ability to perform auto-upgrades, install plugins automatically, and use the bult in editors to make changes to theme and plugin files. In this example we are changing the ownership of the files to be owned by the web server. These next steps may vary depending on where you want to store your files. From your local computer you can put the IP address of your Mac mini into a web browser and the default MAMP PRO index page will load. Click the start button at the top of the MAMP PRO window and your web server is now live. To start the web server software, choose “Reset to Factory Settings” from the File menu and choose “Live”. Upon launching MAMP PRO for the first time, an initialization prompt, password prompt, registration form, and a second password prompt will appear. During the installation you will need to authenticate your account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |