Skocz do zawartości

Keaman

Użytkownicy
  • Zawartość

    69
  • Rejestracja

  • Ostatnio

Posty napisane przez Keaman


  1. Coś mało propozycji, widzę że z WHMCS w pakiecie będzie ciężko, ale za możliwość oversellingu jestem wstanie przełknąć jego brak :)

     

    @ MZone Group

     

    Jaki koszt WHMCS bo na stronie nie mogę znaleźć, jest możliwość oversellingu?

     

    Jeśli mogę coś doradzić, to proponował bym aby linki z prezentacji oferty na stronie głównej, przenosiły do konkretnego pakietu w WHMCS, bo teraz troszkę trzeba się jej naszukać :)

     

    @ lolek :) Oferta ciekawa, jest możliwość oversellingu?


  2. Chodzi!

     

    Mieliście kiedyś tak,że dłubaliście cały dzień i kiedy wam się udało osiągnąć zamierzony cel, to cieszyliście się jak na wygraną w totka?

     

    Kiedyś człowiek cieszył się z czekolady, później z imprezy, a teraz jak apacha postawi na nogi ;)

     

    Serdecznie dziękuje za pomoc, szczególnie userowi guziec, sam bym nie dał sobie rady.

     

    Jeszcze raz wielkie dzięki!


  3. Heh, w takim za wczesna ma radość. Może zrobię porządek z tymi modułami bo za dużo mam tego i zapewne coś tu koliduje:

     

    etc/apache2/mods-enabled$ dir
    actions.load authz_default.load	autoindex.load env.load 	 fcgid.load 	php5.load 	rewrite.load
    alias.load authz_groupfile.load cgi.load 	fcgid.conf mime.load 	proxy.conf 	setenvif.load
    auth_basic.load authz_host.load 	dir.conf 	negotiation.load proxy_http.load status.load
    authn_file.load authz_user.load 	dir.load 	php5.conf 	proxy.load
    

     

    co wywalić, co zostawić?


  4. Jesteś pewien, że php działa jako moduł Apache? Bo po server-signature to jest więcej niż wątpliwe.

    Server: Apache/2.2.3 (Debian) mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25)

    Tu nic o załadowanym PHP nie ma...

    Może ispcp zmienił ci konfigurację bądź cgi, bądź suphp i nie może dostać się z jakichś powodów do wrappera?

     

    Dokładnie, powyciskał swoje moduły np. suphp zamienił z suexec.

     

    Doszedłem już do Internal Server Error więc jest progres.

     

    Log z apache/error.log:

     

    [Thu Oct 15 00:23:41 2009] [error] [client 77.64.162.199] SoftException in Application.cpp:296: UID of script "/var/www/katalog/index.php" is smaller than min_uid
    [Thu Oct 15 00:23:41 2009] [error] [client 77.64.162.199] Premature end of script headers: index.php
    [Thu Oct 15 00:26:45 2009] [error] [client 77.64.162.199] SoftException in Application.cpp:296: UID of script "/var/www/katalog/index.php" is smaller than min_uid
    [Thu Oct 15 00:26:45 2009] [error] [client 77.64.162.199] Premature end of script headers: index.php
    [Thu Oct 15 00:27:07 2009] [error] [client 77.64.162.199] SoftException in Application.cpp:296: UID of script "/var/www/katalog/index.php" is smaller than min_uid
    [Thu Oct 15 00:27:07 2009] [error] [client 77.64.162.199] Premature end of script headers: index.php
    [Thu Oct 15 00:31:16 2009] [error] [client 77.64.162.199] SoftException in Application.cpp:296: UID of script "/var/www/katalog/index.php" is smaller than min_uid
    [Thu Oct 15 00:31:16 2009] [error] [client 77.64.162.199] Premature end of script headers: index.php
    [Thu Oct 15 00:31:17 2009] [error] [client 77.64.162.199] SoftException in Application.cpp:296: UID of script "/var/www/katalog/index.php" is smaller than min_uid
    [Thu Oct 15 00:31:17 2009] [error] [client 77.64.162.199] Premature end of script headers: index.php
    [Thu Oct 15 00:37:00 2009] [error] [client 220.181.7.19] SoftException in Application.cpp:296: UID of script "/var/www/katalog/index.php" is smaller than min_uid
    [Thu Oct 15 00:37:00 2009] [error] [client 220.181.7.19] Premature end of script headers: index.php
    

     


  5. A na pewno sprawdzasz właściwego hosta wirtualnego? Jeszcze może być kwestia konfiguracji dostępu w httpd.conf w dyrektywach Limit albo Directory za pomocą Deny from All np, ale mało prawdopodobne.

     

    1. PHP działa tam jako moduł czy jako cgi (ew. fastcgi)?

    2. Sprawdź czy da się otworzyć plik nie-php - np. index.html

    3. Sprawdź czy nie masz tam pliku .htaccess

    4. wykonaj: tail -n 20 access.log w katalogu z logami i pokaż zawartość

    5. wykonaj: telnet www.nazwategoserwera.pl 80

    A potem wpisz:

    GET / HTTP:1.0

    A potem dwa razy spacja. Wklej wynik.

     

    1) Jako moduł

    2) index.html da się

    3) Mam, nic podejrzanego nie widzę, :

     

    <IfModule !mod_rewrite.c>

    # ugly ugly hack to detect missing mod_rewrite

    # RedirectMatch must be to an absolute destination, so forces 500 error...

    ErrorDocument 500 "Elgg error: Apache does not have mod_rewrite loaded. Please check your Apache setup."

    RedirectMatch 302 .* index.php

    </IfModule>

     

    <Files "htaccess_dist">

    order allow,deny

    deny from all

    </Files>

     

    # Don't listing directory

    Options -Indexes

     

    # Follow symbolic links

    Options +FollowSymLinks

     

    # Default handler

    DirectoryIndex index.php

     

    # Turn on expiry

    <IfModule mod_expires.c>

    ExpiresActive On

    ExpiresDefault "access plus 10 years"

    </IfModule>

     

    # php 4, apache 1.x

    <IfModule mod_php4.c>

    ErrorDocument 500 "Elgg error: Elgg does not support PHP 4."

    RedirectMatch 302 .* index.php

    </IfModule>

     

    # php 4, apache 2

    <IfModule sapi_apache2.c>

    ErrorDocument 500 "Elgg error: Elgg does not support PHP 4."

    RedirectMatch 302 .* index.php

    </IfModule>

     

    # php 5, apache 1 and 2

    <IfModule mod_php5.c>

     

    # default memory limit to 64Mb

     

    php_value memory_limit 64M

     

    # to make sure register global is off

     

    php_value register_globals 0

     

    # max post size to 60Mb

     

    php_value post_max_size 60388608

     

    # upload size limit to 60Mb

     

    php_value upload_max_filesize 60242880

     

    # hide errors, enable only if debug enabled

     

    php_value display_errors 0

     

    </IfModule>

    # Turn on mod_gzip if available

    <IfModule mod_gzip.c>

    mod_gzip_on yes

    mod_gzip_dechunk yes

    mod_gzip_keep_workfiles No

    mod_gzip_minimum_file_size 1000

    mod_gzip_maximum_file_size 1000000

    mod_gzip_maximum_inmem_size 1000000

    mod_gzip_item_include mime ^text/.*

    mod_gzip_item_include mime ^application/javascript$

    mod_gzip_item_include mime ^application/x-javascript$

    # Exclude old browsers and images since IE has trouble with this

    mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["

    mod_gzip_item_exclude mime ^image/.*

    </IfModule>

     

    ## Apache2 deflate support if available

    ##

    ## Important note: mod_headers is required for correct functioning across proxies.

    ##

    <IfModule mod_deflate.c>

    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript

    BrowserMatch ^Mozilla/4 gzip-only-text/html

    BrowserMatch ^Mozilla/4\.[0678] no-gzip

    BrowserMatch \bMSIE !no-gzip

     

    <IfModule mod_headers.c>

    Header append Vary User-Agent env=!dont-vary

    </IfModule>

     

    # The following is to disable compression for actions. The reason being is that these

    # may offer direct downloads which (since the initial request comes in as text/html and headers

    # get changed in the script) get double compressed and become unusable when downloaded by IE.

    SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary

    SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary

     

    </IfModule>

     

    # Configure ETags

    <FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf){:content:}quot;>

    FileETag MTime Size

    </FilesMatch>

     

    <IfModule mod_rewrite.c>

     

    RewriteEngine on

     

    # If Elgg is in a subdirectory on your site, you might need to add a RewriteBase line

    # containing the path from your site root to elgg's root. e.g. If your site is

    # http://example.com/ and Elgg is in http://example.com/sites/elgg/, you might need

    #

    #RewriteBase /sites/elgg/

    #

    # here, only without the # in front.

    #

    # If you're not running Elgg in a subdirectory on your site, but still getting lots

    # of 404 errors beyond the front page, you could instead try:

    #

    #RewriteBase /

     

    RewriteCond %{HTTP_HOST} ^www.ibochnia.pl

    RewriteRule ^(.*)$ http://ibochnia.pl/$1 [R=permanent,L]

     

    RewriteRule ^action\/([A-Za-z\_\-\/]+)$ engine/handlers/action_handler.php?action=$1

     

    RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)$ services/export/handler.php?view=$1&guid=$2

    RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/$ services/export/handler.php?view=$1&guid=$2

    RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/([A-Za-z]+)\/([A-Za-z0-9\_]+)\/$ services/export/handler.php?view=$1&guid=$2&type=$3&idname=$4

     

    RewriteRule ^\_css\/css\.css$ _css/css.php

     

    RewriteRule ^pg\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/pagehandler.php?handler=$1&page=$2

    RewriteRule ^pg\/([A-Za-z0-9\_\-]+)$ engine/handlers/pagehandler.php?handler=$1

     

    RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php

    RewriteRule mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php

     

    RewriteRule ^tag/(.+)/?$ engine/handlers/pagehandler.php?handler=search&page=$1

     

    </IfModule>

     

    4)

    123.125.66.90 - - [14/Oct/2009:21:22:43 +0200] "GET / HTTP/1.1" 403 325 "-" "Baiduspider+(+http://www.baidu.com/search/spider.htm)"
    220.181.7.60 - - [14/Oct/2009:21:24:56 +0200] "GET / HTTP/1.1" 403 325 "-" "Baiduspider+(+http://www.baidu.com/search/spider.htm)"
    77.45.162.199 - - [14/Oct/2009:21:26:34 +0200] "GET /index.php HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:26:38 +0200] "GET / HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:26:40 +0200] "GET / HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:26:45 +0200] "GET / HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:41:19 +0200] "GET / HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:41:20 +0200] "GET / HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:41:30 +0200] "GET / HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:45:14 +0200] "GET / HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:45:22 +0200] "GET /html.index HTTP/1.1" 404 322 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:45:31 +0200] "GET /index.html HTTP/1.1" 200 - "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:45:36 +0200] "GET /index.php HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:49:11 +0200] "GET /index.php HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:49:12 +0200] "GET /index.php HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:49:13 +0200] "GET /index.php HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:49:13 +0200] "GET /index.php HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:49:21 +0200] "GET /index.html HTTP/1.1" 200 - "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    77.45.162.199 - - [14/Oct/2009:21:49:26 +0200] "GET / HTTP/1.1" 403 325 "-" "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.14) Gecko/2009090216 Ubuntu/9.04 (jaunty) Firefox/3.0.14"
    66.249.71.214 - - [14/Oct/2009:21:50:23 +0200] "GET /pg/messageboard/alicja HTTP/1.1" 403 347 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

     

    5)

     

    Escape character is '^]'.
    GET / HTTP:1.0
    
    HTTP/1.1 403 Forbidden
    Date: Wed, 14 Oct 2009 20:06:02 GMT
    Server: Apache/2.2.3 (Debian) mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25)
    Content-Length: 325
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>403 Forbidden</title>
    </head><body>
    <h1>Forbidden</h1>
    <p>You don't have permission to access /index.php
    on this server.</p>
    <hr>
    <address>Apache/2.2.3 (Debian) mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) Server at nazwa Port 80</address>
    </body></html>
    Connection closed by foreign host.

     

    moduł php apache? iptable?


  6. Nie bardzo jest poprawna skoro wywala coś takiego.

    Sprawdź na co jest ustawione jako DirectoryIndex i czy ten plik jest w ścieżce wskazywanej przez DocumenRoot.

     

    Tam jest oki,

    ServerAdmin adres email
    ServerName nazwa domenyl
    DocumentRoot /var/www/katalog/
    <Directory />
    	Options FollowSymLinks
    	AllowOverride None
    </Directory>
    <Directory /var/www/katalog/>
    	Options Indexes FollowSymLinks MultiViews
    	AllowOverride All
    	Order allow,deny
    	allow from all
    	RewriteEngine on
    
    	# This directive allows us to have apache2's default start page
    	# in /apache2-default/, but still have / go to the right place
    	# RedirectMatch ^/$ /apache2-default/
    </Directory>

     

    Nie było za to sites-enabled, zrobiłem powiązanie z sites-available i teraz wyskakuje to

    Forbidden
    You don't have permission to access /index.php on this server.

     

    chmody katalogów są na 755,

     

     

    Logi z apache2/error.log które przedstawiłem post wyżej mówią coś komuś, bo mi nie bardzo;/

     

    chmod 0644 index.php

     

    Są, ale dalej to samo


  7. Dobra, postawiłem apache2 na nogi, no prawie bo podczas wchodzenia na stronę dostaje:

     

     

    </h1>

    <h1>Forbidden[/b]
    You don't have permission to access /index.php on this server.
    
    

     

    logi z apache2/error.log

     

    [Wed Oct 14 17:56:12 2009] [notice] caught SIGTERM, shutting down
    [Wed Oct 14 17:56:16 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Wed Oct 14 17:56:17 2009] [notice] Apache/2.2.3 (Debian) mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) configured -- resuming normal$
    [Wed Oct 14 18:26:54 2009] [error] [client 62.55.104.207] File does not exist: /var/www/robots.txt
    [Wed Oct 14 18:49:22 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
    [Wed Oct 14 18:49:24 2009] [notice] Apache/2.2.3 (Debian) mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) configured -- resuming normal$
    

     

    Będę bardzo wdzięczny za wszelkie wskazówki.


  8. Zainstalowałem apache2-mpm-preforki i zużycie ramu wróciło do normy, apache i MySQL się uruchamiają i zostaje jeszce 170mb ramu. Tylko, że jak próbuje wejść na stronę to:

     

    >

    Not Found
    
    The requested URL / was not found on this server. was not found on this server.
    
    

     

    Konfiguracja apache2 w sites-available jest poprawna, sprawdziłem, jakieś pomysły ?


  9. No wiec sprawa wygląda tak, apache2 zużywa prawie 250mb:

     

    top:

     

     PID USER 	PR NI VIRT RES SHR S %CPU %MEM	TIME+ COMMAND 	
    1 root 	15 0 1948 664 572 S 0.0 0.2 0:00.13 init 	
    5645 tomasz	15 0 2232 1092 856 T 0.0 0.3 0:00.00 top 	
    13517 root 	18 0 11436 3304 1928 S 0.0 0.8 0:00.00 apache2 	
    13518 www-data 25 0 10876 2164 792 S 0.0 0.6 0:00.00 apache2 	
    13520 www-data 15 0 11192 2028 672 S 0.0 0.5 0:00.00 apache2 	
    13521 www-data 25 0 235m 4132 2088 S 0.0 1.1 0:00.00 apache2 	
    13980 tomasz	15 0 2232 1108 860 R 0.0 0.3 0:00.27 top 	
    24000 daemon	18 0 1688 372 280 S 0.0 0.1 0:00.00 portmap 	
    24130 root 	15 0 1628 560 456 S 0.0 0.1 0:00.00 syslogd 	
    24349 polw 	18 0 9792 7688 1188 S 0.0 2.0 0:00.00 policyd-weight 	
    24350 polw 	18 0 9792 7360 856 S 0.0 1.9 0:00.00 policyd-weight 	
    24353 postgrey 19 0 10644 7864 2388 S 0.0 2.0 0:00.00 postgrey 	
    24515 clamav	15 0 5492 700 404 S 0.0 0.2 0:00.00 freshclam 	
    24523 root 	18 0 1752 404 328 S 0.0 0.1 0:00.00 courierlogger 	
    25601 root 	18 0 1952 628 504 S 0.0 0.2 0:00.00 authdaemond 	
    25623 root 	18 0 1952 284 160 S 0.0 0.1 0:00.00 authdaemond 	
    25625 root 	25 0 1752 328 260 S 0.0 0.1 0:00.00 courierlogger 	
    25627 root 	18 0 1952 284 160 S 0.0 0.1 0:00.00 authdaemond 	
    25628 root 	18 0 1952 284 160 S 0.0 0.1 0:00.00 authdaemond 	
    25629 root 	18 0 1952 284 160 S 0.0 0.1 0:00.00 authdaemond 	
    25633 root 	18 0 1952 284 160 S 0.0 0.1 0:00.00 authdaemond 	
    25634 root 	25 0 1856 544 460 S 0.0 0.1 0:00.00 couriertcpd 	
    25654 root 	25 0 1856 508 424 S 0.0 0.1 0:00.00 couriertcpd 	
    25660 root 	25 0 1620 324 260 S 0.0 0.1 0:00.00 courierlogger 	
    25668 root 	18 0 1752 572 480 S 0.0 0.1 0:00.00 inetd 	
    25870 root 	15 0 4816 1624 1308 S 0.0 0.4 0:00.00 master 	
    25876 postfix 18 0 4824 1636 1320 S 0.0 0.4 0:00.00 pickup 	
    25877 postfix 18 0 4860 1704 1384 S 0.0 0.4 0:00.00 qmgr 	
    25898 root 	15 0 4932 1096 760 S 0.0 0.3 0:00.00 sshd 	
    25953 root 	21 0 3020 612 452 S 0.0 0.2 0:00.00 famd 	
    27834 daemon	23 0 1832 424 300 S 0.0 0.1 0:00.00 atd 	
    27849 root 	17 0 2196 892 708 S 0.0 0.2 0:00.00 cron 	
    28213 root 	16 0 7704 2316 1884 S 0.0 0.6 0:00.02 sshd 	
    28311 tomasz	15 0 7864 1604 1132 R 0.0 0.4 0:00.05 sshd 	
    28312 tomasz	15 0 5732 3020 1408 S 0.0 0.8 0:00.13 bash 	
    28477 tomasz	15 0 2232 1092 856 T 0.0 0.3 0:00.00 top 	
    30230 tomasz	15 0 2232 1100 856 T 0.0 0.3 0:00.01 top 	
    32518 tomasz	15 0 2232 1088 856 T 0.0 0.3 0:00.00 top 

     

    A oto pliki edytowane przez ISP-CP, sporo tego więc może jakieś propozycje co do zmian?? :

     

    sudo hg status

    ? apache2/mods-available/cband.conf
    ? apache2/mods-available/cband.load
    ? apache2/mods-available/fastcgi.conf
    ? apache2/mods-available/fastcgi.load
    ? apache2/mods-available/fcgid.conf
    ? apache2/mods-available/fcgid.load
    ? apache2/mods-available/fcgid_ispcp.conf
    ? apache2/mods-available/fcgid_ispcp.load
    ? apache2/mods-available/proxy.conf.orig
    ? apache2/sites-available/01_awstats.conf
    ? bind/db.0
    ? bind/db.127
    ? bind/db.255
    ? bind/db.empty
    ? bind/db.local
    ? bind/db.root
    ? bind/named.conf
    ? bind/named.conf.local
    ? bind/named.conf.options
    ? bind/rndc.key
    ? bind/zones.rfc1918
    ? chkrootkit.conf
    ? courier/authdaemonrc
    ? courier/authmodulelist
    ? courier/imapd
    ? courier/maildrop
    ? courier/pop3d
    ? courier/userdb
    ? courier/userdb.dat
    ? courier/userdbshadow.dat
    ? cron.daily/chkrootkit
    ? cron.daily/rkhunter
    ? cron.weekly/rkhunter
    ? default/bind9
    ? default/courier
    ? default/portmap
    ? default/postgrey
    ? default/rkhunter
    ? default/saslauthd
    ? dictionaries-common/ispell-default
    ? emacs/site-start.d/50dictionaries-common.el
    ? fam.conf
    ? group-.orig
    ? group.orig
    ? gshadow-.orig
    ? gshadow.orig
    ? hosts.bkp
    ? hosts.orig
    ? init.d/bind9
    ? init.d/courier-authdaemon
    ? init.d/courier-imap
    ? init.d/courier-pop
    ? init.d/fam
    ? init.d/policyd-weight
    ? init.d/portmap
    ? init.d/postgrey
    ? init.d/saslauthd
    ? ispcp/apache/00_master.conf
    ? ispcp/apache/01_awstats.conf
    ? ispcp/apache/backup/empty-file
    ? ispcp/apache/backup/fastcgi_ispcp.conf.ispcp
    ? ispcp/apache/backup/fcgid_ispcp.conf.ispcp
    ? ispcp/apache/backup/proxy.conf
    ? ispcp/apache/httpd.conf
    ? ispcp/apache/parts/als_awstats_b.tpl
    ? ispcp/apache/parts/als_awstats_dynamic_entry.tpl
    ? ispcp/apache/parts/als_awstats_e.tpl
    ? ispcp/apache/parts/als_awstats_static_entry.tpl
    ? ispcp/apache/parts/als_b.tpl
    ? ispcp/apache/parts/als_cgi_b.tpl
    ? ispcp/apache/parts/als_cgi_e.tpl
    ? ispcp/apache/parts/als_cgi_entry.tpl
    ? ispcp/apache/parts/als_e.tpl
    ? ispcp/apache/parts/als_entry.tpl
    ? ispcp/apache/parts/als_php2_b.tpl
    ? ispcp/apache/parts/als_php2_e.tpl
    ? ispcp/apache/parts/als_php2_entry.tpl
    ? ispcp/apache/parts/als_php_b.tpl
    ? ispcp/apache/parts/als_php_e.tpl
    ? ispcp/apache/parts/als_php_entry.tpl
    ? ispcp/apache/parts/als_rdr_b.tpl
    ? ispcp/apache/parts/als_rdr_e.tpl
    ? ispcp/apache/parts/als_rdr_entry.tpl
    ? ispcp/apache/parts/cfg_b.tpl
    ? ispcp/apache/parts/cfg_e.tpl
    ? ispcp/apache/parts/custom.conf.tpl
    ? ispcp/apache/parts/dg_b.tpl
    ? ispcp/apache/parts/dg_e.tpl
    ? ispcp/apache/parts/dg_entry.tpl
    ? ispcp/apache/parts/dmn_awstats_b.tpl
    ? ispcp/apache/parts/dmn_awstats_dynamic_entry.tpl
    ? ispcp/apache/parts/dmn_awstats_e.tpl
    ? ispcp/apache/parts/dmn_awstats_static_entry.tpl
    ? ispcp/apache/parts/dmn_b.tpl
    ? ispcp/apache/parts/dmn_cgi_b.tpl
    ? ispcp/apache/parts/dmn_cgi_e.tpl
    ? ispcp/apache/parts/dmn_cgi_entry.tpl
    ? ispcp/apache/parts/dmn_e.tpl
    ? ispcp/apache/parts/dmn_entry.tpl
    ? ispcp/apache/parts/dmn_php2_b.tpl
    ? ispcp/apache/parts/dmn_php2_e.tpl
    ? ispcp/apache/parts/dmn_php2_entry.tpl
    ? ispcp/apache/parts/dmn_php_b.tpl
    ? ispcp/apache/parts/dmn_php_e.tpl
    ? ispcp/apache/parts/dmn_php_entry.tpl
    ? ispcp/apache/parts/ispcp_base.tpl
    ? ispcp/apache/parts/sub_b.tpl
    ? ispcp/apache/parts/sub_cgi_b.tpl
    ? ispcp/apache/parts/sub_cgi_e.tpl
    ? ispcp/apache/parts/sub_cgi_entry.tpl
    ? ispcp/apache/parts/sub_e.tpl
    ? ispcp/apache/parts/sub_entry.tpl
    ? ispcp/apache/parts/sub_php2_b.tpl
    ? ispcp/apache/parts/sub_php2_e.tpl
    ? ispcp/apache/parts/sub_php2_entry.tpl
    ? ispcp/apache/parts/sub_php_b.tpl
    ? ispcp/apache/parts/sub_php_e.tpl
    ? ispcp/apache/parts/sub_php_entry.tpl
    ? ispcp/apache/parts/vh_b.tpl
    ? ispcp/apache/parts/vh_e.tpl
    ? ispcp/apache/parts/vh_entry.tpl
    ? ispcp/apache/working/fastcgi_ispcp.conf
    ? ispcp/apache/working/fcgid_ispcp.conf
    ? ispcp/apache/working/ispcp.conf
    ? ispcp/awstats/awstats.ispcp_tpl.conf
    ? ispcp/bind/backup/empty-file
    ? ispcp/bind/backup/named.conf.1255457775
    ? ispcp/bind/backup/named.conf.1255458277
    ? ispcp/bind/backup/named.conf.1255459443
    ? ispcp/bind/named.conf
    ? ispcp/bind/parts/cfg_dta_b.tpl
    ? ispcp/bind/parts/cfg_dta_e.tpl
    ? ispcp/bind/parts/cfg_entry.tpl
    ? ispcp/bind/parts/cfg_entry_b.tpl
    ? ispcp/bind/parts/cfg_entry_e.tpl
    ? ispcp/bind/parts/db_dns2_b.tpl
    ? ispcp/bind/parts/db_dns2_e.tpl
    ? ispcp/bind/parts/db_e.tpl
    ? ispcp/bind/parts/db_master_e.tpl
    ? ispcp/bind/parts/db_sub_entry.tpl
    ? ispcp/bind/parts/db_sub_entry_b.tpl
    ? ispcp/bind/parts/db_sub_entry_e.tpl
    ? ispcp/bind/parts/db_time_b.tpl
    ? ispcp/bind/parts/db_time_e.tpl
    ? ispcp/bind/working/admin.ibochnia.pl.db
    ? ispcp/bind/working/named.conf
    ? ispcp/courier/backup/authdaemonrc.system
    ? ispcp/courier/backup/empty-file
    ? ispcp/courier/backup/userdb.system
    ? ispcp/courier/userdb
    ? ispcp/courier/working/userdb
    ? ispcp/cron.d/backup/empty-file
    ? ispcp/cron.d/backup/ispcp
    ? ispcp/cron.d/ispcp
    ? ispcp/cron.d/parts/als_awstats_b.tpl
    ? ispcp/cron.d/parts/als_awstats_e.tpl
    ? ispcp/cron.d/parts/als_awstats_entry.tpl
    ? ispcp/cron.d/parts/dmn_awstats_b.tpl
    ? ispcp/cron.d/parts/dmn_awstats_e.tpl
    ? ispcp/cron.d/parts/dmn_awstats_entry.tpl
    ? ispcp/cron.d/parts/dmn_bk_b.tpl
    ? ispcp/cron.d/parts/dmn_bk_e.tpl
    ? ispcp/cron.d/parts/dmn_bk_entry.tpl
    ? ispcp/cron.d/parts/dmn_custom_b.tpl
    ? ispcp/cron.d/parts/dmn_custom_e.tpl
    ? ispcp/cron.d/parts/dmn_custom_entry.tpl
    ? ispcp/cron.d/parts/dt_b.tpl
    ? ispcp/cron.d/parts/dt_e.tpl
    ? ispcp/cron.d/working/ispcp
    ? ispcp/database/database.sql
    ? ispcp/database/languages.sql
    ? ispcp/fcgi/backup/empty-file
    ? ispcp/fcgi/backup/php5-fcgi-starter.ispcp
    ? ispcp/fcgi/parts/master/php4-fcgi-starter.tpl
    ? ispcp/fcgi/parts/master/php4/php.ini
    ? ispcp/fcgi/parts/master/php5-fcgi-starter.tpl
    ? ispcp/fcgi/parts/master/php5/php.ini
    ? ispcp/fcgi/parts/php4-fcgi-starter.tpl
    ? ispcp/fcgi/parts/php4/php.ini
    ? ispcp/fcgi/parts/php5-fcgi-starter.tpl
    ? ispcp/fcgi/parts/php5/php.ini
    ? ispcp/fcgi/working/empty-file
    ? ispcp/ispcp.conf
    ? ispcp/postfix/backup/empty-file
    ? ispcp/postfix/ispcp/aliases
    ? ispcp/postfix/ispcp/domains
    ? ispcp/postfix/ispcp/mailboxes
    ? ispcp/postfix/ispcp/sender-access
    ? ispcp/postfix/ispcp/transport
    ? ispcp/postfix/main.cf
    ? ispcp/postfix/master.cf
    ? ispcp/postfix/parts/empty-file
    ? ispcp/postfix/working/aliases
    ? ispcp/postfix/working/domains
    ? ispcp/postfix/working/mailboxes
    ? ispcp/postfix/working/sender-access
    ? ispcp/postfix/working/transport
    ? ispcp/proftpd/backup/empty-file
    ? ispcp/proftpd/parts/proftpd.conf.tpl
    ? ispcp/proftpd/proftpd.conf
    ? ispcp/proftpd/working/empty-file
    ? logcheck/ignore.d.server/courier-imap
    ? logcheck/ignore.d.server/courier-pop
    ? logcheck/ignore.d.server/postgrey
    ? logcheck/violations.ignore.d/courier-imap
    ? logcheck/violations.ignore.d/courier-pop
    ? logcheck/violations.ignore.d/postgrey
    ? logrotate.d/apache2.orig
    ? logrotate.d/ispcp
    ? maradns/mararc.orig
    ? openoffice/dictionary.lst
    ? openoffice/dictionary.lst.old
    ? pam.d/imap
    ? pam.d/pop3
    ? passwd-.orig
    ? passwd.orig
    ? php5/conf.d/imap.ini
    ? php5/conf.d/mcrypt.ini
    ? php5/conf.d/mhash.ini
    ? postgrey/whitelist_clients
    ? postgrey/whitelist_recipients
    ? proftpd/ispcp/root_domain.conf
    ? proftpd/proftpd.conf.orig
    ? rkhunter.conf
    ? sasldb2
    ? shadow-.orig
    ? shadow.orig
    


  10. Tak, teraz to wiem, ogólnie wszystko chodziło oki, dopóki nie zachciałem sobie ułatwiać życia instalując ISPCP aby zarządzać wszystkim z poziomu przeglądarki. Deinstalacja ISPCP nie pomogła, jak widać wcina za dużo ramu choć wcześniej wszystko było oki. Jaka może być tego przyczyna? Reinstalacja to ostateczność, bo na tym VPSie dzałają a właściwie działały mi serwisy, co prawda mam kopie baz danych, jednak wolał bym uniknąć reinstalacji.


  11. Edit.

     

    Sorki za post pod postem, z jakiś nie znanych dla mnie powodów nie mogłem edytować wcześniejszego posta.

     

    Udało mi się odpalić apache przy wyłączonym mysql, o ale:

    free -m
    	total 	used 	free 	shared	buffers 	cached
    Mem: 	384 	305 	78 	0 	0 	0
    -/+ buffers/cache: 	305 	78
    Swap: 	0 	0 	0
    

     

     

    Co do sudo apt-get install apache2-mpm-prefork to:

    sudo apt-get install apache2-mpm-prefork
    Reading package lists... Done
    Building dependency tree... Done
    The following packages will be REMOVED:
    apache2-mpm-worker
    The following NEW packages will be installed:
    apache2-mpm-prefork
    0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
    Need to get 0B/420kB of archives.
    After unpacking 8192B disk space will be freed.
    Do you want to continue [Y/n]? y
    dpkg: apache2-mpm-worker: dependency problems, but removing anyway as you request:
    apache2 depends on apache2-mpm-worker (>= 2.2.3-4+etch10) | apache2-mpm-prefork (>= 2.2.3-4+etch10) | apache2-mpm-event (>= 2.2.3-4+etch10); however:
    Package apache2-mpm-worker is to be removed.
    Package apache2-mpm-prefork is not installed.
    Package apache2-mpm-event is not installed.
    (Reading database ... 33078 files and directories currently installed.)
    Removing apache2-mpm-worker ...
    dpkg: error processing apache2-mpm-worker (--remove):
    [b]fork failed: Cannot allocate memory[/b]
    dpkg: error while cleaning up:
    fork failed: Cannot allocate memory
    Errors were encountered while processing:
    apache2-mpm-worker
    Processing was halted because there were too many errors.
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    


  12. przy mysql stop:

    free -m
    	total 	used 	free 	shared	buffers 	cached
    Mem: 	384 	67 	316 	0 	0 	0
    -/+ buffers/cache: 	67 	316
    Swap: 	0 	0 	0
    

     

    przy włączonym mysql:

     

     	total 	used 	free 	shared	buffers 	cached
    Mem: 	384 	187 	196 	0 	0 	0
    -/+ buffers/cache: 	187 	196
    Swap: 	0 	0 	0
    

     

     

    Przy wyłączonym mysql przy restarcie apache:

     

    sudo /etc/init.d/apache2 restart
    Forcing reload of web server (apache2)...httpd (pid 30566?) not running
    .
    

     

    Dodam jeszcze że:

     

    sudo /etc/init.d/apache2 start
    Starting web server (apache2)....
    
    sudo /etc/init.d/apache2 restart
    Forcing reload of web server (apache2)...httpd (pid 3182?) not running
    .
    
    

     

    ???


  13. Dziękuje, za trafną odpowiedz.

     

    Odinstalowałem ispcp jednak dalej to samo się dzieje i to samo w logach. Pomyślałem, ze może bind się nie odinstalował razem z ispcp i dalej pamięć wcina ale:

     

    sudo apt-get --purge remove bind

    Reading package lists... Done

    Building dependency tree... Done

    Package bind is not installed, so not removed

    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

     

    hmmm...??

     

    Edit.

     

    Może to się przyda;

     

    ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS
     272 /usr/lib/courier/courier-authlib/authdaemond
     272 /usr/lib/courier/courier-authlib/authdaemond
     272 /usr/lib/courier/courier-authlib/authdaemond
     272 /usr/lib/courier/courier-authlib/authdaemond
     272 /usr/lib/courier/courier-authlib/authdaemond
     324 /usr/sbin/courierlogger courierpop3login
     328 /usr/sbin/courierlogger -pid=/var/run/courier/imapd.pid -start -name=imapd /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=20 -
     376 /sbin/portmap
     404 /usr/sbin/courierlogger -pid=/var/run/courier/authdaemon/pid -start /usr/lib/courier/courier-authlib/authdaemond
     420 /usr/sbin/atd
     512 logger -p daemon.err -t mysqld_safe -i -t mysqld
     512 /usr/sbin/couriertcpd -pid=/var/run/courier/pop3d.pid -stderrlogger=/usr/sbin/courierlogger -maxprocs=40 -maxperip=4 -nodnslookup -noid
     548 /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=20 -nodnslookup -noidentlookup 143 /usr/lib/courier/courier/imaplogin /usr/bin/
     560 /sbin/syslogd
     572 sort -b -k1,1n
     576 /usr/sbin/inetd
     612 /usr/sbin/famd -T 0
     628 /usr/lib/courier/courier-authlib/authdaemond
     660 pr -TW141
     668 init [2]	  
     704 /usr/bin/freshclam -d --quiet
     804 ps -e -orss=,args=
     896 /usr/sbin/cron
    1092 /usr/sbin/sshd
    1332 /bin/sh /usr/bin/mysqld_safe
    1568 sshd: tomasz@pts/0
    1628 /usr/lib/postfix/master
    1632 pickup -l -t fifo -u -c
    1704 qmgr -l -t fifo -u
    2316 sshd: tomasz [priv]
    3044 -bash
    7360 policyd-weight (cache)
    7688 policyd-weight (master)
    7880 /usr/sbin/postgrey --pidfile=/var/run/postgrey.pid --daemonize --inet=127.0.0.1:60000 
    17716 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --p
    28540 /usr/sbin/clamd

     

    To oczywiście wyżeracze pamięci na teraz, przy próbie

    sudo /etc/init.d/apache2 restart

    pamięci rzeczywiście zaczyna brakować, sprawdziłem.

     

    Co to może być?


  14. Witam,

    ostatnio zachciało mi się zainstalować jakiś panel do zarządzania serwerem, więc zainstalowałem ispcp. Jednak po instalacji wszytko mi padło, oto co dostaje przy próbuje restartu apache:

     

     sudo /etc/init.d/apache2 restart 
    Forcing reload of web server (apache2)...httpd (pid 3281?) not running

     

    Logi z apahce/error.log:

     

    Tue Oct 13 19:20:24 2009] [alert] No active workers found... Apache is exiting! 
    [Tue Oct 13 19:23:31 2009] [notice] FastCGI: process manager initialized (pid 20455) 
    [Tue Oct 13 19:23:31 2009] [notice] Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) configured -- resuming nor$ 
    [Tue Oct 13 19:23:32 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread 
    [Tue Oct 13 19:23:33 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread 
    [Tue Oct 13 19:23:34 2009] [alert] No active workers found... Apache is exiting! 
    [Tue Oct 13 19:23:45 2009] [notice] FastCGI: process manager initialized (pid 21653) 
    [Tue Oct 13 19:23:45 2009] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run? 
    [Tue Oct 13 19:23:45 2009] [notice] Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) configured -- resuming nor$ 
    [Tue Oct 13 19:23:46 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread 
    [Tue Oct 13 19:23:46 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread 
    [Tue Oct 13 19:23:48 2009] [alert] No active workers found... Apache is exiting! 
    [Tue Oct 13 19:32:52 2009] [notice] FastCGI: process manager initialized (pid 7187) 
    [Tue Oct 13 19:32:52 2009] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run? 
    [Tue Oct 13 19:32:52 2009] [notice] Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) configured -- resuming nor$ 
    [Tue Oct 13 19:32:53 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread 
    [Tue Oct 13 19:32:54 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread 
    [Tue Oct 13 19:32:55 2009] [alert] No active workers found... Apache is exiting! 
    [Tue Oct 13 19:42:27 2009] [notice] FastCGI: process manager initialized (pid 30041) 
    [Tue Oct 13 19:42:27 2009] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run? 
    [Tue Oct 13 19:42:27 2009] [notice] Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) configured -- resuming nor$ 
    [Tue Oct 13 19:42:28 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread 
    [Tue Oct 13 19:42:28 2009] [alert] (12)Cannot allocate memory: apr_thread_create: unable to create worker thread 
    [Tue Oct 13 19:42:30 2009] [alert] No active workers found... Apache is exiting!

     

    System to Debian 4

     

    Jakieś sugestie?

×