I recently acquired MAMP PRO for my mac so that I could host WordPress sites that I am developing locally. My other local server solution called Desktop Server allows me to view a list of websites that I am developing when I visit localhost in the web browser.
However I have searched Google for an answer to this and would ideally like to have a similar setup with MAMP ie when I visit localhost:8888 I would like to see all the links to sites that I am developing and be able to click on them to access them.
At the moment my development sites are running in the sites folder in MAC OSX Mavericks. When I visit localhost:8888 I get the mac's personal web sharing page running which may be because the native apache server is running.
If you have any thoughts on this please let me know?
It is a bit late with my answer but have to turn off apache first running this
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
you have to remove index.php or any other index.html etc from your htdocs in Mamp
To allow a web server to produce a directory listing, whenever you point a directory without index file. Add following line in your .htaccess file of your local server
Options +Indexes
Related
This might be a silly question, but I'm new to web-dev, so here it is:
I recently installed MAMP on my windows system [yes, MAMP works on windows too] and it shows Apache and MySQL server to be active, but neither I have installed any of these servers, nor I can find them in "Services" of my system.
So I wanted to ask whether I'll need to explicitly install both of these servers or not.
Also, If there's no need of explicit installation, how does MAMP work ? like, giving access to both these servers without actually installing them ? [A brief explanation would be enough]
T.I.A.
They come with MAMP. You can access phpMyAdmin under the Tools menu in the page that automatically opens up when you start MAMP, for me it is http://localhost/MAMP/?language=English
I've been here before and even wrote an article on how I was able to connect Coldfusion 2018 with Mac OS X Mojave, but since the upgrade to Mac OS X 10.15 Catalina, I haven't been able to get Coldfusion to work correctly on virtual hosts (ie. http://local.mylocalsite.com).
Goal: install Apache connector for Coldfusion so that I can run my dev site from within the /Sites folder like I would any other site.
Problem: Apache is working and I can access websites from the /Sites folder using the virtual host (ie. local.mydevsite.com), but although Coldfusion is running (I can access the Coldfusion Administrator), my computer does not seem to recognize that Coldfusion is supposed to run. I don't know if this is Apache or Coldfusion's responsibility.
What I've tried: I've tried using the GUI connector, as well as trying to confirm the settings via command line. I have XAMPP installed, which I believe that DesktopServer (an application by ServerPress) is relying on, but that's probably not relevant; but what I'm getting at is that I believe XAMPP relies on Mac's default installation of Apache.
I've also tried to go into every file that is referenced in any instruction document to determine if there is anything out of place. Part of my confusion is that there are many instances of some of these files and I'm not sure which one is active. Here are some of the files I've looked into:
/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
/Applications/XAMPP/xamppfiles/apache2/conf/httpd.conf
/Applications/XAMPP/xamppfiles/apache2/conf/mod_jk.so
/private/etc/apache2/httpd.conf
/private/etc/apache2/mod_jk.conf
/private/etc/apache2/extra/httpd-vhosts.conf
From what I can tell, the main settings for Apache are stored in the /private/etc/apache2 folder, but I want the XAMPP version of https-vhosts.conf because that's where DesktopServer is pulling their virtual hosts from. Regardless, I don't think it matters which vhosts file is being used because Coldfusion won't run on any of the local sites from my /Sites folder that are loading correctly when I visit local.anylocaldevsite.com.
Thoughts? This is either a really dumb question because no one else is asking it, or there aren't many Mac users who also use Coldfusion. Would love assistance if anyone has a clue. Thanks!
Update: This isn't an exact answer, but the recommendation to try CommandBox was a win. I installed CommandBox and then ran the "ColdBox" application in the root of my project and the site opened up in my browser like a gem. Wonderful. Thank you! I can call that the "answer" if no one objects, but I know that it's more of a workaround than an exact fix.
I installed a Microsoft Navision Demo Server on my machine recently for testing/research purposes. When trying to work on one of my websites I noticed that when I browse to http://localhost/ ; this welcome page is being shown, does anyone know how to remove it? I have removed all Sites in IIS Manager but that hasn't helped. When I browse to 127.0.0.1 I get to see my own website that I am working on though.
Deleting the sites from IIS Manager actually did do the trick. It was a matter of clearing the cached localhost website from my browser.
I am trying to test my local Wordpress site in a VMware virtual machine running Windows, but links are broken! The site is loading, but not the CSS or the images. All the non-wordpress sites are running perfectly.
I assume this has something to do with the paths that Wordpress create, they are still 'localhost' even tho I am accessing my site in windows with the virtual host 'mysite.wp'.
I think you can just use Chrome Ctrl+Shift+I to show the source of the wordpress page, and just find the CSS and image in the source. And to analyse the it.
But I just guess, you may reset the permission of the wordpress folder. If you use Linux as the server, you must give the read permission to the folder. I think.
I have recently installed subversion and nginx server on my machine (macbook pro). I'm fairly new to subversion as a whole and have just built a single webpage through this version control system, and now I'm faced with the task of testing it in all of the relatively modern web browsers. My biggest concern, as far as browser compatibilty is concerned, is Internet Explorer which, in order to test, I need Windows. I have Windows 7 installed on my mac via Virtual Box, and herein lies my problem.
I have not committed the new page I've just created to the repository, by the request of the client. Because of this, as far as I know, I have no URL to use for testing in IE Tester, Firefox for Windows, etc. How can I test this 1 page site's browser compatibility with without having committed any changes to the repository?
I can test it easily on my machine using MacOS, by just typing in local.*.org and it shows up. Again, windows is my issue. This project is due this Thursday (5/24/12), so you're help is greatly appreciated.
1) Developing and testing your web page is different from managing your web page source. In other words, testing web pages != using SVN.
2) If you've not actually been able to use SVN yet - and if your client has no preferences - then please try TortoiseSVN:
http://scplugin.tigris.org
3) Please post back any specific questions you have about installing/using SVN.
If the site uses any scripting languages like PHP, and/or databases, you need to get those setup correctly first. If your website consists of just HTML/CSS/JS... then you can access the website via either of these methods:
Enable Web Sharing (System Preferences > Sharing > Web Sharing). Then type in the IP shown there into your browser in VirtualBox and it should load. (This is probably easier than trying to get nginx configured, though it might very well load if you just type in your machine's IP.)
In VirtualBox, select your VM (powered off), Settings > Shared Folders. Add your website's root directory. Launch the VM, then browse to it within the VM and open up your files there for testing.
My current environment is setup like this:
- Local dev machine with git & SVN
- Remote DB server
- Remote web server
- Web server mounts local dev machine's www folder as a volume and serves the PHP pages from there
- Load web browser in VMs or any other machines. Edit hosts file if need be for local routing.