“UbuntuHelp:ApacheMySQLPHP/AptPhp4Output”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
(未显示同一用户的3个中间版本) | |||
第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 | ||
第38行: | 第28行: | ||
Building dependency tree... Done | Building dependency tree... Done | ||
The following extra packages will be installed: | The following extra packages will be installed: | ||
− | apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 | + | apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 |
− | libzzip-0-12 php4-common ssl-cert | + | libzzip-0-12 php4-common ssl-cert |
Suggested packages: | Suggested packages: | ||
− | apache2-doc lynx www-browser php-pear | + | apache2-doc lynx www-browser php-pear |
The following NEW packages will be installed | The following NEW packages will be installed | ||
− | apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 | + | apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 |
− | libzzip-0-12 php4 php4-common ssl-cert | + | libzzip-0-12 php4 php4-common ssl-cert |
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. | 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. | ||
... | ... | ||
</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 | ||
第58行: | 第45行: | ||
Building dependency tree... Done | Building dependency tree... Done | ||
The following extra packages will be installed: | The following extra packages will be installed: | ||
− | apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 | + | apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 |
− | libzzip-0-12 php4-common php5-cgi php5-common ssl-cert | + | libzzip-0-12 php4-common php5-cgi php5-common ssl-cert |
Suggested packages: | Suggested packages: | ||
− | apache2-doc lynx www-browser php-pear | + | apache2-doc lynx www-browser php-pear |
The following NEW packages will be installed | The following NEW packages will be installed | ||
− | apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 | + | apache2-common apache2-mpm-prefork apache2-utils libapache2-mod-php4 libapr0 |
− | libzzip-0-12 php4 php4-common php5 php5-cgi php5-common ssl-cert | + | 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. | 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded. | ||
... | ... | ||
</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 | ||
第78行: | 第62行: | ||
Building dependency tree... Done | Building dependency tree... Done | ||
The following extra packages will be installed: | The following extra packages will be installed: | ||
− | apache-common apache2-common apache2-mpm-prefork apache2-utils | + | apache-common apache2-common apache2-mpm-prefork apache2-utils |
− | '''libapache-mod-php4''' libapr0 libzzip-0-12 php4-common php5-common ssl-cert | + | '''libapache-mod-php4''' libapr0 libzzip-0-12 php4-common php5-common ssl-cert |
Suggested packages: | Suggested packages: | ||
− | apache apache-ssl apache-perl apache2-doc lynx www-browser php-pear | + | apache apache-ssl apache-perl apache2-doc lynx www-browser php-pear |
The following NEW packages will be installed | The following NEW packages will be installed | ||
− | apache-common apache2-common apache2-mpm-prefork apache2-utils | + | apache-common apache2-common apache2-mpm-prefork apache2-utils |
− | libapache-mod-php4 libapache2-mod-php5 libapr0 libzzip-0-12 php4 php4-common | + | libapache-mod-php4 libapache2-mod-php5 libapr0 libzzip-0-12 php4 php4-common |
− | php5 php5-common ssl-cert | + | php5 php5-common ssl-cert |
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]] |
2010年5月19日 (三) 17:25的最新版本
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).