Anonymous : |
הדרך היותר טובה זה להתקין apache, php ו-mysql בעזרת מנהל החבילות של ההפצה שלך.
באיזה הפצה אתה משתמש? |
Anonymous : |
התקנת LAMP דרך מנהל החבילות
https://community.linuxmint.com/tutorial/view/486 |
קוד: |
ron@ron-H81M-S2H ~ $ sudo apt-get install php5 libapache2-mod-php5
Reading package lists... Done Building dependency tree Reading state information... Done Package libapache2-mod-php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source Package php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'php5' has no installation candidate E: Package 'libapache2-mod-php5' has no installation candidate |
צפריר : |
עברו כבר ל־PHP7.
באופן כללי: במקום php5 צ״ל php7.0 . |
קוד: |
ron@ron-H81M-S2H ~ $ sudo apt-get install php7 libapache2-mod-php7
Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php7 E: Unable to locate package libapache2-mod-php7 |
קוד: |
$ apt show php5
Package: php5 State: not installed Version: 5.6.30+dfsg-0+deb8u1 Priority: optional Section: php Maintainer: Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org> Architecture: all Uncompressed Size: 1,024 Depends: libapache2-mod-php5 (>= 5.6.30+dfsg-0+deb8u1~) | libapache2-mod-php5filter (>= 5.6.30+dfsg-0+deb8u1~) | php5-cgi (>= 5.6.30+dfsg-0+deb8u1~) | php5-fpm (>= 5.6.30+dfsg-0+deb8u1~), php5-common (>= 5.6.30+dfsg-0+deb8u1~) Description: server-side, HTML-embedded scripting language (metapackage) This package is a metapackage that, when installed, guarantees that you have at least one of the four server-side versions of the PHP5 interpreter installed. Removing this package won't remove PHP5 from your system, however it may remove other packages that depend on this one. PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. Homepage: http://www.php.net/ Tags: devel::lang:php, devel::runtime, implemented-in::c, protocol::http, role::metapackage, secteam::squeeze-limited-support, secteam::wheezy-limited-support, web::scripting y@localhost ~ $ apt show php7 E: Unable to locate package php7 |