I'd like to start my apache server in my Mac OSX Mavericks. Here is what I did:
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
By default, Apache is enabled and installed in /etc/apache2/ , inside httpd.
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.
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.
Easy way to start apanche server in mavrick
execute this command
sudo apachectl start
sudo apachectl stop
sudo apachectl restart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With