How can I recover the apachectl on my OSX?
I deleted it, somehow, and now the command apachectl doesn't exist anymore.
|
How can I recover the apachectl on my OSX? I deleted it, somehow, and now the command apachectl doesn't exist anymore. |
||||
| show 1 more comment |
|
On 10.8 apachectl is a ~50 SLOC shell script. I uploaded the one from my installation here. For example |
|||
|
|
|
If you build Apache httpd from the source code, you can get the |
|||||
|
|||||
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything will be deleted. See Good Subjective, Bad Subjective for more information. |
|||||
/usr/sbinisn't in your PATH usually. What doesls -l /usr/sbin/apachectlreturn? – patrix♦ Jan 31 at 6:44ls: /usr/sbin/apachectl: No such file or directory– Daniel Ribeiro Jan 31 at 10:32