ЧТо то с апачем.

Discussion in 'Безопасность и Анонимность' started by Lord Nikon, 23 Apr 2006.

Thread Status:
Not open for further replies.
  1. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    У мя проблема с апачем,я установил апач и перл для начала,все по видео сконфигурировал,затем создал как по видео скрипт и хотел проверить все ли нормально,так когда я пишу localhost/cgi-bin/test.cgi
    он начинает думать,и самое главное не открывает страницу,иногда когда я перезхагружаю апач он мне пишет типа ошибка возникла и приложение будет открыто,странно.
    могу журнал ошибок показать если нужно:
    [Sun Apr 23 15:53:41 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sun Apr 23 15:53:41 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sun Apr 23 15:53:41 2006] [notice] Parent: Created child process 3788
    [Sun Apr 23 15:53:43 2006] [notice] Child 3788: Child process is running
    [Sun Apr 23 15:53:44 2006] [notice] Child 3788: Acquired the start mutex.
    [Sun Apr 23 15:53:44 2006] [notice] Child 3788: Starting 250 worker threads.
    [Sun Apr 23 15:56:36 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/favicon.ico, referer: http://localhost/
    [Sun Apr 23 15:56:44 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/cgi
    [Sun Apr 23 15:56:56 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/cgi
    [Sun Apr 23 15:58:24 2006] [notice] Parent: Received restart signal -- Restarting the server.
    [Sun Apr 23 15:58:24 2006] [notice] Child 3788: Exit event signaled. Child process is ending.
    [Sun Apr 23 15:58:25 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sun Apr 23 15:58:25 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sun Apr 23 15:58:25 2006] [notice] Parent: Created child process 692
    [Sun Apr 23 15:58:25 2006] [notice] Child 692: Child process is running
    [Sun Apr 23 15:58:26 2006] [notice] Child 692: Acquired the start mutex.
    [Sun Apr 23 15:58:26 2006] [notice] Child 3788: Released the start mutex
    [Sun Apr 23 15:58:26 2006] [notice] Child 692: Starting 250 worker threads.
    [Sun Apr 23 15:58:27 2006] [notice] Child 3788: Waiting for 250 worker threads to exit.
    [Sun Apr 23 15:59:08 2006] [notice] Parent: Received restart signal -- Restarting the server.
    [Sun Apr 23 15:59:09 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sun Apr 23 15:59:09 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sun Apr 23 15:59:09 2006] [notice] Parent: Created child process 4088
    [Sun Apr 23 15:59:09 2006] [notice] Child 692: Exit event signaled. Child process is ending.
    [Sun Apr 23 15:59:09 2006] [notice] Child 4088: Child process is running
    [Sun Apr 23 15:59:10 2006] [notice] Child 4088: Acquired the start mutex.
    [Sun Apr 23 15:59:10 2006] [notice] Child 692: Released the start mutex
    [Sun Apr 23 15:59:10 2006] [notice] Child 4088: Starting 250 worker threads.
    [Sun Apr 23 15:59:11 2006] [notice] Child 692: Waiting for 247 worker threads to exit.
    [Sun Apr 23 15:59:11 2006] [crit] [Sun Apr 23 15:59:11 2006] file C:\\asf-build\\build-2.0.55\\server\\mpm\\winnt\\child.c, line 1078, assertion "(rv >= 0) && (rv < threads_created)" failed
    [Sun Apr 23 15:59:23 2006] [error] [client 127.0.0.1] Premature end of script headers: test.cgi
    [Sun Apr 23 16:00:02 2006] [error] [client 127.0.0.1] Premature end of script headers: test.cgi
    [Sun Apr 23 16:01:27 2006] [notice] Child 3788: Terminating 3 threads that failed to exit.
    [Sun Apr 23 16:04:15 2006] [error] [client 127.0.0.1] Premature end of script headers: test.cgi
    [Sun Apr 23 16:04:55 2006] [error] [client 127.0.0.1] Premature end of script headers: test.cgi
    [Sun Apr 23 16:06:22 2006] [notice] Parent: Received restart signal -- Restarting the server.
    [Sun Apr 23 16:06:22 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sun Apr 23 16:06:22 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sun Apr 23 16:06:22 2006] [notice] Parent: Created child process 5552
    [Sun Apr 23 16:06:23 2006] [notice] Child 4088: Exit event signaled. Child process is ending.
    [Sun Apr 23 16:06:23 2006] [notice] Child 5552: Child process is running
    [Sun Apr 23 16:06:24 2006] [notice] Child 5552: Acquired the start mutex.
    [Sun Apr 23 16:06:24 2006] [notice] Child 4088: Released the start mutex
    [Sun Apr 23 16:06:24 2006] [notice] Child 5552: Starting 250 worker threads.
    [Sun Apr 23 16:06:25 2006] [notice] Child 4088: Waiting for 246 worker threads to exit.
    [Sun Apr 23 16:06:25 2006] [crit] [Sun Apr 23 16:06:25 2006] file C:\\asf-build\\build-2.0.55\\server\\mpm\\winnt\\child.c, line 1078, assertion "(rv >= 0) && (rv < threads_created)" failed
    [Sun Apr 23 16:06:29 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/cgi
    [Sun Apr 23 16:06:29 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/favicon.ico, referer: http://localhost/cgi/test.cgi
    [Sun Apr 23 16:06:31 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/cgi
    [Sun Apr 23 16:06:31 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/favicon.ico, referer: http://localhost/cgi/test.cgi
    [Sun Apr 23 16:06:32 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/cgi
    [Sun Apr 23 16:06:32 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/favicon.ico, referer: http://localhost/cgi/test.cgi
    [Sun Apr 23 16:11:41 2006] [error] [client 127.0.0.1] Premature end of script headers: test.cgi
    [Sun Apr 23 16:23:15 2006] [notice] Parent: Received restart signal -- Restarting the server.
    [Sun Apr 23 16:23:15 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sun Apr 23 16:23:15 2006] [notice] Child 5552: Exit event signaled. Child process is ending.
    [Sun Apr 23 16:23:15 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sun Apr 23 16:23:15 2006] [notice] Parent: Created child process 3620
    [Sun Apr 23 16:23:15 2006] [notice] Child 3620: Child process is running
    [Sun Apr 23 16:23:16 2006] [notice] Child 5552: Released the start mutex
    [Sun Apr 23 16:23:16 2006] [notice] Child 3620: Acquired the start mutex.
    [Sun Apr 23 16:23:16 2006] [notice] Child 3620: Starting 250 worker threads.
    [Sun Apr 23 16:23:17 2006] [notice] Child 5552: Waiting for 244 worker threads to exit.
    [Sun Apr 23 16:23:17 2006] [crit] [Sun Apr 23 16:23:17 2006] file C:\\asf-build\\build-2.0.55\\server\\mpm\\winnt\\child.c, line 1078, assertion "(rv >= 0) && (rv < threads_created)" failed
    [Sun Apr 23 16:23:58 2006] [error] [client 127.0.0.1] File does not exist: C:/localhost/www/favicon.ico, referer: http://localhost/cgi/test.cgi
    [Sun Apr 23 16:26:02 2006] [notice] Parent: Received shutdown signal -- Shutting down the server.
    [Sun Apr 23 16:26:02 2006] [notice] Child 3620: Exit event signaled. Child process is ending.
    [Sun Apr 23 16:26:03 2006] [notice] Child 3620: Released the start mutex
    [Sun Apr 23 16:26:04 2006] [notice] Child 3620: Waiting for 244 worker threads to exit.
    [Sun Apr 23 16:26:04 2006] [crit] [Sun Apr 23 16:26:04 2006] file C:\\asf-build\\build-2.0.55\\server\\mpm\\winnt\\child.c, line 1078, assertion "(rv >= 0) && (rv < threads_created)" failed
    [Sun Apr 23 16:26:12 2006] [notice] Parent: Child process exited successfully.
    [Sun Apr 23 16:26:21 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sun Apr 23 16:26:22 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sun Apr 23 16:26:22 2006] [notice] Parent: Created child process 936
    [Sun Apr 23 16:26:22 2006] [notice] Child 936: Child process is running
    [Sun Apr 23 16:26:22 2006] [notice] Child 936: Acquired the start mutex.
    [Sun Apr 23 16:26:22 2006] [notice] Child 936: Starting 250 worker threads.
    [Sun Apr 23 16:26:25 2006] [notice] Parent: Received restart signal -- Restarting the server.
    [Sun Apr 23 16:26:25 2006] [notice] Child 936: Exit event signaled. Child process is ending.
    [Sun Apr 23 16:26:25 2006] [notice] Apache/2.0.55 (Win32) configured -- resuming normal operations
    [Sun Apr 23 16:26:25 2006] [notice] Server built: Oct 9 2005 19:16:56
    [Sun Apr 23 16:26:25 2006] [notice] Parent: Created child process 2408
    [Sun Apr 23 16:26:26 2006] [notice] Child 2408: Child process is running
    [Sun Apr 23 16:26:26 2006] [notice] Child 2408: Acquired the start mutex.
    [Sun Apr 23 16:26:26 2006] [notice] Child 936: Released the start mutex
    [Sun Apr 23 16:26:26 2006] [notice] Child 2408: Starting 250 worker threads.
    [Sun Apr 23 16:26:27 2006] [notice] Child 936: Waiting for 250 worker threads to exit.
    [Sun Apr 23 16:26:27 2006] [notice] Child 936: All worker threads have exited.
    [Sun Apr 23 16:26:28 2006] [notice] Child 936: Child process is exiting
    вот так вот.
     
  2. A110ut

    A110ut Elder - Старейшина

    Joined:
    31 Dec 2005
    Messages:
    505
    Likes Received:
    263
    Reputations:
    92
  3. TANZWUT

    TANZWUT Крёстный отец :)

    Joined:
    22 Jun 2005
    Messages:
    1,474
    Likes Received:
    716
    Reputations:
    744
    лично у меня с 2.0.55 постоянно какойто трабл, пишет что сервис неустановлен.. Мой комп/управление/службы/ - Apache2 невидно... а версия чуть постарее работает наотлично.. попробуй с версиями поэкспереминтировать..
    Ща сижу на XP Media Center 2005 Pro [ENG] + MUI, все заплатки....
     
    _________________________
  4. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    странно я потсавил версию по ниже 2.0.54 но он все равно не хочет запускать скрипт,почему?Мжет из за перла?
     
  5. bxN5

    bxN5 Elder - Старейшина

    Joined:
    8 Jan 2006
    Messages:
    687
    Likes Received:
    138
    Reputations:
    32
    А попробуй етот скрипт в папку www положить и прописать localhost в браузере
     
  6. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    я так и сделал но у мя тока в localhost когда в броузере прописываю там тока папка logs и все =(.Блин не получаеться.
     
  7. bxN5

    bxN5 Elder - Старейшина

    Joined:
    8 Jan 2006
    Messages:
    687
    Likes Received:
    138
    Reputations:
    32
    а сам скрипт где лежит?
     
  8. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    сам скрипт лежит,до того как я перенес в папку www он лежал в папке cgi.Может я что то не допонимаю.
    И еще он иногда мне высвечивает сообщение типа ошибка отправлять или не отправлять ну стандартная,с чего он ошибку выдает странно.
     
  9. A110ut

    A110ut Elder - Старейшина

    Joined:
    31 Dec 2005
    Messages:
    505
    Likes Received:
    263
    Reputations:
    92
    Lord, мой тебе совет – в тупую повтори все что написано в мною выложенном мануале. Когда заработает, снеси под корень и поставь заново так как считаешь нужным. Главное не опускай руки ;) Все будет...
     
    3 people like this.
  10. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    самое интересное я в тупую повторил все как было снято в видео,и у мя не получилось,а у него все ок!В чем же я мог ошибиться?
     
  11. bxN5

    bxN5 Elder - Старейшина

    Joined:
    8 Jan 2006
    Messages:
    687
    Likes Received:
    138
    Reputations:
    32
    Установи денвер....
     
  12. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    когда вводишь в браузере localhost появляется папка у меня logs сверху кнопочка ну типа надпись (на ссылку похожа)Last modified я нажал на нее и у мя появилась test.cgi,странно.Хотя я ее перенс в папку www.Но когда я нажимаю на нее она меня выкидывает на страничку

    Forbidden

    You don't have permission to access /test.cgi on this server.
    Apache/2.0.54 (Win32) Server at localhost Port 80

    Че делать люди?
    Вы типа не имеете разрешения доступа к test.cgi на этом серваке.Ваще тупо.
     
    #12 Lord Nikon, 23 Apr 2006
    Last edited: 23 Apr 2006
  13. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    помогите люди
     
  14. bxN5

    bxN5 Elder - Старейшина

    Joined:
    8 Jan 2006
    Messages:
    687
    Likes Received:
    138
    Reputations:
    32
    Заходиш в локалхост (скрипт твой лежит там же) у тя папка logs а ты обновить нажми
     
  15. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    он не запускает скрипт.
     
  16. TANZWUT

    TANZWUT Крёстный отец :)

    Joined:
    22 Jun 2005
    Messages:
    1,474
    Likes Received:
    716
    Reputations:
    744
    логи ещё раз посмотри... в них трабл всегда видно....
    у меня всё поставлено на диск E:\, прикрепил свой конфиг апача...
    перл стоит в E:\usr
    в E:\Webserver\
    стоит apache и php
    в E:\mysql\ стоит мускуль...
    диск в NTFS...
    логи в E:\localhost\logs\
    далее:
    access.log
    error.log
     

    Attached Files:

    _________________________
    #16 TANZWUT, 23 Apr 2006
    Last edited: 23 Apr 2006
  17. TANZWUT

    TANZWUT Крёстный отец :)

    Joined:
    22 Jun 2005
    Messages:
    1,474
    Likes Received:
    716
    Reputations:
    744
    Lord Nikon, стукни в асю (см. аву), пока я в онлайн.. почирикаем... постараюсь помоч..
     
    _________________________
    1 person likes this.
  18. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    не вопрос,стукну.
    Кстати я тя еще ни разу не видел в онлайн.
     
  19. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    а ты попробуй терь в папке localhost создать папку cgi и там скрипт напиши
    #!/usr/bin/perl
    print "content-type: text/html\n\n";
    print "Rabotaet!\n";
    и попробуй запусти этот скрипт,в браузере набери localhost/cgi-bin/test.cgi
    (имя файла пусть будет test).
    Если получится........не знаю че сказать =).
     
  20. Lord Nikon

    Lord Nikon Banned

    Joined:
    12 Sep 2005
    Messages:
    224
    Likes Received:
    15
    Reputations:
    -3
    у мя терь новая проблема,она я думаю решиться если я переустановлю апач,но мне чет не хочеться его переустанавливать попробую так решить спросив у вас.Короче я вот ввел свой путь на журнал ошибок файл error.log ну вот я там путь написал ну типа
    ErrorLog C:/localhost/logs/error.log а потом когда пытаюсь запустить он мне пишет,
    could not open error log file C:/localhost/www/logs/error.log.
     
Thread Status:
Not open for further replies.