Установка web сервера на debian8

  • Автор темы Автор темы Ethernal
  • Дата начала Дата начала
что примечательно, пишу в putty проверить версию
PHP:
php5 -version
-bash: php5: command not found
PHP:
apache2 --version
-bash: apache2: command not found
 
php -v
apache2 -v

Пиши лучше завтра днем, попробуй тебе объяснить что и как скайп в профиле
 
-v не катит под debian
PHP:
java -v
Unrecognized option: -v
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
root@cs18554:~# java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
 
все катит ! это только у явы -version ну не только! у тебя просто нет бинариков в /usr/sbin ставил ли ты вапще веб сервер,
 
Возможно, спорить не буду
Вот, пытаюсь поставить апач2
PHP:
root@cs18554:~# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up php5-xcache (3.2.0-1) ...
/usr/sbin/php5enmod: 43: .: Can't open /usr/share/php5/php5-helper
dpkg: error processing package php5-xcache (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up javascript-common (11) ...
dpkg: error processing package javascript-common (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libapache2-mod-php5 (5.6.14+dfsg-0+deb8u1) ...
Error: The new file /usr/share/php5/php.ini-production does not exist!
dpkg: error processing package libapache2-mod-php5 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up php5-fpm (5.6.14+dfsg-0+deb8u1) ...
Error: The new file /usr/share/php5/php.ini-production does not exist!
dpkg: error processing package php5-fpm (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up php5-imagick (3.2.0~rc1-1) ...
/usr/sbin/php5enmod: 43: .: Can't open /usr/share/php5/php5-helper
dpkg: error processing package php5-imagick (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up php5-memcache (3.0.8-5) ...
/usr/sbin/php5enmod: 43: .: Can't open /usr/share/php5/php5-helper
dpkg: error processing package php5-memcache (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up php5-xdebug (2.2.5-1) ...
/usr/sbin/php5enmod: 43: .: Can't open /usr/share/php5/php5-helper
dpkg: error processing package php5-xdebug (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
php5-xcache
javascript-common
libapache2-mod-php5
php5-fpm
php5-imagick
php5-memcache
php5-xdebug
E: Sub-process /usr/bin/dpkg returned an error code (1)
Пишет что файлы не существуют, но возможно в этом дело? "7 not fully installed or removed."