![]() ![]() 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. Where is the problem? I have following instructions from a youtube tutorial and I can see it is perfectly possible to run two sites simultaneously on MAMP.The first step is to install MAMP PRO. So just a simple thing, changing the root directory for MAMP will make my site1 lose all its functionality. If I change root, and instead of MAMP i choose MAMP/site1, then I can access directly localhost:8888 and I will see my site1 with its full design and functionality. On the other hand if I click on site1, it takes me to my originally built website which now looks really bad(95% of design is missing, everything is messed up and I get 404 error). If I click site2, as expected, I have Wordpress menu and I can start new installation. Here I will get choice to enter site1 or site2. If I now want to access site1 or start new installation for site2, I go to my browser and write localhost:8888. I wanted to start second site so I added wordpress installation files to site2 folder. Site1 already has database and site itself is completely designed. Inside are two installations of Wordpress, site1 and site2. I have installed MAMP and have folder on my desktop called MAMP which is set as a root. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |