It probably won't hurt anything to leave it there until you get around to actually setting up name-based virtual hosts, but removing it shouldn't make a difference to how Apache is behaving, either. (Also, you probably don't need the NameVirtualHost line unless you're actually using name-based virtual hosting, which doesn't sound like it's the case right now. With that change in place, as well as the previously described change to the DocumentRoot, should reach the index page of your site. The "Host not found" error occurs because the TCP stack is unable to parse the entry, and therefore ignores it. One other note regarding your /etc/hosts file: you cannot specify a port number in that file, only an IP address. If that's the case, and given that it's always preferable for the development environment to be as close to identical with the production environment as possible, then the second option comes closer to producing that result, and is therefore better than the first.) (I say that's preferable because it seems likely the site, when in production, will have its own domain name, and its URLs won't need to contain /dkbtherapy/. The other option, and in my opinion the preferable one, would be simply to strip /dkbtherapy off your URL, and visit e.g. dkbtherapy URL to point where you want it to. One is to change the DocumentRoot value to /Applications/MAMP/htdocs/, which will cause the. Well, you've defined /Applications/MAMP/htdocs/dkbtherapy as the DocumentRoot for the virtual host, which means that that directory maps to the URL 127.0.0.1:8888/ - so when you visit 127.0.0.1:8888/dkbtherapy/index.html, Apache maps that to /Applications/MAMP/htdocs/dkbtherapy/dkbtherapy/index.html, which doesn't exist, thus the error you see in the log. So for some reason it thinks that dkbtherapy is the absolute root for the server it appears -how did I manage that? File does not exist: /Applications/MAMP/htdocs/dkbtherapy/dkbtherapy The requested URL /dkbtherapy/index.php was not found on this server.ĮDIT: after looking at my Windows box, where I've configured this and it's working, I noticed I missed a line of configuration -it appeared -so I added this to the one on the Mac too: NameVirtualHost *:8888ĮDIT RELATING TO when I look at the error log for Apache I see this error when I try and navigate to that path: NOTE: after making the changes doesn't work now either, I get a 404 returned with this message: What did I miss in the above configuration? Though I don't think I need to reboot my Mac. Now, I rebooted the Apache server after making the changes, but I haven't rebooted my Mac. Then I modified my hosts file and added this: 127.0.0.1:8888 l.īut when I type in l. into Safari I get: So that should setup the routing for it (I thought). In the /Applications/MAMP/conf/Apache folder I modified the nf file an added this VirtualHost configuration: ĭocumentRoot /Applications/MAMP/htdocs/dkbtherapy However, with the configuration I've done it doesn't work. In short, rather than using I want to use. Examples for the connection to SQLite are available in PHP.I need to setup some VirtualHost records for a MAMP server I have installed on my Mac. Several examples show how to connect to the databases (MySQL, SQLite) using PHP, Python, Perl and Ruby. Of course you can also enter suggestions for improvement or wishes there. Any update for 2019 I tried this and got the following warning (which sounds pretty bad): Detected macOS Mojave 10.14.There are serious issues with it, due to the original apache not loading foreign libraries anymore. If you have found a bug in the software, you can enter it there and we will fix it as soon as possible. There you will find numerous screencasts about MAMP.Ī click on this menu entry takes you to the bugbase. You can learn more about OPcache here.Ī click on this menu item opens the documentation for MAMP.Ī click on this menu item opens our channel on YouTube. OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. You can learn more about eAccelerator here. You can learn more about APC here.ĮAccelerator a free open-source PHP accelerator & optimizer. The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. PhpLiteAdmin is a web-based SQLite database administration tool written in PHP with support for SQLite3 and SQLite2. Your MAMP instance of phpMyAdmin can be accessed through a link in the WebStart page Additional MySQL users can be created using the User Accounts tab. PhpMyAdmin is a web-based database administration tool written in PHP. PhpInfo shows you information about PHP configuration. The default MAMP WebStart page provides links to access utilities such as phpMyAdmin, phpInfo, SQLite Manager, phpLiteAdmin and the MAMP website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |