开发者

Accidentally deleted a2ensite [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I accidentally deleted /usr/sbin/a2ensite. Any way I can restore it? Tried sudo apt-get install a2ensite but I got the error message:

Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package a2开发者_StackOverflow社区ensite

Tried sudo apt-get install apache2 and sudo aptitude update but no luck there either. Any ideas? Using ubuntu.

Cheers, agsb


Try: sudo apt-get install --reinstall apache2 apache2-common


a2ensite as a script is contained in the apache2.2-common package. You can download it here and extract the file from the contained data archive yourself.

Edit: The Ubuntu packages can be found here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜