MAMP 2 - Apache. Cannot use folders on desktop - apache

I updated my MAMP to version 2 and ran into a couple of problems. I've always had my projects in a folder /Desktop/Projects and pointed my localhost there. No problem whatsoever, I could see my filelistings etc.
However, after updating, I now get a '403 Forbidden' error, stating that I do not have permission to access '/' on this server.
I'm not sure what I did before to make this work, and I suspect this has something to do with Apache's and/or MAMP's settings? Could someone perhaps give me some pointers? Thanks.
PS: Not sure if this is the right Stackexchange site, but Webmasters didn't have a MAMP tag, so I figured I'd post it here. Thanks a lot.

Guessing you didn't set the Disk Location correctly...
In MAMP, click the HOSTS tab, there you'll see Disk Location.
You can choose the directory here, and click Permissions to make sure things are set correctly.
The path to your web-root should be something like /Users/cabaret/Desktop/Projects

Related

xampp apache server error 403 access forbidden on windows10

I've installed xampp in two different pc and in both of them it gives me the same error running windows10 (both with it). Apache server runs correctly, the ports are dedicated to httpd as it's supposed but when I try to access the folder of my website project to test the html files, google chrome, firefox and explorer show me a message saying: "Error 403 - access forbidden because you don't have the right permissions". I've tried everything that is in the other similar questions here and already gave permisions to all users in my folders, even to the whole drive c:. I also modified the txt files inside the folder /apache/conf/ and didn't work. I've seen that in some questions regarding the same matter, the file httpd.conf is a little bit different with parts that I can't see in mine. Thank you so much.
Finally, I solved the problem learning some more. I post it here in case someone is starting with it like me. The point is that when you install xampp, the program has a default folder where it let's you put your projects, it's called "htdocs". So that you can work only with project folders that you create inside this "htdocs" folder. If you try to create a new folder on c:/ for example, the program will not let you access beacuase of security (everybody could access all the folders on your computer, entering your server). I hope this to be of some help for someone else. Thank you, and sorry for the newbie question.

When I change siteurl in wp_options, my local website STILL WORKS. Why?

I'm trying to move a site from Bitnami "localhost" on my computer to a live site online. It's proving very difficult, so I'm trying to understand how this all works.
A very simple question -- the answer to this might offer me some insight:
I've opened the "bitnami_wordpress" database on my computer phpMyAdmin.
I've gone into "wp_options" and changed the siteurl to something other than what it read originally.
It doesn't matter what I've changed it to -- my website on Bitnami localhost should no longer work, right?
Yet the website still works. Why??
Try changing home url in wp_options
If that still doesn't solve the problem, you can find how to migrate wordpress in
http://codex.wordpress.org/Moving_WordPress
I believe the answer to the original question is that the original URL has been cached in the browser. I just ran into the opposite issue: I was still getting a redirect from http://localhost:81/ to http://localhost/ after changing siteurl in SQL table wp_options. Clearing the cache in my browser fixed the issue.

HTTP sources with h5ai appear empty in XBMC

I'm having some trouble adding a custom source to my XBMC set up. I've got an Apache2 server up and running that I use to stream movies to my computer and would like to include it as a source in XBMC. I'm no web server expert, but I managed to get h5ai style indexing on my server, which I'd like to keep. The problem is that when h5ai is enabled, XBMC can't locate any of the files. With h5ai disabled I have no issue browsing through my files.
The obvious solution is to keep h5ai off, but since I use my server outside of XBMC, I'd like to find a way to keep it on. I'm very new when it comes to web servers, so it's very possible I'm just doing something wrong. I merely followed the instructions of placing the _h5ai folder in my path and editing .htaccess. If anyone could shed some light on the issue (solution or simply an explanation) I would greatly appreciate it.
Additional info: I'm running XBMC 12.0. My server is a rented seedbox, so I have no root privileges.
Easiest solution is making a subdirectory specifically for XBMC and adding a .htaccess file that keeps h5ai indexing out of it:
DirectoryIndex index.html
Then have the HTTP source include the full path to said subdirectory.
I had the same issue and fixed it by removing "IndexOptions IconsAreLinks" from .htaccess

apache/php configuration troubles

I think I might have touched something wrong in my server configuration (tinkered with a LOT of things to get some weird software running) and now phpMyAdmin is acting up.
First it gave me that "Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error." (chrome specific), then I set zlib.output_compression = Off in php.ini (rebooted apache) and how the css file is not working.
I know phpmyadmin is just the symptom here, if anyone has a clue about what is going on, I'd be eternally grateful.
If you need any configuration file simply ask and I'll post/pastebin it (I'm on a FreeBSD server btw.)
Turns out mod_suphp was creating conflicts preventing any setting of Content-types via header(); I deactivated it in httpd.conf and now everything works perfectly.

Updating Files on Apache

I'm having trouble with my Apache Web Server. I have a folder (htdocs\images) where I have a number of images already in place. I can browse them and see them on my web server (and access them via HTML). I added a new image in there today, and went to browse to it, and it can't be found. I double and triple checked the path and everything. I even restarted Apache and that didn't seem to help.
I'm really confused as to what's going on here. Anybody have any suggestions?
Thank you.
Edit I just turned on the ability for the images directory to be listed, browsed to it (http://127.0.0.1/images/) and I was able to see all the previous images that were in the folder, but not the new one.
Turn directory indexes on for htdocs\images, remove (or move out of the way) any index.* files, and point your browser at http://yoursite/images/
That should give you a full listing of files in that directory. If the file you're looking for isn't there, then Apache is looking at a different directory than you think it is. You'll have to search your httpd.conf for clues -- DocumentRoot, Alias, AliasMatch, Redirect, RedirectMatch, RewriteRule -- there are probably dozens of apache directives that could be causing the web server to get its documents from somewhere other than where you think it's looking.
make sure the caSE and spelling are 100% correct.
There is not magic in programming (some may disagree:), so look for silly errors. Wrong server? Case of your letters? Wrong extension?
There's a chance it could be due to the cookies stored on your device. I would delete all cookies to the website you're working on before you refresh again