PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, July 2, 2022

[FIXED] How to uninstall apache from the command line on Mac?

 July 02, 2022     apache, command-line, terminal, user-interface, xampp     No comments   

Issue

I followed these directions to install apache for a class on the following link on the command line aka terminal:

https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-macos-sierra/

but then my professor told me that we needed to install XAMPP 5.6.12 which will have packages including:

Apache 2.4.16
MySQL 5.6.26
PHP 5.6.12
phpMyAdmin 4.4.14 

So now I want to uninstall the current apache(Apache/2.4.25) on my mac so that I can install XAMMP which will already have apache and the other packages that I need for my gui class.


Solution

Check the output of below command and whether the apache is running under _www user

sudo lsof -i:80

Stop the built-in Apache server in Mac OS X is by using this command:

sudo apachectl -k stop

Enter administrator password.

Next run this launchctl unload command

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Check with the first command again whether the built-in apache server is completely gone Stopped and disavowed



Answered By - Rizwan
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing