Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting built in Apache server in Mac OS X 10.9 (Mavericks)

I'd like to start my apache server in my Mac OSX Mavericks. Here is what I did:

  1. launch the terminal application
  2. sudo apachectl start
  3. The server started without problem. But I got the following problem when I tried to open the localhost in web browser:

You don't have permission to access / on this server.

Here is my /etc/apache2/httpd.conf: (I didn't change anything here)

DocumentRoot "/Library/WebServer/Documents"

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all </Directory>

<Directory "/Library/WebServer/Documents">

    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all

</Directory>

Can anybody advise what could be the cause ? Thanks

like image 984
Bagusflyer Avatar asked Nov 17 '13 03:11

Bagusflyer


People also ask

Is Apache installed by default on Mac?

By default, Apache is enabled and installed in /etc/apache2/ , inside httpd.

Why Apache server is not starting in xampp on Mac?

If port 80 is being used, it is likely that another copy of Apache is already running on your computer. For most macOS users, this is the most common issue stopping XAMPP's Apache from running, because macOS comes pre-installed with Apache. Also, to execute this command, you will have to know your root password.

How do I know if Apache is running on my Mac?

Enable Apache on Mac OS XVerify if apache is running by accessing http://localhost: If you get “This site can't be reached”, you need to start apache, just type, sudo apachectl start and press enter: Verify localhost again: if you see “It works!” apache is running.


1 Answers

Easy way to start apanche server in mavrick

execute this command

sudo apachectl start

sudo apachectl stop

sudo apachectl restart
like image 136
SachinVsSachin Avatar answered Sep 22 '22 18:09

SachinVsSachin