How do I reset Apache to default settings?

How do I reset Apache to default settings?

Step 1. Restore your Apache configuration file

  1. Open your Terminal application found in Utilities.
  2. Navigate to your apache directory cd /etc/apache2.
  3. Move the new config file to keep it as a backup sudo mv httpd.conf “httpd.conf~new”
  4. Move the original config file back.

How do I uninstall Apache on Mac?

3 Answers. Enter administrator password. So I did sudo nano /etc/apache2/httpd. conf then inputted my password and added the line ServerName localhost and saved it and then typed sudo apachectl -k stop(it didnt ask me for a password) then I did sudo launchctl unload -w /System/Library/LaunchDaemons/org.

What is httpd conf file in Apache?

The httpd. conf file is the main configuration file for the Apache web server. It’s highly recommended to run Apache in standalone type for better performance and speed. ServerRoot “/etc/httpd” The option ServerRoot specifies the directory in which the configuration files of the Apache server lives.

How do I reset httpd conf?

Delete the original and run sudo apt-get reinstall httpd . Go back and see if it created a new . conf , if so then it should be fixed….Command used:

  1. vi /etc/httpd/conf/httpd. conf.
  2. Updated ServerName to localhost.
  3. service httpd restart.
  4. chkconfig httpd on.
  5. service httpd restart.

How to restore your Mac’s Apache settings after upgrading?

1. Open your Terminal application found in Utilities 2. Navigate to your apache directory 3. Move the new config file to keep it as a backup 4. Move the original config file back sudo mv “httpd.conf~previous” httpd.conf Step 2. Restore your Virtual Host settings 1. Navigate to your apache extra directory 2. Move the new file. 3.

How do I revert to an earlier version of macOS?

Finally, you’re ready to revert to an earlier version of macOS: Make sure your USB drive is attached to your Mac. Power down your Mac, and then restart it while holding down the ‘Option’ key. When you see the ‘Startup Manager,’ select your USB drive and then click ‘Install macOS.’ macOS will now be installed from your USB drive.

How to reinstall Apache httpd on a Mac?

Alternatively, try this to reinstall httpd on macOS using homebrew: You must log in to answer this question. Not the answer you’re looking for? Browse other questions tagged macos apache . By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy .

Why is my Mac showing default Apache settings?

Mac High Sierra (as of this post). After upgrading the macOS and navigating to the directory of my localhost website, this is what I see. Instead of showing the webpage it is supposed to (as per the settings of my virtual host prior to the upgrade), it is displaying the default apache directory.