LINUX.ORG.RU

Сообщения UserQ

 

Построение карты сети

Форум — General

Есть ли программа которая сможет автоматически построить карту сети, типа как в Win 7? Главное чтобы правильно строила карту и было понятно где что находится, красивость не обязательно.

Не GUIная.

Спасибо.

 , , , ,

UserQ
()

nginx+apache доступ по ип и домену в разные директории

Форум — Admin

Добрый день.

Подскажите как в этой связке реализовать доступ по домену и ип. Те необходимо если с ип идёт запрос тогда доступ в одну директорию, если на домен тогда на другую.

К примеру идёт запрос на ип 1.1.1.1 тогда root /var/www/, если на домен тогда root /var/www/domain.com .

Пробовал по разному делать, получается либо по домену всё обрабатывается, либо по ип. Разделить не получается.

Когфиги пока не даю, если надо будет выложу.

 , , ,

UserQ
()

apache2.2+debian6

Форум — Admin

Возникли проблемы с apache, а именно перестал работать, ранее работал нормально и без проблем, щас же

The connection has timed out

Мои конфиги

LockFile ${APACHE_LOCK_DIR}/accept.lock

PidFile ${APACHE_PID_FILE}

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15


<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

<IfModule mpm_event_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}


AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy all
</Files>

DefaultType text/plain


HostnameLookups Off

ErrorLog ${APACHE_LOG_DIR}/error.log

LogLevel warn

Include mods-enabled/*.load
Include mods-enabled/*.conf

Include httpd.conf

Include ports.conf

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent


Include conf.d/

Include sites-enabled/

 cat sites-enabled/000-default
<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from all
    </Directory>

</VirtualHost>

В access логах всё чисто, в error только жалоба на питон, но не думаю что это связано и не даёт работать ему.

[Wed Apr 06 19:08:18 2011] [notice] caught SIGTERM, shutting down
[Wed Apr 06 19:08:19 2011] [error] python_init: Python version mismatch, expected '2.6.5+', found '2.6.6'.
[Wed Apr 06 19:08:19 2011] [error] python_init: Python executable found '/usr/bin/python'.
[Wed Apr 06 19:08:19 2011] [error] python_init: Python path being used '/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Wed Apr 06 19:08:19 2011] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed Apr 06 19:08:19 2011] [notice] mod_python: using mutex_directory /tmp
[Wed Apr 06 19:08:19 2011] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7 with Suhosin-Patch mod_python/3.3.1 Python/2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations

Как можно найти где ощибка или в чём проблема? Перегастроек ни каких не делал, так что всё конфиги должны быть дефолтные.

UserQ
()

mysql добавить кодировку

Форум — Admin

Как добавить кодировку с mysql, а именно надо чтобы поддерживало cp1251

SHOW CHARACTER SET ;
+---------+-------------+---------------------+--------+
| Charset | Description | Default collation   | Maxlen |
+---------+-------------+---------------------+--------+
| big5    |             | big5_chinese_ci     |      2 |
| latin1  |             | latin1_swedish_ci   |      1 |
| latin2  |             | latin2_general_ci   |      1 |
| ujis    |             | ujis_japanese_ci    |      3 |
| sjis    |             | sjis_japanese_ci    |      2 |
| tis620  |             | tis620_thai_ci      |      1 |
| euckr   |             | euckr_korean_ci     |      2 |
| gb2312  |             | gb2312_chinese_ci   |      2 |
| cp1250  |             | cp1250_general_ci   |      1 |
| gbk     |             | gbk_chinese_ci      |      2 |
| utf8    |             | utf8_general_ci     |      3 |
| ucs2    |             | ucs2_general_ci     |      2 |
| binary  |             | binary              |      1 |
| cp932   |             | cp932_japanese_ci   |      2 |
| eucjpms |             | eucjpms_japanese_ci |      3 |
+---------+-------------+---------------------+--------+
ls -la /usr/local/mysql-5.1.41-linux-x86_64/share/charsets
total 240
drwxr-xr-x  2 root mysql  4096 2009-11-04 14:49 .
drwxr-xr-x 27 root mysql  4096 2009-11-04 14:49 ..
-rw-r--r--  1 root mysql  5480 2009-11-04 14:49 armscii8.xml
-rw-r--r--  1 root mysql  5466 2009-11-04 14:49 ascii.xml
-rw-r--r--  1 root mysql  8195 2009-11-04 14:49 cp1250.xml
-rw-r--r--  1 root mysql  8316 2009-11-04 14:49 cp1251.xml
-rw-r--r--  1 root mysql  5529 2009-11-04 14:49 cp1256.xml
-rw-r--r--  1 root mysql  8862 2009-11-04 14:49 cp1257.xml
-rw-r--r--  1 root mysql  5466 2009-11-04 14:49 cp850.xml
-rw-r--r--  1 root mysql  5482 2009-11-04 14:49 cp852.xml
-rw-r--r--  1 root mysql  5573 2009-11-04 14:49 cp866.xml
-rw-r--r--  1 root mysql  6489 2009-11-04 14:49 dec8.xml
-rw-r--r--  1 root mysql  5476 2009-11-04 14:49 geostd8.xml
-rw-r--r--  1 root mysql  5688 2009-11-04 14:49 greek.xml
-rw-r--r--  1 root mysql  5471 2009-11-04 14:49 hebrew.xml
-rw-r--r--  1 root mysql  5462 2009-11-04 14:49 hp8.xml
-rw-r--r--  1 root mysql 18261 2009-11-04 14:49 Index.xml
-rw-r--r--  1 root mysql  5489 2009-11-04 14:49 keybcs2.xml
-rw-r--r--  1 root mysql  5470 2009-11-04 14:49 koi8r.xml
-rw-r--r--  1 root mysql  6492 2009-11-04 14:49 koi8u.xml
-rw-r--r--  1 root mysql  9770 2009-11-04 14:49 latin1.xml
-rw-r--r--  1 root mysql  7192 2009-11-04 14:49 latin2.xml
-rw-r--r--  1 root mysql  5469 2009-11-04 14:49 latin5.xml
-rw-r--r--  1 root mysql  7398 2009-11-04 14:49 latin7.xml
-rw-r--r--  1 root mysql  8007 2009-11-04 14:49 macce.xml
-rw-r--r--  1 root mysql  8018 2009-11-04 14:49 macroman.xml
-rw-r--r--  1 root mysql  1749 2009-11-04 14:49 README
-rw-r--r--  1 root mysql  6490 2009-11-04 14:49 swe7.xml

Что то не получилось найти как точно это сделать, какие будут советы или как точно мне надо искать?

UserQ
()

Установка модуля php-pcntl на Дебиан

Форум — Admin

Здравствуйте Возника проблема при установке модуля php-pcntl, на Дебиан

Cделал как в мане

  apt-get install php5-dev
  mkdir php
  cd php
  apt-get source php5
  cd php5-5.1.2/ext/pcntl
  phpize
  ./configure
  make
  cp modules/* /usr/lib/php5/20051025/

Не работает, httpd restart делал

ls -la /usr/lib/php5/20060613/
drwxr-xr-x 2 root root   4096 2011-02-08 16:41 .
drwxr-xr-x 5 root root   4096 2011-02-08 16:39 ..
-rw-r--r-- 1 root root    793 2011-02-08 16:41 pcntl.la
-rwxr-xr-x 1 root root  62189 2011-02-08 16:41 pcntl.so
-rw-r--r-- 1 root root 103032 2010-08-04 01:13 pdo.so

php -m | grep pcntl

Ни чего не выдаёт, где моя ошибка что не так сделал?

Надо как то заставить пхп его видеть путь где то прописать или ещё как?

UserQ
()

Импорт большой базы данных

Форум — Admin

Слил больщую(~14GB) базу данных, а вот импортировать не получается

ERROR 1153 (08S01) at line 27: Got a packet bigger than 'max_allowed_packet' bytes

Меня в настройках, ставлю 128

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Пробывал Sypex Dumper Lite, слить получилось, а вот залить

010.11.03 13:06:24
Возникла ошибка!
Неудается изменить кодировку соединения.
 /*!40101 DEFAULT CHARSET=latin1 */
Variable 'character_set_client' can't be set to the value of 'ucs2' (256)
UserQ
()

Большая загрузка CPU

Форум — Admin

Сильно грузит процессор mysql and apache

PID USER PR NIVIRT RES SHR S %CPU %MEM TIME+ COMMAND
2942 apache 20 0 103m 15m 3084 R 79 0.4 0:02.83 httpd
2466 mysql 20 0 634m 69m 4764 S 29 1.8 1:36.59 mysqld
2777 apache 20 0 98012 9544 3104 S 15 0.2 0:02.00 httpd

Попробовал проверить через mytop

Cannot connect to MySQL server. Please check the:

  * database you specified "" (default is "")
  * username you specified "da_admin" (default is "root")
  * password you specified "xxxxxxx" (default is "")
  * hostname you specified "localhost" (default is "localhost")
  * port you specified "3306" (default is 3306)
  * socket you specified "" (default is "")

The options my be specified on the command-line or in a ~/.mytop
config file. See the manual (perldoc mytop) for details.

Here's the exact error from DBI. It might help you debug:

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Какие будут советы? Всё ставилось с помощью DirecAdmin, как я понимаю. До этого всё работало вполне нормально не возникало таких проблем.

UserQ
()

Can't connect to local MySQL server through socket

Форум — Admin

При подключении к mysql выдаёт

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Сам конфиг

cat /etc/my.cnf
[mysqld]
local-infile=0
max_connections=500
key_buffer=256M
thread_cache_size=1024

Скорей всего mysql, apache и т.д. ставился через DirectAdmin.

Хотел посмотреть логи но не знаю где они лежат.

Если ещё какие то надо данные говорите.

До этого mysql сильно грузил процессор, но работал,забирал 40-80%, иногда и выше, пытался как то решить этот вопрос в результате вот.

UserQ
()

Ping No buffer space available

Форум — Admin

Добрый днеь.

есть

ASPLinux release 11.2 (Ladoga)
Kernel 2.6.17-1.2157.1asp on an i686

работает как маршрутизатор, раньше интернет на сервак раздавался как прямое подключение, всё работало хорошо, щас же перевели раздачу на дхцп и выдали каждому свой внешний ип. И тут появилась проблема, а именно при пинге с сервака какого то хоста выдает

ping youtube.com
connect no buffer space available

Проблема как бэ ясна, но нашел одно решение

echo 83886080 > /proc/sys/net/core/wmem_max

НО не помогло. Как увеличить буфер?

UserQ
()

Проблема с оперделением свободного места на диске

Форум — Admin
df -h
Filesystem            Size  Used Avail Use% Mounted on
simfs                  42G  878M     0 100% /
tmpfs                 7.9G     0  7.9G   0% /lib/init/rw
tmpfs                 7.9G     0  7.9G   0% /dev/shm
overflow              1.0M     0  1.0M   0% /tmp

В чём можеть быть проблема и как это пофиксить. Даже не знаю как гуглить такое чтобы узнать ответ на вопрос.

Если что линукс дебиан-ленни

 uname -a
Linux europium 2.6.26-2-openvz-amd64 
UserQ
()

proftpd запуск при старте

Форум — Admin

Как в линукс дебиан сделать чтобы при старте запускался proftpd, не давно работаю с ней ещё не совсем всё изучил, в федоре можно было через chconfig, а тут такого нету.

Заранее благодарен.

UserQ
()

Мультидомены в апаче

Форум — Admin

Как в апаче сделать мультидомены на одну директорию? То есть имеется domain1.com domain2.com ... domainN.com и надо чтобы они все относились к директории, к примеру, /home/web .

Как то это можно сделать в апаче? Видел такое в мане по апачу что есть такая возможность, есть какое то ограничение на количество?

    <VirtualHost 111.22.33.55 111.22.33.66>
    DocumentRoot /www/otherdomain
    ServerName www.otherdomain.tld
    ...
    </VirtualHost>

UserQ
()

Настройка фтп в ehcp

Форум — General

Как создать фтп аккаунт в ehcp чтобы был доступ в /var/www/, как то раз получилось сделать но щас не получается? Так же чтобы потом добавленные домены находились /var/www/domain и всё это можно было администрировать одним фтп аккаунтом.

UserQ
()

Как ограничеть юзера директорией?

Форум — Admin

Создал для профтпд виртуального пользователя, но не знаю как его ограничеть директорией, то есть чтобы он не мог подымался выше свей директории. желательно с примером, так как решения не нашел.

UserQ
()

Добится стабильности pppoe соединения

Форум — Admin

Злрасте. Хочу добиться стабильной работы пппое соединения. На данный момент может несколько суток работать без перебоев, а потом за день упасть несколько раз. Лог переподключения, до него ни чего не пишется.

cat /var/log/messages
..................
Aug 18 15:20:18 localhost pppoe-stop: Killing pppd
Aug 18 15:20:18 localhost pppd[879]: Terminating on signal 15
Aug 18 15:20:18 localhost pppd[879]: Connect time 298.0 minutes.
Aug 18 15:20:18 localhost pppd[879]: Sent 615705954 bytes, received 219586462 bytes.
Aug 18 15:20:18 localhost pppoe-stop: Killing pppoe-connect
Aug 18 15:20:18 localhost pppoe[880]: read (asyncReadFromPPP): Session 30563: Input/output error
Aug 18 15:20:18 localhost pppoe[880]: Sent PADT
Aug 18 15:20:18 localhost pppd[32251]: pppd 2.4.4 started by root, uid 0
Aug 18 15:20:18 localhost pppd[32251]: Using interface ppp0
Aug 18 15:20:18 localhost pppd[32251]: Connect: ppp0 <--> /dev/pts/0
Aug 18 15:20:18 localhost pppoe[32252]: PPP session is 12774 (0x31e6)
Aug 18 15:20:18 localhost pppd[32251]: CHAP authentication succeeded
Aug 18 15:20:18 localhost pppd[32251]: local  IP address 1.1.1.1
Aug 18 15:20:18 localhost pppd[32251]: remote IP address 2.2.2.2
Aug 18 15:20:18 localhost pppd[32251]: CCP terminated by peer
Aug 18 15:20:18 localhost pppd[32251]: Compression disabled by peer.

 cat /etc/ppp/pppoe.conf | grep -v ^#


ETH='eth0'

USER='userISP'

DEMAND=no

DNSTYPE=SPECIFY

PEERDNS=no

DNS1=x.x.x.x
DNS2=x.x.x.x

DEFAULTROUTE=yes


CONNECT_TIMEOUT=30

CONNECT_POLL=2

ACNAME=

SERVICENAME=

PING="."

CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-pppoe.pid"

SYNCHRONOUS=no

CLAMPMSS=1412

LCP_INTERVAL=20
LCP_FAILURE=3

PPPOE_TIMEOUT=80

FIREWALL=STANDALONE

LINUX_PLUGIN=

PPPOE_EXTRA=""


PPPD_EXTRA=""

хотел отловить ошибки, нашел такое решение как это сделать

 cat /etc/syslog.conf

# Save messages from pppd
daemon.*                                           /var/log/pppd-log

но ещё ни разу ни чего не записалось

 uname -a
Linux localhost.localdomain 2.6.26.3-29.0.140asp.i686

АСПЛинукс то ли 13 то ли 14

На винде сессии работают стабильно и долго.

Каковы будут советы.

UserQ
()

rrdtool проблемы при установке

Форум — Admin

Здрасте

Решил поставить на сервер нтоп, для этого надо было ему rrdtool, при установке даёт такую ошибку

./configure --prefix=/usr/local/rrdtool
................
Find 3rd-Party Libraries
checking for libdbi... no
checking for cairo_font_options_create in -lcairo... yes
checking cairo.h usability... no
checking cairo.h presence... no
checking for cairo.h... no
checking for pkg-config... pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no cairo-png.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-png. Check config.log for hints on why
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
  so that compiler and the linker can find libcairo and its header files. If
  you have not installed cairo-png, you can get it either from its original home on

     http://cairographics.org/releases/

  You can find also find an archive copy on

     http://oss.oetiker.ch/rrdtool/pub/libs

  The last tested version of cairo-png is 1.4.6.

       LIBS=-lm
   LDFLAGS=
  CPPFLAGS=

----------------------------------------------------------------------------

checking for cairo_svg_surface_create in -lcairo... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-svg. Check config.log for hints on why
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
  so that compiler and the linker can find libcairo and its header files. If
  you have not installed cairo-svg, you can get it either from its original home on

     http://cairographics.org/releases/

  You can find also find an archive copy on

     http://oss.oetiker.ch/rrdtool/pub/libs

  The last tested version of cairo-svg is 1.4.6.

       LIBS=-lm
   LDFLAGS=
  CPPFLAGS=

----------------------------------------------------------------------------

checking for cairo_pdf_surface_create in -lcairo... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-pdf. Check config.log for hints on why
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
  so that compiler and the linker can find libcairo and its header files. If
  you have not installed cairo-pdf, you can get it either from its original home on

     http://cairographics.org/releases/

  You can find also find an archive copy on

     http://oss.oetiker.ch/rrdtool/pub/libs

  The last tested version of cairo-pdf is 1.4.6.

       LIBS=-lm
   LDFLAGS=
  CPPFLAGS=

----------------------------------------------------------------------------

checking for cairo_ps_surface_create in -lcairo... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
  You may want to set the PKG_CONFIG_PATH variable to point to its
  location.
----------------------------------------------------------------------------

configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of cairo-ps. Check config.log for hints on why
  this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
  so that compiler and the linker can find libcairo and its header files. If
  you have not installed cairo-ps, you can get it either from its original home on

     http://cairographics.org/releases/

  You can find also find an archive copy on

     http://oss.oetiker.ch/rrdtool/pub/libs

  The last tested version of cairo-ps is 1.4.6.

       LIBS=-lm
   LDFLAGS=
  CPPFLAGS=

----------------------------------------------------------------------------

checking for glib_check_version in -lglib-2.0... yes
checking glib.h usability... no
checking glib.h presence... no
checking for glib.h... no
checking for pkg-config... (cached) pkg-config
checking for glib_check_version in -lglib-2.0... yes
checking glib.h usability... yes
checking glib.h presence... yes
checking for glib.h... yes
checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... yes
checking pango/pango.h usability... no
checking pango/pango.h presence... no
checking for pango/pango.h... no
checking for pkg-config... (cached) pkg-config
checking for pango_cairo_context_set_font_options in -lpangocairo-1.0... yes
checking pango/pango.h usability... yes
checking pango/pango.h presence... yes
checking for pango/pango.h... yes
checking for xmlParseFile in -lxml2... yes
checking libxml/parser.h usability... yes
checking libxml/parser.h presence... yes
checking for libxml/parser.h... yes
configure: error: Please fix the library issues listed above and try again.

Естественно попробовал погуглить на счёт этого, но все решения что нашел не помогли.

По идее что ему надо у меня и так есть.

cairo-devel.i386                         1.0.2-0.110.1asp       installed
cairo.i386                               1.0.2-0.110.1asp       installed 
pango-devel.i386                         1.12.4-4               installed
pango.i386                               1.12.4-4               installed

Чего я ещё не знаю чтобы решить эту проблему?

 uname -a
Linux localhost.localdomain 2.6.17-1.2157.1asp #1 Fri Aug 11 03:02:11 EEST 2006 i686 i686 i386 GNU/Linux 
UserQ
()

Биллинг система для линукса

Форум — Admin

Надо выбрать биллинг систему для Линукса, но не могу определится какую именно.

Идёт прямое подключения пользователей, а потом натятся по средствам iptables.

Что можно выбрать, сильно сложное не надо ибо оно не зачем там.

Кто что может посоветовать?

Есть вопросы задавайте.

UserQ
()

Блокировка интернета для пользователей по времене.

Форум — Admin

Здрасте!

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

Подключение идёт прямое. Просто резать интернет не решение, так как потом может быть много звонков надо чтобы пользователь точно знал что и почему.

Знаю что подымался вопрос он не один раз, просто забыл что именно мне надо искать.

UserQ
()

Проблемы с настройка веб-сервера

Форум — Admin

Есть севрер на асп линкс 14. Нужно поднять на нём веб-сераер. Настраивал сервер по статье http://www.opennet.ru/base/net/lamp_slackware.txt.html . После настройки возникли проблемы, а именно не хочет работать пхп в вэб севрере, для проверки был использован пхп скрипт из статьи, но когда пытаюсь его открыть для проверки, то мне предлагается скачать его, а не запускается. Конфиг httpd

 cat /usr/local/httpd/conf/httpd.conf  | grep -v ^#

ServerRoot "/usr/local/httpd"

Listen 80


<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
User nobody
Group nobody

</IfModule>
</IfModule>


ServerAdmin you@example.com

ServerName 172.20.34.100:80
DocumentRoot "/usr/local/httpd/htdocs"

<Directory />
    Options None
    AllowOverride None
    #Order deny,allow
    #Deny from all
</Directory>


<Directory "/usr/local/httpd/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options None

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

<IfModule dir_module>
    DirectoryIndex index.html index.html.var index.php
</IfModule>

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

ErrorLog "logs/error_log"

LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    CustomLog "logs/access_log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    #CustomLog "logs/access_log" combined
</IfModule>

<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/usr/local/httpd/cgi-bin/"

</IfModule>

<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock logs/cgisock
</IfModule>

<Directory "/usr/local/httpd/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

DefaultType text/plain

<IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
</IfModule>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

AddType application/x-httpd-php .php .foo
AddType application/x-httpd-php-source .phps .phtmls

Конфиг пхп не менял, если надо покажу, но он громоздкий получается. С чего начать и как проверить где ошибка или ещё что то пока не знаю. PS Если что то ещё надо пишите. PS как избавится от этого # ? без пустого места убирается с пустым нет.

UserQ
()

Проблемы с pppoe, глюки соединения

Форум — Admin

Есть сервер работает на АСП Линукс 14, работает как роутер, подключение через по пппое, с помощью рп-пппое. Несколько раз день отпадает инет, а именно всё что относиться к провайдера пинугется, ип внешний, а вот всё остальное нет. Кинул трассу, дальше провайдера не идёт.

В чём может быть проблема и как от неё избавится? Что ещё проверить при таком инциденте?

UserQ
()

RSS подписка на новые темы