特殊:Badtitle/NS100:ApacheMySQLPHP/AptPhp4Output:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:ApacheMySQLPHP/AptPhp4Output}} | {{Languages|UbuntuHelp:ApacheMySQLPHP/AptPhp4Output}} | ||
''In this page, '''apache''' refers to the apache version 1.3 package and '''apache2''' refers to apache version 2.0. | ''In this page, '''apache''' refers to the apache version 1.3 package and '''apache2''' refers to apache version 2.0. | ||
Apache2 is the recommended version, presently.'' | Apache2 is the recommended version, presently.'' | ||
==== PHP4 ==== | ==== PHP4 ==== | ||
<pre><nowiki> | <pre><nowiki> | ||
emma@ubuntu:~$ apt-cache show php4 | emma@ubuntu:~$ apt-cache show php4 | ||
第14行: | 第11行: | ||
... | ... | ||
</nowiki></pre> | </nowiki></pre> | ||
Php4 depends on either '''libapache2-mod-php4''' or '''libapche-mod-php4. | Php4 depends on either '''libapache2-mod-php4''' or '''libapche-mod-php4. | ||
==== PHP5 ==== | ==== PHP5 ==== | ||
<pre><nowiki> | <pre><nowiki> | ||
emma@ubuntu:~$ apt-cache show php5 | emma@ubuntu:~$ apt-cache show php5 | ||
第26行: | 第20行: | ||
... | ... | ||
</nowiki></pre> | </nowiki></pre> | ||
Php5 will only depend on libapache2-mod-php5. There is no libapache-mod-php5. | Php5 will only depend on libapache2-mod-php5. There is no libapache-mod-php5. | ||
==== Installing php4 alone ==== | ==== Installing php4 alone ==== | ||
<pre><nowiki> | <pre><nowiki> | ||
emma@ubuntu:~$ sudo apt-get install -s php4 | emma@ubuntu:~$ sudo apt-get install -s php4 | ||
第48行: | 第38行: | ||
... | ... | ||
</nowiki></pre> | </nowiki></pre> | ||
Installing php4 by itself will bring in '''libapache2-mod-php4''' | Installing php4 by itself will bring in '''libapache2-mod-php4''' | ||
==== Installing both ==== | ==== Installing both ==== | ||
<pre><nowiki> | <pre><nowiki> | ||
emma@ubuntu:~$ sudo apt-get install -s php4 php5 | emma@ubuntu:~$ sudo apt-get install -s php4 php5 | ||
第68行: | 第55行: | ||
... | ... | ||
</nowiki></pre> | </nowiki></pre> | ||
Installing both php4 and php5 will bring in only the '''libapache2-mod-php4''' package. | Installing both php4 and php5 will bring in only the '''libapache2-mod-php4''' package. | ||
==== keeping libapache2-mod-php5 ==== | ==== keeping libapache2-mod-php5 ==== | ||
<pre><nowiki> | <pre><nowiki> | ||
emma@ubuntu:~$ sudo apt-get install -s php5 libapache2-mod-php5 php4 | emma@ubuntu:~$ sudo apt-get install -s php5 libapache2-mod-php5 php4 | ||
第88行: | 第72行: | ||
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded. | 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded. | ||
</nowiki></pre> | </nowiki></pre> | ||
If libapache2-mod-php5 is already installed, libapache-mod-php4 gets installed, along with apache (as well as apache'''2'''). | If libapache2-mod-php5 is already installed, libapache-mod-php4 gets installed, along with apache (as well as apache'''2'''). | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 15:22的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ApacheMySQLPHP/AptPhp4Output }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/af | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|Afrikaans| [[::ApacheMySQLPHP/AptPhp4Output/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ar | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|العربية| [[::ApacheMySQLPHP/AptPhp4Output/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/az | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|azərbaycanca| [[::ApacheMySQLPHP/AptPhp4Output/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/bcc | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|جهلسری بلوچی| [[::ApacheMySQLPHP/AptPhp4Output/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/bg | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|български| [[::ApacheMySQLPHP/AptPhp4Output/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/br | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|brezhoneg| [[::ApacheMySQLPHP/AptPhp4Output/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ca | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|català| [[::ApacheMySQLPHP/AptPhp4Output/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/cs | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|čeština| [[::ApacheMySQLPHP/AptPhp4Output/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/de | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|Deutsch| [[::ApacheMySQLPHP/AptPhp4Output/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/el | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|Ελληνικά| [[::ApacheMySQLPHP/AptPhp4Output/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/es | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|español| [[::ApacheMySQLPHP/AptPhp4Output/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/fa | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|فارسی| [[::ApacheMySQLPHP/AptPhp4Output/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/fi | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|suomi| [[::ApacheMySQLPHP/AptPhp4Output/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/fr | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|français| [[::ApacheMySQLPHP/AptPhp4Output/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/gu | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|ગુજરાતી| [[::ApacheMySQLPHP/AptPhp4Output/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/he | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|עברית| [[::ApacheMySQLPHP/AptPhp4Output/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/hu | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|magyar| [[::ApacheMySQLPHP/AptPhp4Output/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/id | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|Bahasa Indonesia| [[::ApacheMySQLPHP/AptPhp4Output/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/it | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|italiano| [[::ApacheMySQLPHP/AptPhp4Output/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ja | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|日本語| [[::ApacheMySQLPHP/AptPhp4Output/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ko | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|한국어| [[::ApacheMySQLPHP/AptPhp4Output/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ksh | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|Ripoarisch| [[::ApacheMySQLPHP/AptPhp4Output/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/mr | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|मराठी| [[::ApacheMySQLPHP/AptPhp4Output/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ms | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|Bahasa Melayu| [[::ApacheMySQLPHP/AptPhp4Output/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/nl | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|Nederlands| [[::ApacheMySQLPHP/AptPhp4Output/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/no | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|norsk| [[::ApacheMySQLPHP/AptPhp4Output/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/oc | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|occitan| [[::ApacheMySQLPHP/AptPhp4Output/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/pl | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|polski| [[::ApacheMySQLPHP/AptPhp4Output/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/pt | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|português| [[::ApacheMySQLPHP/AptPhp4Output/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ro | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|română| [[::ApacheMySQLPHP/AptPhp4Output/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ru | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|русский| [[::ApacheMySQLPHP/AptPhp4Output/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/si | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|සිංහල| [[::ApacheMySQLPHP/AptPhp4Output/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/sq | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|shqip| [[::ApacheMySQLPHP/AptPhp4Output/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/sr | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|српски / srpski| [[::ApacheMySQLPHP/AptPhp4Output/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/sv | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|svenska| [[::ApacheMySQLPHP/AptPhp4Output/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/th | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|ไทย| [[::ApacheMySQLPHP/AptPhp4Output/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/tr | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|Türkçe| [[::ApacheMySQLPHP/AptPhp4Output/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/vi | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|Tiếng Việt| [[::ApacheMySQLPHP/AptPhp4Output/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/yue | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|粵語| [[::ApacheMySQLPHP/AptPhp4Output/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/zh | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|中文| [[::ApacheMySQLPHP/AptPhp4Output/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/zh-hans | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|中文(简体)| [[::ApacheMySQLPHP/AptPhp4Output/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | UbuntuHelp:ApacheMySQLPHP/AptPhp4Output | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/zh-hant | • {{#if: UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|中文(繁體)| [[::ApacheMySQLPHP/AptPhp4Output/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:ApacheMySQLPHP/AptPhp4Output|:ApacheMySQLPHP/AptPhp4Output|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :ApacheMySQLPHP/AptPhp4Output/zh | | {{#ifexist: ApacheMySQLPHP/AptPhp4Output/zh | | {{#ifeq: {{#titleparts:ApacheMySQLPHP/AptPhp4Output|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ApacheMySQLPHP/AptPhp4Output|1|-1|}} | zh | | }}
In this page, apache refers to the apache version 1.3 package and apache2 refers to apache version 2.0. Apache2 is the recommended version, presently.
PHP4
emma@ubuntu:~$ apt-cache show php4 Package: php4 ... Depends: libapache2-mod-php4 (>= 4:4.4.2-1build1) | libapache-mod-php4 (>= 4:4.4.2-1build1) | php4-cgi (>= 4:4.4.2-1build1), php4-common (>= 4:4.4.2-1build1) ...
Php4 depends on either libapache2-mod-php4 or libapche-mod-php4.
PHP5
emma@ubuntu:~$ apt-cache show php5 Package: php5 ... Depends: libapache2-mod-php5 (>= 5.1.2-1ubuntu3) | php5-cgi (>= 5.1.2-1ubuntu3), php5-common (>= 5.1.2-1ubuntu3) ...
Php5 will only depend on libapache2-mod-php5. There is no libapache-mod-php5.
Installing php4 alone
emma@ubuntu:~$ sudo apt-get install -s php4 Password: Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 libzzip-0-12 php4-common ssl-cert Suggested packages: apache2-doc lynx www-browser php-pear The following NEW packages will be installed apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 libzzip-0-12 php4 php4-common ssl-cert 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. ...
Installing php4 by itself will bring in libapache2-mod-php4
Installing both
emma@ubuntu:~$ sudo apt-get install -s php4 php5 Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 libzzip-0-12 php4-common php5-cgi php5-common ssl-cert Suggested packages: apache2-doc lynx www-browser php-pear The following NEW packages will be installed apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 libzzip-0-12 php4 php4-common php5 php5-cgi php5-common ssl-cert 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded. ...
Installing both php4 and php5 will bring in only the libapache2-mod-php4 package.
keeping libapache2-mod-php5
emma@ubuntu:~$ sudo apt-get install -s php5 libapache2-mod-php5 php4 Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: apache-common apache2-common apache2-mpm-prefork apache2-utils '''libapache-mod-php4''' libapr0 libzzip-0-12 php4-common php5-common ssl-cert Suggested packages: apache apache-ssl apache-perl apache2-doc lynx www-browser php-pear The following NEW packages will be installed apache-common apache2-common apache2-mpm-prefork apache2-utils libapache-mod-php4 libapache2-mod-php5 libapr0 libzzip-0-12 php4 php4-common php5 php5-common ssl-cert 0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
If libapache2-mod-php5 is already installed, libapache-mod-php4 gets installed, along with apache (as well as apache2).