【装机php源码】【对联广告源码】【ce源码 delphi】安装源码包apache报错_源码包安装的apache
1.apache2çApache çå®è£
apache2çApache çå®è£
Apache çå®è£ æ å¤ä¹ä¸¤ç§æ¹å¼: æºä»£ç å®è£ åDEBå å®è£ ãè¿ä¸¤ç§å®è£ ç±»ååæç¹è²ï¼DEBå å®è£ ä¸éè¦ç¼è¯ï¼èæºä»£ç å®è£ åéè¦å é ç½®ç¼è¯åå®è£ ï¼DEBå å®è£ å¨ä¸ä¸ªåºå®çä½ç½®ä¸ï¼éæ©åºå®ç模åï¼èæºä»£ç å®è£ åå¯ä»¥è®©ä½ éæ©å®è£ è·¯å¾ï¼éæ©ä½ æ³è¦ç模åãæ¬æ主è¦ä»ç»DEBå®è£ æ¹å¼ãç³»ç»:GNU/Linux Debian/etch
Apacheå½åçæ¬: 2.0.-4
4.1 1. å®è£ :
使ç¨ä»¥ä¸å½ä»¤å®è£ ï¼
tony@tonybox:~$sudo aptitude update
tony@tonybox:~$sudo aptitude install apache2 apache2-utils
å ¶ä¸apache2-utilsæä¾äºæ们å¨é 置维æ¤è¿ç¨ä¸é常æç¨çä¸äºå·¥å ·
å®è£ å®æåï¼å¯ä»¥ä½¿ç¨ä¸é¢çå½ä»¤å¯å¨Apache æå¡:
tony@tonybox:~$ sudo /etc/init.d/apache2 start
åæ¢Apacheæå¡åæ¯:
tony@tonybox:~$ sudo /etc/init.d/apache2 stop
ä¹å¯ä»¥ç´æ¥ç¨ kill å½ä»¤å¼ºå¶ææ»apache2è¿ç¨
tony@tonybox:~$ sudo killall apache2
å¦æéè¦, å¯ä»¥éè¿rcconfæ¥æ§å¶æ¯å¦å¨ç³»ç»å¯å¨æ¯å è½½Apache æå¡
å¯å¨å®æåæå¼æµè§å¨, 使ç¨URL mon å æä¾ãå½ä»¤åå¼ä¹é常ç®åï¼ a2enmod [module] æ a2dismod [module]
sites-available
ç®å½ä¸ä¸ºé 置好çç«ç¹çé ç½®æ件, sites-enabled ç®å½ä¸åæ¯æåè¿äºé ç½®æ件ç符å·è¿æ¥, ç³»ç»éè¿è¿äºç¬¦å·è¿æ¥æ¥èµ·ç¨ç«ç¹ sites-enabledç®å½ä¸ç符å·è¿æ¥éæä¸ä¸ªæ°ååç¼, å¦-default, è¿ä¸ªæ°åç¨äºå³å®å¯å¨é¡ºåº, æ°åè¶å°, å¯å¨ä¼å 级è¶é«. ç³»ç»æä¾äºä¸¤ä¸ªå½ä»¤ a2ensite å a2dissite ç¨äºç»´æ¤è¿äºç¬¦å·è¿æ¥ãè¿ä¸¤ä¸ªå½ä»¤ç± apache2-common å æä¾.
/var/www
é»è®¤æ åµä¸å°è¦åå¸çç½é¡µæ件åºè¯¥ç½®äº/var/wwwç®å½ä¸,è¿ä¸é»è®¤å¼å¯ä»¥åè¿ä¸»é ç½®æ件ä¸çDocumnetRoot é项修æ¹.