Skocz do zawartości

ziele029

Użytkownicy
  • Zawartość

    26
  • Rejestracja

  • Ostatnio

Posty napisane przez ziele029


  1. Witam, mam mały problem podczas instalacji Firewall-a CFS po przeinstalowaniu systemu na VPS-ie.

     

    sh install.sh

     

    Configuring for OS

     

    Running csf generic installer

     

    Installing generic csf and lfd

     

    Check we're running as root

     

    Checking Perl modules...

    Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/csf /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at (eval 22) line 2.

    BEGIN failed--compilation aborted at (eval 22) line 2.

    Configuration modified for Debian/Ubuntu/Gentoo settings /etc/csf/csf.conf

     

    You need to install the missing perl modules and then install cxs

     

     

    Jak doinstalować te moduły ??

    Dzięki z Góry za Pomoc :D


  2. Dodałem i nic nie pokazuje ..., ciągle komunikat "Wiadomość została wysłana, dziękujemy!", ale gdy próbujesz podejrzeć plik ajax.php pojawai się:

     

    {"bFormSent":false,"aErrors":["Empty data submited."],"aResults":[]}

    a w demie tego samego pliku wyświetla się:

    {"bFormSent":true,"aErrors":[],"aResults":["Message sent, thank you!"]}


  3. Witam, mam mały problem z formularzem kontaktowym na stronie - [LINK] (strona w okresie testowania).

    Formularz korzysta z wysyłania wiadomości metodą Ajax i jQuery.post() .

    Po wypełnieniu wszystkich pól i wysłaniu wiadomości na stronie wyświetla się komunikat

    "Wiadomość została wysłana, dziękujemy!", ale wiadomości nie dochodzą na porządny adres e-mail ...

     

    Czego może być to przyczyna ? Na maszynie na której stoi strona PHP jest w wersji: 5.3.3-7+squeeze13,

    więc wymóg skryptu jest spełniony ...

     

    Skrypt:

    <?php
    /*
    Spark – Simple and Effective
    Rev. 6
    */
    
    // Replace the email address with the one that should receive the contact form inquiries.
    define('TO_EMAIL', 'spontansquad@gmail.com');
    // === You don't need to change anything else. ===
    
    $aErrors = array();
    $aResults = array();
    /* Functions */
    function stripslashes_if_required($sContent) {
    if(get_magic_quotes_gpc()) {
    	return stripslashes($sContent);
    } else {
    	return $sContent;
    }
    }
    function get_current_url_path() {
    $sPageUrl = "http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
    $count = strlen(basename($sPageUrl));
    $sPagePath = substr($sPageUrl,0, -$count);
    return $sPagePath;
    }
    function output($aErrors = array(), $aResults = array()){ // Output JSON
    $bFormSent = empty($aErrors) ? true : false;
    $aCombinedData = array(
     'bFormSent' => $bFormSent,
     'aErrors' => $aErrors,
     'aResults' => $aResults
     );
    
    header('Content-type: application/json');
    echo json_encode($aCombinedData);
    exit;
    }
    // Check supported version of PHP
    if (version_compare(PHP_VERSION, '5.2.0', '<')) { // PHP 5.2 is required for the safety filters used in this script
    $aErrors[] = 'Unsupported PHP version. <br /><em>Minimum requirement is 5.2.<br />Your version is '. PHP_VERSION .'.</em>';
    output($aErrors);
    }
    
    if (!empty($_POST)) { // Form posted?
    // Get a safe-sanitized version of the posted data
    $sFromEmail = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL);
    $sFromName = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW);
    $sMessage  = stripslashes_if_required($_POST['message']);
    $sMessage .= "\r\n--\r\nEmail sent from ". get_current_url_path();
    
    $sHeaders  = "From: '$sFromName' <$sFromEmail>"."\r\n";
    $sHeaders .= "Reply-To: '$sFromName' <$sFromEmail>";
    
    if (filter_var($sFromEmail, FILTER_VALIDATE_EMAIL)) { // Valid email format?
    
     $bMailSent = mail(TO_EMAIL, "New inquiry from $sFromName", $sMessage, $sHeaders);
     if ($bMailSent) {
      $aResults[] = "Wiadomość została wysłana, dziękujemy!";
     } else {
      $aErrors[] = "Wiadomość nie została wysłana, proszę spróbować ponownie później.";
     }
    } else {
     $aErrors[] = 'Invalid email address.';
    }
    } else { // Nothing posted
    $aErrors[] = 'Empty data submited.';
    }
    
    output($aErrors, $aResults);
    
    

     

    Z Góry Dzięki za Pomoc smile.png


  4. Witam.

    Mam problem z mysql zabiera mi dość dużo pamięci ram (około 350MB).

    Moje pytanie brzmi następująco, czy da się ograniczyć mysql aby np. brało tylko 100MB ramu?

     

    Oto wynik z MySQLTuner:

     

    -------- General Statistics --------------------------------------------------

    [--] Skipped version check for MySQLTuner script

    [OK] Currently running supported MySQL version 5.1.61-0+squeeze1

    [OK] Operating on 32-bit architecture with less than 2GB RAM

    -------- Storage Engine Statistics -------------------------------------------

    [--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster

    [--] Data in MyISAM tables: 417K (Tables: 20)

    [--] Data in InnoDB tables: 5M (Tables: 5)

    [!!] Total fragmented tables: 6

    -------- Security Recommendations -------------------------------------------

    [OK] All database users have passwords assigned

    -------- Performance Metrics -------------------------------------------------

    [--] Up for: 1d 11h 22m 22s (4K q [0.035 qps], 268 conn, TX: 12M, RX: 1M)

    [--] Reads / Writes: 78% / 22%

    [--] Total buffers: 58.0M global + 2.7M per thread (151 max threads)

    [OK] Maximum possible memory usage: 463.8M (45% of installed RAM)

    [OK] Slow queries: 0% (0/4K)

    [OK] Highest usage of available connections: 1% (2/151)

    [OK] Key buffer size / total MyISAM indexes: 16.0M/187.0K

    [OK] Key buffer hit rate: 99.2% (3K cached / 27 reads)

    [OK] Query cache efficiency: 50.7% (1K cached / 2K selects)

    [OK] Query cache prunes per day: 0

    [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 18 sorts)

    [OK] Temporary tables created on disk: 17% (61 on disk / 345 total)

    [OK] Thread cache hit rate: 99% (2 created / 268 connections)

    [OK] Table cache hit rate: 25% (52 open / 208 opened)

    [OK] Open file limit used: 8% (87/1K)

    [OK] Table locks acquired immediately: 100% (2K immediate / 2K locks)

    [OK] InnoDB data size / buffer pool: 5.7M/8.0M

    -------- Recommendations -----------------------------------------------------

    General recommendations:

    Run OPTIMIZE TABLE to defragment tables for better performance

    Enable the slow query log to troubleshoot bad queries

     

     

    Słyszałem że da się wyłączyć innoDB tylko jak ?

     

    P.S - Mój VPS nie jest demonem prędkościu da się też jakoś skonfigurować Apache by brał mniej niż ~60MB RAM, czy to już jest mało ?


  5. Witam, zakupiłem ostatnio vps-a i mam mały problem z konfiguracją PhpMyAdmin. Gdy chce zainstalować i skonfigurować WordPressa wyskakuj "Error Establishing Database Connection” blink.png.

    Co można z tym zrobić ?

     

    Zapomniałem dodać ze mam takie błędy:

     

    Dodatkowe możliwości pracy z połączonymi tabelami zostały wyłączone. Aby dowiedzieć się, dlaczego - kliknij tutaj.

     

    Serwer działa pod ochroną Suhosina. Możliwe problemy opisuje dokumentacja.

     

    P.S - PhpMyAdmin jest zainstalowany na "localhost" na vpsie, czy to może być problem ? huh.png .

     

    Dzięki z Góry. Pozdrawiam.

    post-14330-0-10305300-1329069143.jpg


  6. Mam jeszcze jedno pytanie zastanawiam sie nad 2 ofertami: happy.png

     

    1. Biznes-host.pl (oferta Serwer VPS #1) - 168 PLN/rok Brutto (do końca promocji)

    2. Webh.pl (oferta "Start") - 186,48 PLN/rok Brutto (z kodem promocyjnym: "PROMO_VPS" - dożywotnia zniżka)

     

    Które lepiej wybrać patrząc przyszłościowo i jakościowo ?? blink.png

     

    P.S - w Webh nie pasuje mi Transfer miesięczny (na TS-ie miesięcznie potrzebuje około ~ 1TB unsure.png )

×