-
Zawartość
57 -
Rejestracja
-
Ostatnio
Posty napisane przez lexom
-
-
Witam.
Proszę o przepisanie regułki z htaccess do nginx
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Będę bardzo wdzięczny za pomoc.
-
rozumiem ze w innych failcnt wynosił 0 ?
Tak w innych jest "zero"
Po błędzie apt-get zwiększany jest licznik privvmpages
PS. Dzięki za wskazówki jak zwolnić zasoby, dzięki tym dwóm zmianom mam:
total used free shared buffers cached Mem: 393216 94780 298436 0 0 0 -/+ buffers/cache: 94780 298436 Swap: 0 0 0
Można jeszcze jakoś obciąć wykorzystanie pamięci?
-
Wyniki polecenia top:
1 root 15 0 1984 696 596 S 0 0.2 0:07.77 init 1850 pawel 15 0 8168 1624 1132 S 0 0.4 0:00.51 sshd 1858 pawel 15 0 6048 3156 1348 S 0 0.8 0:00.43 bash 3173 root 16 0 3932 1232 976 S 0 0.3 0:00.00 su 3705 dovecot 18 0 3516 1600 1344 S 0 0.4 0:00.08 imap-login 3762 dovecot 18 0 3516 1600 1344 S 0 0.4 0:00.08 imap-login 3765 dovecot 18 0 3516 1600 1344 S 0 0.4 0:00.07 imap-login 11621 postfix 15 0 5868 2640 1900 S 0 0.7 0:00.01 tlsmgr 13451 root 18 0 4400 1748 1328 S 0 0.4 0:00.05 bash 14143 daemon 18 0 1768 508 404 S 0 0.1 0:00.00 portmap 14333 root 18 0 1696 632 508 S 0 0.2 0:00.47 syslogd 15390 root 20 0 1648 392 320 S 0 0.1 0:00.00 klogd 15400 messageb 24 0 2484 672 484 S 0 0.2 0:00.00 dbus-daemon 15414 bind 23 0 122m 14m 2492 S 0 3.8 0:00.12 named 15433 root 15 0 5276 1028 676 S 0 0.3 0:00.32 sshd 15518 root 20 0 2700 1308 1080 S 0 0.3 0:00.00 mysqld_safe 15582 mysql 16 0 140m 16m 4784 S 0 4.3 0:04.97 mysqld 15583 root 18 0 1632 536 464 S 0 0.1 0:00.00 logger 15717 root 18 0 4568 808 292 S 0 0.2 0:00.00 nginx 15718 www-data 15 0 5132 1628 804 S 0 0.4 0:01.87 nginx 15740 root 24 0 1824 604 512 S 0 0.2 0:00.00 inetd 15893 root 18 0 5488 1788 1448 S 0 0.5 0:02.95 master 15895 postfix 15 0 5544 1896 1540 S 0 0.5 0:00.39 qmgr 15934 root 18 0 8240 748 432 S 0 0.2 0:00.00 saslauthd 15938 root 18 0 8240 472 156 S 0 0.1 0:00.00 saslauthd 15939 root 18 0 8240 356 40 S 0 0.1 0:00.00 saslauthd 15941 root 18 0 8240 356 40 S 0 0.1 0:00.00 saslauthd 15942 root 18 0 8240 356 40 S 0 0.1 0:00.00 saslauthd 15946 root 24 0 3272 564 392 S 0 0.1 0:00.00 famd 15974 root 18 0 2004 648 488 S 0 0.2 0:00.75 dovecot 15975 root 18 0 9428 2392 1840 S 0 0.6 0:00.14 dovecot-auth 15977 root 18 0 9428 2304 1756 S 0 0.6 0:00.12 dovecot-auth 15990 proftpd 18 0 5260 1348 588 S 0 0.3 0:04.67 proftpd 15995 daemon 18 0 1916 424 304 S 0 0.1 0:00.10 atd 16016 root 15 0 3576 980 788 S 0 0.2 0:00.99 cron 16042 root 18 0 120 28 12 S 0 0.0 0:21.47 runsvdir 16043 root 18 0 108 24 16 S 0 0.0 0:00.00 runsv 16044 root 18 0 124 44 24 S 0 0.0 0:00.00 svlogd 16045 www-data 25 0 33716 10m 7180 S 0 2.7 0:00.08 php-cgi 16054 www-data 18 0 36812 8748 3368 S 0 2.2 0:01.56 php-cgi 16055 www-data 15 0 35832 7808 3472 S 0 2.0 0:01.90 php-cgi 16056 www-data 15 0 36888 9240 3844 S 0 2.3 0:01.13 php-cgi 16067 www-data 15 0 35756 7236 2912 S 0 1.8 0:01.67 php-cgi 16152 dovecot 18 0 3512 1600 1340 S 0 0.4 0:00.21 pop3-login 16153 dovecot 18 0 3512 1600 1340 S 0 0.4 0:00.22 pop3-login 16154 dovecot 18 0 3512 1596 1340 S 0 0.4 0:00.20 pop3-login 21939 postfix 15 0 5500 1724 1396 S 0 0.4 0:00.00 pickup 32200 root 18 0 2260 1100 880 R 0 0.3 0:00.02 top 32679 root 15 0 8020 2616 2152 S 0 0.7 0:00.12 sshd
Z tego co widzę to chyba jest coś nie tak z php ?
-
Rezultat polecenia free:
total used free shared buffers cached Mem: 393216 309912 83304 0 0 0 -/+ buffers/cache: 309912 83304 Swap: 0 0 0
-
Niestety fdisk zwraca cos takiego:
cannot open /proc/partitions
-
Sprawdziłem ten pliczek i wygląda on mniej więcej tak:
kmemsize 6235252 10385137 2147483646 2147483646 0 lockedpages 0 32 32 32 1181 privvmpages 77447 98421 98304 98304 119 dgramrcvbuf 0 131704 132096 132096 36
Czego dokładnie dotyczy ten wpis lockedpages ?
-
Witam.
Od jakiegoś czasu mam problem z instalowaniem/reinstalacją pakietów poprzez apt-get.
Przy próbie zainstalowania/reinstalacji otrzymuję błąd jak poniżej:
Usuwanie squirrelmail ... dpkg: nienaprawialny błąd krytyczny, przerywanie: nie można wykonać funkcji "fork": Nie można przydzielić pamięci E: Sub-process /usr/bin/dpkg returned an error code (2)
Z czego może on wynikać?
-
Niestety jakoś nie bardzo umiem sobie z tym poradzić.
postconf -a cyrus dovecot
w pliku /etc/dovecot/dovecot.conf mam:
auth default { mechanisms = plain login passdb pam { } userdb passwd { } socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } }
Do pliku /etc/postfix/main.cf dodałem linijkę:
smtpd_sasl_path = smtpd
Teraz jego część wygląda tak:
smtpd_sasl_path = smtpd smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = mydomain.pl smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination smtpd_sasl_security_options = noanonymous
Test konfiguracji:
testsaslauthd -u dominik -p pass 0: OK "Success."
testsaslauthd -u dominik -p pass -r mail.mydomain.pl 0: OK "Success."
Wszystko wygląda OK.
Niestety przy próbie wysłania maila z klienta na komputerze w logach otrzymuję następujące błedy:
May 29 23:07:43 postfix/smtpd[7328]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied May 29 23:07:43 postfix/smtpd[7328]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied May 29 23:07:43 postfix/smtpd[7328]: warning: SASL authentication failure: no secret in database May 29 23:07:43 postfix/smtpd[7328]: warning: SASL CRAM-MD5 authentication failed: authentication failure May 29 23:07:45 postfix/smtpd[7328]: disconnect from ...
ls -l /etc/sasldb2 -rw-rw---- 1 root sasl 12288 maj 29 10:04 /etc/sasldb2
Co jest źle?
-
Odkomentować tylko ta linijkę którą podał Miłosz czy poniższe też ?
Gdy odkomentowałem tylko tą linijkę to w logach mam:
May 28 00:56:02 gucwa postfix/smtpd[7269]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied May 28 00:56:02 gucwa postfix/smtpd[7269]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: Permission denied May 28 00:56:02 gucwa postfix/smtpd[7269]: warning: SASL authentication failure: no secret in database May 28 00:56:02 gucwa postfix/smtpd[7269]: warning: SASL CRAM-MD5 authentication failed: authentication failure
-
ad1. Tak, te pliki istnieją. Ja ich nie tworzyłem,
ad2. Linijka dodana, nic to nie zmieniło.
ad3. Patrzyłem na ten plik ale jakoś za wiele to on mi nie mówi. Poniżej tenże plik:
# # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd #submission inet n - - - - smtpd # -o smtpd_enforce_tls=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject #smtps inet n - - - - smtpd # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject #628 inet n - - - - qmqpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - - 300 1 oqmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - - - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - - - - smtp -o fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - - - - showq error unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache # # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} # # See the Postfix UUCP_README file for configuration details. # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} retry unix - - - - - error
-
Próbowałem na innych ustawieniach i nie mogę wysłać maila:
Moje ustawienia z /etc/postfix/main.cf
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no append_dot_mydomain = no readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = domain.pl, domain, localhost.localdomain, localhost relayhost = mynetworks = 127.0.0.0/8 188.116.4.181/32 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = ipv4 smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = domain.pl smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination smtpd_sasl_security_options = noanonymous
-
Odpieranie mail już poprawiłem, ale mam jeszcze problem wysyłaniem.
W Thunderbird otrzymuję taki komunikat:
Wysyłanie wiadomości nie powiodło się. Wystąpił błąd podczas wysyłania wiadomości: nie udało się nawiązać bezpiecznego połączenia z serwerem SMTP maill przy użyciu STARTTLS, jako że nie ogłasza on jego stosowania. Należy wyłączyć STARTTLS w opcjach tego serwera lub skontaktować się z dostawcą usługi.
W logach nic nie wiedzę.
Ustawienia konta:
Port: 587 Bezpieczne połączenie: STARTTLS Metoda uwierzytelniania: Szyfrowane hasło
-
Witam.
Konfiguruję serwer poczty według tego opisu.
Gdy wysyłam pocztę z serwera to dociera ona do adresata, gdy ktoś wysyła do mnie pocztę to również mogę ją sprawdzić poprzez klienta na serwerze.
Niestety nie działa wysyłanie i sprawdzanie poczty po wpisaniu do Thunderbirda.
Jedyne co widzę w logach to:
May 27 20:06:34 dovecot: IMAP(michal): file_lock_dotlock() failed with mbox file /var/mail/michal: Permission denied
Będę wdzięczny za pomoc.
-
Jedyne co znalazłem w logach to
[23/May/2011:22:10:17 +0200] "GET /page-banki.htm HTTP/1.1" 200 4317 "http://cash.legalne.waw.pl/page.htm" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.53 Safari/534.30"
-
Niestety też nie działa.
-
Witam. Mam problem z przepisywaniem adresów w nginx. Wcześniej w htacces miałem takie wpisy:
RewriteRule ^([^-]+)-([^-]+).htm$ index.php?st=$1&p=$2 [QSA,L,NC] RewriteRule ^([a-z]*)-([A-Za-z0-9_]*)-([0-9]*).htm$ index.php?st=$1&p=$2&b=$3 [QSA,L,NC] RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+).htm$ index.php?st=$1&kat=$2&firma=$3&glos=$4 [QSA,L,NC]
Zmieniłem je na coś takiego:
rewrite ^/(.*).htm /index.php?st=$1 last; rewrite ^/(.*)-(.*).htm$ index.php?st=$1&p=$2 last; rewrite ^/(.*)-(.*).htm$ index.php?st=$1&p=$2&b=$3 last; rewrite ^/(.*)-(.*)-(.*)-(.*).htm$ index.php?st=$1&kat=$2&firma=$3&glos=$4 last;
Prawidłowo działa tylko pierwszy wpis, reszta jest z jakiegoś powody błędna.
Co jest nie tak? Będę wdzięczny za pomoc.
-
Witam.
Próbuję zalogować do serwera przez putty (port 22) i za każdym razem dostaję komunikat:
Network error: Connection refused
Mogę się jedynie zalogować przez konsolę awaryjną, zarówno na roota jak i zwykłego usera.
Gdy w konsoli awaryjnej wydaję polecenie:
/etc/inid.d/ssh restart
wówczas otrzymuję komunikat:
/var/run/sshd must be owned by root and not group or world-writable.
Jak poprawnie zalogować się w tym wypadku przez putty ??
-
Pod tym adresem wszystko wygląda OK. Natomiast gdy dodam dnsy dns1.4aa.pl i dns2.4aa.pl do innej domeny otrzymuję błędy typu:
1) Nameserver records returned by the parent servers are: dns1.4aa.pl. [] (NO GLUE) [TTL=86400] dns2.4aa.pl. [] (NO GLUE) [TTL=86400] a-dns.pl was kind enough to give us that information 2) WARNING: Looks like the parent servers do not have information for your TLD when asked. This is ok but can be confusing. 3) The parent nameserver a-dns.pl is not sending out GLUE for every nameservers listed, meaning he is sending out your nameservers host names without sending the A records of those nameservers. It's ok but you have to know that this will require an extra A lookup that can delay a little the connections to your site. This happens a lot if you have nameservers on different TLD (domain.com for example with nameserver ns.domain.org.) 4) ERROR: Some of your DNS servers do not have A records at all. I could not find any A records for the following DNS servers: dns1.4aa.pl dns2.4aa.pl You must have A records for all of your nameservers. 5) WARNING: One or more of your nameservers did not return any of your NS records 6) ERROR: One or more of your nameservers did not respond: The ones that did not responded are: dns2.4aa.pl dns1.4aa.pl
Może ktoś na to zerknąć fachowym okiem?
-
Zmieniłem wszystko na bind'a i względnie działa tylko zwraca jeden błąd:
ERROR: I could not get any A records for www.4aa.pl! (I only do a cache request, if you recently added a WWW A record, it might not show up here.)
O co może chodzić w tym błędzie?
-
W odpowiedzi otrzymałem:
Nie podał Pan prawidłowych obu adresów IP działających prawidłowo serwerów DNS
Więc co jest źle?
-
Witam. Proszę o sprawdzenie ustawień DNS.
mararc
ipv4_bind_addresses = "0.0.0.0" chroot_dir = "/etc/maradns" csv2 = {} csv2["4aa.pl."] = "db.4aa.pl" maradns_uid=104 maradns_gid=107 hide_disclaimer = "YES"
db.4aa.pl
4aa.pl. SOA dns1.rootvps.pl. dnsadmin@4aa.pl. 1 7200 3600 604800 1800 4aa.pl. NS ns1.4aa.pl. 4aa.pl. NS ns2.4aa.pl. ns1.4aa.pl. A ADRES_IP_SERWERA ns2.4aa.pl. A ADRES_IP_SERWERA www.4aa.pl. A ADRES_IP_SERWERA www.4aa.pl. A ADRES_IP_SERWERA 4aa.pl. MX 10 mail1.4aa.pl. mail1.4aa.pl. A ADRES_IP_SERWERA 4aa.pl. MX 10 mail2.4aa.pl. mail2.4aa.pl. A ADRES_IP_SERWERA
Domena 4aa.pl wykupiona w masternet.pl
Gdy w palnelu próbuję wpisać
ns1.4aa.pl I IP_MASZYNY ns2.4aa.pl | IP_MASZYNY
Otrzymuję komunikat o błędzie:
Serwer nazw DNS do dodania jest podrzędny dla domeny i nie posiada adresów IP
Polecenie dig ns1.4aa.pl zwraca :
; <<>> DiG 9.5.1-P1 <<>> ns1.4aa.pl ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 18998 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ns1.4aa.pl. IN A ;; Query time: 23 msec ;; SERVER: 91.203.134.60#53(91.203.134.60) ;; WHEN: Tue May 3 14:25:31 2011 ;; MSG SIZE rcvd: 28
dig ns2.4aa.pl
; <<>> DiG 9.5.1-P1 <<>> ns2.4aa.pl ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 61764 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ns2.4aa.pl. IN A ;; Query time: 49 msec ;; SERVER: 91.203.134.60#53(91.203.134.60) ;; WHEN: Tue May 3 14:26:50 2011 ;; MSG SIZE rcvd: 28
Sprawdzałem dnsy na tej stronie i dostaje sporą ilość błędów.
Z czego one mogą wynikać? Czy ustawienia są poprawne?
Będę wdzięczny za pomoc.
-
Dodałem dodatkowy wpis o którym wspomniałeś post wyżej.
Sprawdziłem DNS pod tym adresem - wyrzuca sporo błędów.
-
Domenę rejestrowałem w masternet.
A pliki mararc i db.4aa.pl są poprawne??
-
W tej chwili mam to zrobione tak:
mararc
ipv4_bind_addcert budgetvps.plresses = "0.0.0.0" chroot_dir = "/etc/maradns" csv2 = {} csv2["4aa.pl."] = "db.4aa.pl"
db.4aa.pl
4aa.pl. SOA dns1.rootvps.pl. dnsadmin@4aa.pl. 1 7200 3600 604800 1800 4aa.pl. NS ns1.4aa.pl. 4aa.pl. NS ns2.4aa.pl. ns1.4aa.pl. A ADRES_IP_MASZYNY ns2.4aa.pl. A ADRES_IP_MASZYNY www.4aa.pl. A ADRES_IP_MASZYNY www.4aa.pl. CNAME 4aa.pl.
host 4aa.pl localhost
Using domain server: Name: localhost Address: 127.0.0.1#53 Aliases:
Żadnych błędów nie ma.
U rejestratora domeny 4aa.pl (w panelu aministracyjnym) próbuję podać następujące wartości:
ns1.4aa.pl | ADRES IP MASZYNY ns2.4aa.pl | ADRES IP MASZYNY
otrzymuję wtedy komunikat:
Serwer nazw DNS do dodania jest podrzędny dla domeny i nie posiada adresów IP
Przyjmuje następujące dnsy:
dns1.rootvps.pl dns2.rootvps.pl
Polecenie:
dig 4aa.pl
zwraca
; <<>> DiG 9.5.1-P1 <<>> 4aa.pl ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43488 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;4aa.pl. IN A ;; ANSWER SECTION: 4aa.pl. 3163 IN A 85.232.240.116 ;; AUTHORITY SECTION: 4aa.pl. 60053 IN NS ns2.megiteam.pl. 4aa.pl. 60053 IN NS ns1.megiteam.pl. ;; ADDITIONAL SECTION: ns1.megiteam.pl. 389 IN A 77.79.226.9 ns2.megiteam.pl. 389 IN A 77.79.227.1 ;; Query time: 1 msec ;; SERVER: 91.203.134.60#53(91.203.134.60) ;; WHEN: Sun May 1 23:26:11 2011 ;; MSG SIZE rcvd: 117
Tak więc coś jest nie tak bo wiedzę stare dns'y.
Będę wdzięczny za pomoc w tym temacie, bo nie bardzo wiem co jest źle.
PS. Jak ustawić 2-gi dns mając tylko jeden adres serwera? W tej chwili dwa dnsy wskazują na ten sam adres serwera? Tak powinno być ??
hitme.pl padlo
w Host is down (serwer nie działa)
Napisano · Raportuj odpowiedź
Od około pół godziny jest jakiś problem z serwerem.