Ubuntu切记 源码安装lamp后 不用使用 APT-GET 安装相关模块

现在才发现 不算迟吧 。。。

近日使用源码安装apache 因为想测试安全权限分离的安全模块
所以就 apt-get install apache2-mpm-itk 谁知道 它一连带apache也下载回来了
下面是一个卸载后,安装模块的例子。
卸载 apache2
root@xiaobaiubuntu:~# apt-get autoremove --purge apache2.2-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
 ttf-dejavu-core ttf-dejavu-extra libfontconfig1 fontconfig-config libt1-5
 libxpm4 libgd2-xpm ttf-dejavu libmysqlclient16 defoma
The following packages will be REMOVED:
 apache2-mpm-prefork* apache2.2-common* defoma* fontconfig-config*
 libapache2-mod-php5* libfontconfig1* libgd2-xpm* libmysqlclient16* libt1-5*
 libxpm4* php5-gd* php5-mysql* ttf-dejavu* ttf-dejavu-core* ttf-dejavu-extra*
0 upgraded, 0 newly installed, 15 to remove and 290 not upgraded.
After this operation, 25.3MB disk space will be freed.
Do you want to continue [Y/n]? Y
没有安装apache的情况下直接安装 php5-mysql模块.
root@xiaobaiubuntu:~# apt-get install php5-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  apache2-mpm-prefork apache2.2-bin apache2.2-common libapache2-mod-php5
看apache被下载回来了。
 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
 libmysqlclient16 libsqlite3-0 libuuid1 php5
Suggested packages:
 apache2-doc apache2-suexec apache2-suexec-custom php-pear
The following NEW packages will be installed:
 apache2-mpm-prefork apache2.2-bin apache2.2-common libapache2-mod-php5
 libaprutil1-dbd-sqlite3 libaprutil1-ldap libmysqlclient16 php5 php5-mysql
The following packages will be upgraded:
 libapr1 libaprutil1 libsqlite3-0 libuuid1
4 upgraded, 9 newly installed, 0 to remove and 286 not upgraded.
Need to get 2210kB/6686kB of archives.
After this operation, 15.9MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
 
所以源码安装lamp后 不用使用 APT-GET 安装相关模块 不要混合使用 因为源码安装在APT-GET看来就是还没安装一样 所以源码安装就一直坚持源码装 apt-get就一直apt-get好了。

你可能感兴趣的:(职场,lamp,apt-get,休闲,源码安装)