Home > Not Working > Apache Not Working On Mac

Apache Not Working On Mac

Contents

OSX put that index.html file in there (and images and iwebtest) to let you know apache is working. I'm running it on a server mac mini. Syntax errors or general config file errors will kill apache at startup (usually without reporting to error logs or terminal). I'm only hopeful there won't be many stupid ones like this. Source

Reply David Bagdasarian says: March 7, 2013 at 4:07 pm Hi Guys, For everyone that's having trouble with accessing localhost/~user, make sure that you have a folder called Sites under your You can do this in your terminal, or in Finder. What I found was pretty amazing. You now have Apache and PHP running successfully. http://apple.stackexchange.com/questions/131671/problem-accessing-localhost-on-mac-os-x-mavericks-it-was-working-fine-until-i

Mac Localhost Connection Refused

I normally do everything in this webpage with each update and now I get a "Forbidden: You don't have permission to access / on this server". We will install the sphp script into brew's standard /usr/local/bin: $ curl -L https://gist.github.com/w00fz/142b6b19750ea6979137b963df959d11/raw > /usr/local/bin/sphp $ chmod +x /usr/local/bin/sphp Check Your Path Homebrew should have added its preferred /usr/local/bin and Join them; it only takes a minute: Sign up XAMPP Apache Webserver localhost not working on MAC OS up vote 17 down vote favorite 14 I install XAMPP server on MAC

There weren't. You might even have fun while doing it! By default, the document root is configured as /Library/WebServer/Documents. El Capitan Localhost Not Working Apache PHP Setup - Part 2 Although we configured Apache to use PHP earlier, we now need to change this again to point the PHP module to a location used by

Boom, browser point to localhost/~USERNAME and it will load sudo apachectl restart Boom, Apache running at the user "Sites" folder Reply Brian Franklin says: August 16, 2016 at 1:02 pm Yes! Mac Localhost Not Working Start up Apache $ sudo /Applications/XAMPP/xamppfiles/xampp startapache XAMPP: Starting Apache...fail. Join lists by observing x-value Dynamically Select Template based on template id field passed in DE Import Private Unicode Symbol Polyglot Anagrams Cops' Thread Animated plot required to leave behind trace http://stackoverflow.com/questions/4582504/xampp-apache-webserver-localhost-not-working-on-mac-os I searched my entire hard drive, I was unable to find any such text.

You can install as many or as few PHP versions as you like, it's nice to have options right? Localhost Not Working Mac El Capitan How do you simplify a log with an exponent in the base? Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the I think it should look something like this:
Options Indexes MultiViews
AllowOverride None
Require all granted
Then restart Apache again.

Mac Localhost Not Working

This looks like PHP so... 3.) Make sure the following line is enabled in /etc/apache2/httpd.conf (default it is) LoadModule php5_module libexec/apache2/libphp5.so 4.) Make sure that the users space area is enabled https://discussions.apple.com/thread/2440505?start=0&tstart=0 I stopped apache did the followingGo ->Go to foldertyped /etc/apache2on terminal sudo -sthencp /private/etc/apache2/httpd.conf~orig /private/etc/apache2/httpd.confat last restarted apache and it worked fine. Mac Localhost Connection Refused Alerts Alert Preferences Show All... Mac Localhost Refused To Connect Then, I spent some time trying to install a library, in which I somehow messed up the installation of XAMPP.

You must reinstall each PHP version with reinstall command rather than install if you have previously installed PHP through Brew. this contact form Not the answer you're looking for? Continue the conversation on Twitter or in a comment. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Telnet: Connect To Address 127.0.0.1: Connection Refused Mac

The error log indicates if there are errors within Apache.You're in the Mac OS X Server forums, and Apache is managed differently on Mac OS X Server than on Mac OS more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science cd /etc/apache2/ cp httpd.conf httpd.conf.bak Now edit the Apache configuration. http://emhsoft.net/not-working/apache-www-not-working.php About a third of the way down the httpd.conf file there are two settings to set the User and Group Apache will run under.

Start a coup online without the government intervening Isn't AES-NI useless because now the key length need to be longer? Mac Telnet Localhost Connection Refused Useful Searches Recent Posts Mac Support Forums Mac Help Forums Mac OS X System & Mac Software Apache won't start up Discussion in 'Mac OS X System & Mac Software' started Reply Sam says: October 16, 2012 at 9:56 pm I can get the it works!

man pfctl) in Maveric and ipfw(man ipfw) for older version of Mac OS if you need more than port 80 share|improve this answer answered Oct 20 '14 at 13:49 latvian 99

It's okay to include a link, but please summarize or excerpt it in the answer. share|improve this answer answered Oct 20 '09 at 2:47 deceze 2981314 That doesn't make much sense, since localhost=127.0.0.1. –Tarnay Kálmán Oct 20 '09 at 2:57 does /etc/hosts If you have that working, we can move on! Invalid Command 'lockfile' Reply Jane says: May 29, 2016 at 7:23 pm This is unclear what you did to fix it???

Log in or Sign up Home Forums Search Forums Recent Posts Media Search Media New Media Members Notable Members Current Visitors Recent Activity 0 0 Guest Your Profile Page Contact Details Thought PHP engine was messed up. Le plus ca change… Reply James Burgess says: September 13, 2014 at 9:36 pm I tried this on 10.8.5 and it didn't work. http://emhsoft.net/not-working/apache-ssi-not-working.php or how can I install apache again?Thankstiget07 Mac OS X (10.5.5) Posted on May 25, 2010 4:40 AM Reply I have this question too Q: apache on my mac is not

This is strongly recommended because some really strange path issues can arise with existing terminals (trust me, I have seen it!). Dynamically Select Template based on template id field passed in DE Wrong way on a bike lane? This is a simple process, but you need to launch your Terminal (/Applications/Utilities/Terminal) application and then enter: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Just follow the terminal prompts and enter your password Complete fresh installation I uninstalled XAMPP completely, removed the directory, and reinstalled XAMPP from the installation package.

Please type your message and try again. Reply Rana says: March 24, 2014 at 11:48 am I got 403 Forbidden, You don't have permission to access this server. Add in the username “root” (maybe already populated, add in the password that you set up earlier for the MySQL root user set up, click on save and you are returned to the I have tried to restart apache and also to stop and then start apache using sudo apachectl stop sudo apachectl start sudo apachectl restart Nothing works.

http://www.mamp.info/en/index.html Reply Jason B says: September 3, 2012 at 2:48 pm Here is a simple preference panel that can toggle the web server on and off http://clickontyler.com/blog/2012/02/web-sharing-mountain-lion/ More fool proof for In this new Sites folder create a simple index.html and put some dummy content in it like:

My User Web Root

. $ mkdir ~/Sites $ echo "

My User Web Root

" > Done. I found the solution here: disable OSX's built-in Apache server.

Reply Eric M says: March 14, 2015 at 9:20 am The "It works!" text is located in /Library/WebServer/Documents for me (running Yosemite). This hint is mostly about restoring the same functionality in Mountain Lion that was taken away, including configuration of the webserver the same way as before.