Перейти к содержанию
Посмотреть в приложении

A better way to browse. Learn more.

Форум Академгородка, Новосибирск

A full-screen app on your home screen with push notifications, badges and more.

Чтобы установить это приложение на iOS и iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
Чтобы установить это приложение на Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Апач не ставится, не растёт кокос

Опубликовано

Решил я поставить php5. Он потребовал apache2. Я снёс apache, остался без веб сервера.

 

zeuhl:~# apt-get install apache
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Будут установлены следующие дополнительные пакеты:
 apache-common
Настойчиво рекомендуемые пакеты:
 apache-doc apache-ssl apache-perl
НОВЫЕ пакеты, которые будут установлены:
 apache apache-common
обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 119 пакетов не обновлено.
Необходимо скачать 0B/1239kB архивов.
После распаковки объем занятого дискового пространства возрастёт на 3916kB.
Хотите продолжить [Д/н]?
Предварительная настройка пакетов ...
Выбор ранее не выбранного пакета apache-common.
(Чтение базы данных... на данный момент установлено 54297 файлов и каталогов.)
Распаковывается пакет apache-common (из файла .../apache-common_1.3.34-4_i386.deb)...
Выбор ранее не выбранного пакета apache.
Распаковывается пакет apache (из файла .../apache_1.3.34-4_i386.deb)...
grep: /etc/apache/httpd.conf: No such file or directory
Stopping apache 1.3 web server...No process in pidfile `/var/run/apache.pid' found running; none killed.
Настраивается пакет apache-common (1.3.34-4) ...

Настраивается пакет apache (1.3.34-4) ...
Not replacing deleted config file /etc/apache/httpd.conf
Not replacing deleted config file /etc/apache/srm.conf
Not replacing deleted config file /etc/apache/access.conf
Not replacing deleted config file /etc/apache/modules.conf
Can't open config file /etc/apache/httpd.conf.
No such file or directory
Can't open config file /etc/apache/httpd.conf.
No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
/usr/share/apache/postinst.common: line 12: /etc/apache/httpd.conf: No such file or directory
grep: /etc/apache/httpd.conf: No such file or directory
Configuration syntax error detected, not starting/reloading...
fopen: No such file or directory
apache: could not open document config file /etc/apache/httpd.conf
failed!
invoke-rc.d: initscript apache, action "start" failed.
dpkg: не удалось обработать параметр apache (--configure):
подпроцесс post-installation script возвратил код ошибки 1
При обработке следующих пакетов произошли ошибки:
apache
E: Sub-process /usr/bin/dpkg returned an error code (1)
zeuhl:~# /etc/init.d/apache start
grep: /etc/apache/httpd.conf: No such file or directory
Configuration syntax error detected, not starting/reloading...
fopen: No such file or directory
apache: could not open document config file /etc/apache/httpd.conf
failed!

 

Короче я много чего пробовал (и apache2). Но никак не могу вернуться к предыдущему состоянию: все пакеты ломанные https://academ.club/html/emoticons/sad.gif(

 

Вот мой sources.list:

# This file was automatically generated by APTuner.
# http://debian.nsu.ru/aptuner/

# Base Debian distribution
deb http://debian.nsu.ru/debian sarge main non-free contrib
#deb-src http://debian.nsu.ru/debian sarge main non-free contrib

# Security updates
deb http://debian.nsu.ru/debian-security sarge/updates main non-free
#deb-src http://debian.nsu.ru/debian-security sarge/updates main non-

# Proposed updates
#deb http://debian.nsu.ru/debian sarge-proposed-updates main non-free
#deb-src http://debian.nsu.ru/debian sarge-proposed-updates main non-

# MPlayer and related stuff
deb http://debian.nsu.ru/debian-marillat stable main
#deb-src http://debian.nsu.ru/debian-marillat unstable main

# End of automatically generated section.

deb http://debian.nsu.ru/debian/ testing main
#deb-src http://debian.nsu.ru/debian/ unstable main

deb http://security.debian.org/ stable/updates main contrib non-free

Изменено пользователем Гость

Рекомендуемые сообщения

Опубликовано
Интересно, заработает? В свое время из-за подобных проблем с пакетами перешел на gentoo.
Опубликовано

php5 для первого апача предоставляет пакет

libapache-mod-php5

однако в зависимостях php первым (и более приоритетным) идёт модуль для второго апача:

libapache2-mod-php5 $Version | libapache-mod-php5 $Version | php5-cgi $Version

 

поэтому при установки php может потребоваться apache2. Чтобы предотвратить такое опведение, достаточно указать для установки нужный пакет с модулем, т.е.

apt-get install php5 libapache-mod-php5

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

Гость
Ответить в этой теме...

Аккаунт

Навигация

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.