![]() ![]() Here is the website I use since I forget command-line in order to edit the /etc/hosts file and the steps I presented to you in more detail: Once you make these changes to the nf file, make sure to reboot your MAMP, as the Apache server needs to take these changes into effect. a database connection wordpress localhost mamperror establishing a database. The site administrator should also check. #Mamp error establishing a database connection code#You then add virtual hosts to the bottom of the file, with code like this, modifying the name examplesite.local to, again, whatever you want the URL to display in the browser: NameVirtualHost *ĭocumentRoot "/Applications/MAMP/htdocs/examplesitename" WordPress Database Error Duplicate Entry for key PRIMARY for Query INSERT. It is possible that the database is overloaded or otherwise not running properly. You save those changes to the /etc/hosts file, then going to the nf in your Apache folder (the location of the file being in Applications/MAMP/conf/apache/nf). ![]() You can name examplesite.local however you want, this is the URL which will display your website in the browser. ![]() # localhost is used to configure the loopback interface You type your new virtual host below that line, the /etc/hosts file looking similar to this: # You shouldn't modify anything beyond the fe80::1%lo0 localhost, as it would mess up the way the hosting is read on your computer. I have multiple websites running on my MAMP machine, and have found it easiest to use the default Apache and MAMP settings.Īnd you don't want to specify MAMP porting in this way through the config-file, instead modifying your /etc/hosts file on your main Macintosh computer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |