特殊:Badtitle/NS100:ApacheMySQLPHP/AptPhp4Output
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ApacheMySQLPHP/AptPhp4Output }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/af | • {{#if: php5|Afrikaans| [[::ApacheMySQLPHP/AptPhp4Output/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ar | • {{#if: php5|العربية| [[::ApacheMySQLPHP/AptPhp4Output/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/az | • {{#if: php5|azərbaycanca| [[::ApacheMySQLPHP/AptPhp4Output/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::ApacheMySQLPHP/AptPhp4Output/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/bg | • {{#if: php5|български| [[::ApacheMySQLPHP/AptPhp4Output/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/br | • {{#if: php5|brezhoneg| [[::ApacheMySQLPHP/AptPhp4Output/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ca | • {{#if: php5|català| [[::ApacheMySQLPHP/AptPhp4Output/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/cs | • {{#if: php5|čeština| [[::ApacheMySQLPHP/AptPhp4Output/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/de | • {{#if: php5|Deutsch| [[::ApacheMySQLPHP/AptPhp4Output/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/el | • {{#if: php5|Ελληνικά| [[::ApacheMySQLPHP/AptPhp4Output/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/es | • {{#if: php5|español| [[::ApacheMySQLPHP/AptPhp4Output/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/fa | • {{#if: php5|فارسی| [[::ApacheMySQLPHP/AptPhp4Output/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/fi | • {{#if: php5|suomi| [[::ApacheMySQLPHP/AptPhp4Output/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/fr | • {{#if: php5|français| [[::ApacheMySQLPHP/AptPhp4Output/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/gu | • {{#if: php5|ગુજરાતી| [[::ApacheMySQLPHP/AptPhp4Output/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/he | • {{#if: php5|עברית| [[::ApacheMySQLPHP/AptPhp4Output/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/hu | • {{#if: php5|magyar| [[::ApacheMySQLPHP/AptPhp4Output/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/id | • {{#if: php5|Bahasa Indonesia| [[::ApacheMySQLPHP/AptPhp4Output/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/it | • {{#if: php5|italiano| [[::ApacheMySQLPHP/AptPhp4Output/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ja | • {{#if: php5|日本語| [[::ApacheMySQLPHP/AptPhp4Output/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ko | • {{#if: php5|한국어| [[::ApacheMySQLPHP/AptPhp4Output/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ksh | • {{#if: php5|Ripoarisch| [[::ApacheMySQLPHP/AptPhp4Output/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/mr | • {{#if: php5|मराठी| [[::ApacheMySQLPHP/AptPhp4Output/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ms | • {{#if: php5|Bahasa Melayu| [[::ApacheMySQLPHP/AptPhp4Output/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/nl | • {{#if: php5|Nederlands| [[::ApacheMySQLPHP/AptPhp4Output/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/no | • {{#if: php5|norsk| [[::ApacheMySQLPHP/AptPhp4Output/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/oc | • {{#if: php5|occitan| [[::ApacheMySQLPHP/AptPhp4Output/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/pl | • {{#if: php5|polski| [[::ApacheMySQLPHP/AptPhp4Output/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/pt | • {{#if: php5|português| [[::ApacheMySQLPHP/AptPhp4Output/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ro | • {{#if: php5|română| [[::ApacheMySQLPHP/AptPhp4Output/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/ru | • {{#if: php5|русский| [[::ApacheMySQLPHP/AptPhp4Output/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/si | • {{#if: php5|සිංහල| [[::ApacheMySQLPHP/AptPhp4Output/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/sq | • {{#if: php5|shqip| [[::ApacheMySQLPHP/AptPhp4Output/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/sr | • {{#if: php5|српски / srpski| [[::ApacheMySQLPHP/AptPhp4Output/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/sv | • {{#if: php5|svenska| [[::ApacheMySQLPHP/AptPhp4Output/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/th | • {{#if: php5|ไทย| [[::ApacheMySQLPHP/AptPhp4Output/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/tr | • {{#if: php5|Türkçe| [[::ApacheMySQLPHP/AptPhp4Output/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/vi | • {{#if: php5|Tiếng Việt| [[::ApacheMySQLPHP/AptPhp4Output/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/yue | • {{#if: php5|粵語| [[::ApacheMySQLPHP/AptPhp4Output/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/zh | • {{#if: php5|中文| [[::ApacheMySQLPHP/AptPhp4Output/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/zh-hans | • {{#if: php5|中文(简体)| [[::ApacheMySQLPHP/AptPhp4Output/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}ApacheMySQLPHP/AptPhp4Output}}/zh-hant | • {{#if: php5|中文(繁體)| [[::ApacheMySQLPHP/AptPhp4Output/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|: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).