Hertzz
-
Zawartość
29 -
Rejestracja
-
Ostatnio
Posty napisane przez Hertzz
-
-
Witam! Czy mógłbym mi ktoś przybliżyć istotę działania AIP i z jakimi dokładnie kosztami się to wiąże w rozliczeniu miesięcznym?
-
wyciągnąć można już po pierwszym moim poście w tym temacie, że z optymalizacja pracy apache nigdy nie miałem doczynienia, dlatego też chciałem zasięgnąć opini ekspertów w tej dziedzinie i prosić o 'krok po kroku' i jakies podstawowe ustawienia zmniejszające zużycieWniozki -
Największe zużycie przypada na httpd oraz mysql
-
Czy przesiadka z apache na lighttpd będzie bolesną w skutkach dla DA?
-
/etc/httpd/conf/httpd.conf:
## This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
ServerRoot "/etc/httpd"
Listen 80
#LoadModule dummy_module /usr/lib/apache/mod_dummy.so
#LoadModule php5_module /usr/lib/apache/libphp5.so
Include /etc/httpd/conf/extra/httpd-phpmodules.conf
User apache
Group apache
ServerAdmin admin@localhost
DocumentRoot "/var/www/html"
keepalive off
<Directory /home/*>
AllowOverride All
Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
<Directory />
Options All
AllowOverride All
</Directory>
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<IfModule mod_suphp.c>
suPHP_Engine On
suPHP_UserGroup webapps webapps
</IfModule>
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
ErrorLog /var/log/httpd/error_log
LogLevel warn
<IfModule log_config_module>
#replace %b with %O for more accurate logging
<IfModule mod_logio.c>
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%O" bytes
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog /var/log/httpd/access_log common
</IfModule>
<IfModule alias_module>
# Include some DirectAdmin alias
Include conf/extra/httpd-alias.conf
</IfModule>
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-gzip .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler cgi-script .cgi
AddHandler type-map var
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType video/x-ms-asf .avi
AddType video/mpeg .mpg
AddType video/mpeg .mpeg
AddType video/quicktime .mov
AddType video/x-ms-wmv .wmv
</IfModule>
#EnableMMAP off
#EnableSendfile off
################################################################################
#######
################################################################################
#######
# Do not change anything in included files, because they are rewritten by DirectAdmin #
################################################################################
#######
# This is needed for PHP
Include conf/extra/httpd-php-handlers.conf
# Server-pool management (MPM specific)
Include conf/extra/httpd-mpm.conf
# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
Include conf/extra/httpd-autoindex.conf
# Language settings
Include conf/extra/httpd-languages.conf
# User home directories
#Include conf/extra/httpd-userdir.conf
# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
Include conf/extra/httpd-dav.conf
# Various default settings
Include conf/extra/httpd-default.conf
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
# Deflate module settings
Include conf/extra/httpd-deflate.conf
# All the DirectAdmin vhosts
Include conf/extra/directadmin-vhosts.conf
# All suPHP directives
Include conf/extra/httpd-suphp.conf
# All the other includes needed by the custombuild script
Include conf/extra/httpd-includes.conf
################################################################################
#######
# End of included files that are rewritten by DirectAdmin #
################################################################################
#######
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
lighttpd dobra opcja, ale czy nie będzie się gryzło z DirectAdminem? czy on nie wymaga apache?
-
;| a jak inaczej jak nie w konfiguracji pakietów...?A przeczytałeś co napisałem? To ja też wiem, że rzecz tyczy się konfiguracji pakietów.... ale jakie konkretnie rzeczy w nich poddać modyfikacji (jakieś konkretne polecania zmiany)...
-
Witam! W jaki sposób zoptymalizować usługi WWW apache, postfix, mysql etc. aby nie pożerały ~480mb ramu sumarycznie. Chodzi mi o konkretne dyrektywy, a nie np. zmień sobie tam coś w konfigach.
-
No niestey, za szybko powiedziałem 'hop'... By strony nowo zakładanych użytkowników wyświetlały się pod domena.rpcs.pl zamiast rpcs.pl/~domena musze za każdym dodaniem nowego użytkownika restartować httpd... Jak temu zaradzić?
-
Ok, po długich staraniach, w końcu, problem rozwiązałem sam. Chodziło o pewną linijke odnośnie wildcardu w pliku konfiguracyjnym httpd, która nie powinna się tam znajdować - po usunięciu wszystko działa idealnie. Jeśli ktoś miałby problem z DA podobnej maści (konfiguracja DNS) proszę pisać na PW... [sOLVED]
-
OK, uznajmy tamto za nieważne. Teraz jest problem innej maści. Po utworzeniu wildcard dla domeny i zakładaniu nowych kont, strony użytkowników co prawda się wyświetlają, ale nie wyświetlają zawartości ich strony tylko stronę główną rpcs.pl (powinnobyć tak że http://www.rpcs.pl/~rysiu powinno wyświetlać się tutaj http://www.rysiu.rpcs.pl a tak nie jest) jak temu zaradzić?
-
Witam ponownie, chciałbym odświeżyć temat bo nadal nie mogę poprawnie skonfigurować tych DNS?ów. Zbiorę w jedną całość informacje...Posiadam serwer VPS z zainstalowanym DA oraz własną domenę rpcs.pl (z włączonym wildcardem). Moim celem jest stworzenie darmowego hostingu dla znajomych zintegrowanego właśnie z tym panelem. Problem polega na tym, iż tworząc nowe konto użytkownika i przypisując mu np. domenę test.rpcs.pl ? strona użytkownika nie wyświetla się (natomiast wyświetla się gdy wpisuje w przeglądarce adres rpcs.pl/~test). Chciałbym, żeby była możliwość wejścia na stronę użytkownika przez jego domenę (np. wspomniana wyżej test.rpcs.pl).
Wyciąg ze sprawdzania domeny:
Sprawdzana nazwa to: rpcs.pl Wykonuję polecenie: host -t any rpcs.pl rpcs.pl has address 78.46.185.94 rpcs.pl name server ns1.statnet.pl rpcs.pl name server ns2.statnet.pl rpcs.pl start of authority ns1.statnet.pl hostmaster.statnet.pl( 2009042300;serial (version) 10800;refresh period 3600;retry refresh this often 432000;expiration period 21600;minimum TTL ) rpcs.pl mail is handled (pri=10) by mail.rpcs.pl
Wyciąg z panelu zarządzania DNS (od mojego usługodawcy)
DNS Administration pod pozycją
mam następujące ustawienia:
Co tu jest nie tak, że coś nie działa?
-
Laicki problem, dziękuje. [sOLVED] do zamknięcia.
-
Jeszcze jedno pytanie: rozumiem, że wildcard musi być aktywowany dla mojej domeny, aby to wszystko dobrze działało tak?
-
Witam!
W momencie, gdy probuje stworzyć nowego usera, dostaje komunikat:
Cannot create user using those settingsDetails
Unable to read ./data/admin/admin.conf Unable to open ./data/admin/admin.conf for reading.
Jak temu zaradzić?
-
Jeżeli serwer popularny transferu za mało:)Święta racja. Mam serwer CS 20 slotów, w godzinach szczytu cały pełen, późnym wieczorem około 12 graczy, w godzinach 2-7 brak graczy, potem od rana 10-15 i znowu to samo i zużywa mi około 150gb transferu, więc 300gb transferu na 50-60 slotów to zdecydowanie za mało.
-
Pola NS zrobione, jednak mimo to - dalej nie wyswietlaja sie strony uzytkowników... moze jakaś ostateczna porada "jak krowie na granicy"?
-
Dalej nie łapie :/ Dodalem nawet nowego usera, ale wchodzac na przypisana mu domene dalej wyskakuje blad 404...
PS. mam jakis problem z wysylaniem PW - wpisuje wiadomosc, tytul, adresata a w rezultacie "Musisz wpisać wiadomość. Prywatna wiadomość NIE została wysłana"
Czy ktoś wie w jaki sposób dodać te adresy NS, żeby wszystko działało ?
-
OK zrobione
-
Edit: Już działa, zresetowałem panel w inny sposob. Jakie musze teraz kroki przedsięwziąc?
-
Tak zmieniam tak, ale gdy klikam "save" i potem wchodze nastepny raz w to samo to wyswietlaja mi sie w tych ustawieniach stare konfiguracje :/ tak jakby sie nie zapisywalo. Moge to zrobic recznie? jaka jest sciezka do tego pliku tak zebym mogl w terminalu sobie to ustawic?
-
"Server's Hostname: (tu domena główna na dnsy)" co mam tu wpisać?
czy moja domene :rpcs.pl czy domene uslugodawcy czy hostname? Oto adresy ktore otrzymalem przy rejestracji VPS'a:
IP: 78.46.185.94
hostname: xen-01-78-46-185-94.statnet.pl
uzytkownik: root
hasło:*******
-
Sprawdzana nazwa to: rpcs.pl Wykonuję polecenie: host -t any rpcs.pl rpcs.pl has address 78.46.185.94 rpcs.pl name server ns1.statnet.pl rpcs.pl name server ns2.statnet.pl rpcs.pl start of authority ns1.statnet.pl hostmaster.statnet.pl( 2009042300;serial (version) 10800;refresh period 3600;retry refresh this often 432000;expiration period 21600;minimum TTL ) rpcs.pl mail is handled (pri=10) by mail.rpcs.pl
Powyzsze ustawienia mam w ustawieniach DNS w panelu Direct Admin (czyli ns1.statnet.pl itd - serwery DNS mojego dostawcy), ale w momencie gdy dodaje nowego usera przypisuje mu np. adres test.rpcs.pl to w rezultacie otrzymuje wynik, iż nie ma takiej strony mimo iz na katalog usera wgrane są pliki.
-
OK Serwery DNS mojego dostawcy już podpiąłem pod domenę, ale teraz kolejny błąd; bowiem gdy tworze konto uzytkownika przypisuje mu jakis adres *.rpcs.pl to gdy wchodze na ten adres *.rpcs.pl w rezultacie otrzymuje wiadomość od nazwa.pl "ta domena jest zaparkowana".... Jak temu zaradzic aby zamiast tej strony wyswietlala sie strona startowa uzytkownika?
Czy może to być winą tego, iż serwery DNS przypsiałem około 15 minut temu i nie zdąrzyły się jeszcze przypisać? a po max 24h wszystko będzie śmigać?
-
Posiadam własną domenę - a więc pytanie: w jaki sposób stworzyć do niej DNS'y?
EDIT Napisze moze jeszcze w tym temacie, zeby nie spamować na forum:
Czy jest jakiś sposób, żeby ograniczyć pamięc ram (np. przydzielić 256MB z zasobów) na aplikację DirectAdmin, gdyż aktualnie panoszy mi się na całą ilość zasobów uniemożliwiając symultaniczne uruchomienie innej usługi?
MasterNET na allegro
w Kosz
Napisano · Raportuj odpowiedź