![]() 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 |