Skocz do zawartości

arkus

Użytkownicy
  • Zawartość

    29
  • Rejestracja

  • Ostatnio

Posty napisane przez arkus


  1. System plików      1K-bl    użyte  dostępne %uż. zamont. na
    rootfs          20026172 19265884         0 100% /
    /dev/root       20026172 19265884         0 100% /
    devtmpfs         8166264        0   8166264   0% /dev
    tmpfs            1633348      336   1633012   1% /run
    tmpfs               5120        0      5120   0% /run/lock
    tmpfs            3475980        0   3475980   0% /dev/shm
    /dev/md2       459913256 58816576 377711392  14% /home
    /dev/loop1       1956512  1956512         0 100% /mnt/COJ
    

    root cały zajęty - troche dziwne, ale czy to moze byc problemem w tej sytuacji?
    na reszte nie kojarzę komend.

    Wywaliłem 8 GB niepotrzebnych plikow - jakies stare backupy i działa.

    System plików      1K-bl    użyte  dostępne %uż. zamont. na
    rootfs          20026172 10101776   8884068  54% /
    /dev/root       20026172 10101776   8884068  54% /
    devtmpfs         8166264        0   8166264   0% /dev
    tmpfs            1633348      336   1633012   1% /run
    tmpfs               5120        0      5120   0% /run/lock
    tmpfs            3475980        0   3475980   0% /dev/shm
    /dev/md2       459913256 58816972 377710996  14% /home
    /dev/loop1       1956512  1956512         0 100% /mnt/COJ
    
    

    Wielkie dzięki Syndrom.
    Temat do zamknęcia


  2. Witam.

    Mam problem z dedykiem, a mianowicie mam tam pare serwerów do gier, webftp i panel do serwerów.
    Dzis, od około 15 nie mogę zalogować się ani do webftp, ani do panelu. Nie wyświetla się żaden błąd, wygląda to jakby strona się restartowała.

    Próbowałem zrestartowac apache, ale nie pomaga.

    Myślałem nad restartem maszyny, ale tez nie wiem czy zadziała a jak nie zadziała to wszystkie serwery mi się wyłączą i nie będę mógł ich włączyć.



    Jak loguje się do webftp jednak wyskakuje błąd:

    Unknown Parsing Error!


    Ma ktoś jakiś pomysł na rozwiązanie tego problemu?


  3. Poczytałem znow troche jakis tematów i zrobilem cos takiego:

     

    #  ldconfig -p | grep libstd
            libstdc++.so.6 (libc6) => /lib/libstdc++.so.6
            libstdc++.so.6 (libc6) => /usr/lib/libstdc++.so.6
            libstdc++.so.5 (libc6) => /lib/libstdc++.so.5
            libstdc++.so (libc6) => /lib/libstdc++.so
    # nano /etc/ld.so.conf.d/libc.conf 
    
    
    * tu zmieniliem
    * # libc default configuration
    * /usr/local/lib
    * na to:
    * # libc default configuration
    * /usr/lib
    
    
    # ldconfig
    # apt-get
    apt-get: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)

    Ale nadal brakuje mi tej wersji 4.2.0 :/

    teraz znow mysql nie chce dzialac.

     

    # service mysql restart
    Stopping MySQL database server: mysqld/usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
    /usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
    .
    /usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
    Starting MySQL database server: mysqld/usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
    /usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     ./usr/sbin/mysqld: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
     failed!
    
    
    

     


  4. Witam.

    Jak zwykle coś namieszałem i nie działa mi na serwerze mysql.

    Tzn 5 minut temu nie działało, próbowałem naprawic wgrywajac inne pliki libgcc (coz za głupie rozwiązanie z mojej strony). MySQL dział, lecz nie wiem czy prawidłowo. Jak na razie chyba ok.

     

    Ale przy starcie/restarcie mysql wyskakuje:

    root@arkussss1:~# service mysql start
    /usr/sbin/mysqld: /lib/libstdc++.so.6: no version information available (required by /usr/sbin/mysqld)
    Starting MySQL database server: mysqld/usr/sbin/mysqld: /lib/libstdc++.so.6: no version information available (required by /usr/sbin/mysqld)
    /usr/sbin/mysqld: /lib/libstdc++.so.6: no version information available (required by /usr/sbin/mysqld)
     ./usr/sbin/mysqld: /lib/libstdc++.so.6: no version information available (required by /usr/sbin/mysqld)
    /usr/sbin/mysqld: /lib/libstdc++.so.6: no version information available (required by /usr/sbin/mysqld)
    .
    Checking for tables which need an upgrade, are corrupt or were
    not closed cleanly..

    natomiast przy próbie jakiejkolwiek komendy z apt-get wyskakuje:

     

    root@arkussss1:~# apt-get install gcc
    apt-get: /lib/libstdc++.so.6: no version information available (required by apt-get)
    apt-get: /lib/libstdc++.so.6: no version information available (required by apt-get)
    apt-get: /lib/libstdc++.so.6: no version information available (required by apt-get)
    apt-get: /lib/libstdc++.so.6: no version information available (required by apt-get)
    apt-get: /lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
    apt-get: /lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
    apt-get: /lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
    apt-get: /lib/libstdc++.so.6: no version information available (required by /usr/lib/libapt-pkg.so.4.10)
    apt-get: relocation error: /usr/lib/libapt-pkg.so.4.10: symbol _ZNKSt5ctypeIcE13_M_widen_initEv, version GLIBCXX_3.4.11 not defined in file libstdc++.so.6 with link time reference

    Proszę o pomoc w naprawieniu moich błędów. Siedzę nad tym juz ze 2 godziny, próbuję różnymi sposobami z obcojezycznych stron, lecz najprawdopodobniej nadal cos robie zle.


  5. Witam.

    Posiadam VPS z preinstalowanym Debian 6.0 + ispCP OMEGA. Standardowo serwer ma wgrana wersje php 5.3, natomiast ja potrzebuje do swojej strony PHP w wersji co najmniej 5.4
    Próbowałem wgrać nowszą wersję php korzystająć z tego poradnika : http://www.vixu.pl/debian-squeeze-i-php-5-4/

    php 5.4 działa, lecz panel już nie. Nie wyświetla się nic, jakby wszystkie pliki się wyczyściły.


    Pliki html w stronach utworzonych w panelu działają, *.php już nie.


    Wie ktoś może o co w tym chodzi i dlaczego to może nie działać?


  6. Witam.

    Chciałem zapytać jak można zrobić, aby np. po wejściu na adres www.domena.pl/jakisfolder/ byly tam pliki z folderu /home/user/asd/jakisfolder

    Probowałem uzyc ln -s /home/user/asd/jakisfolder /var/www/jakisfolder ale mam błąd

     

    Forbidden

    You don't have permission to access /jakisfolder on this server

     

    EDIT:

    Zrobiłem poprzez uzycie ln ze w folderze /var/www/jakisfolder sa pliki z folderu /home/user/asd/jakisfolder ale przydałoby się zrobić, aby umieszczały się one tam automatycznie :)


  7. Wyniki tych dwóch komend, przy pierwszej widac juz kropki, zaraz sprobuje zmienic i zobaczymy :)

    grep -H -R "open_basedir" /etc/apache2
    /etc/apache2/conf.d/secure.conf:        php_admin_value open_basedir "."
    /etc/apache2/conf.d/secure.conf:        php_admin_value open_basedir "."
    /etc/apache2/conf.d/squirrelmail.conf:  php_admin_value open_basedir none
    /etc/apache2/conf.d/phpmyadmin.conf:    php_admin_value open_basedir /usr/share/                                                                                                                               phpmyadmin:/etc/phpmyadmin:/etc/phpMyAdmin:/var/lib/phpmyadmin:/var/lib/phpMyAdm  
    /var/www/phpmyadmin/import.php:    // work around open_basedir and other limitations
    /var/www/phpmyadmin/import.php:    $open_basedir = @ini_get('open_basedir');
    /var/www/phpmyadmin/import.php:    // If we are on a server with open_basedir, we must move the file
    /var/www/phpmyadmin/import.php:    if (!empty($open_basedir)) {
    /var/www/phpmyadmin/libraries/file_listing.php:        // for PHP < 5.2.4, is_file() gives a warning when using open_basedir
    /var/www/phpmyadmin/libraries/File.class.php:        // any file access outside of open_basedir will issue a warning
    /var/www/phpmyadmin/libraries/File.class.php:     * If we are on a server with open_basedir, we must move the file
    /var/www/phpmyadmin/libraries/File.class.php:        // any file access outside of open_basedir will issue a warning
    /var/www/phpmyadmin/libraries/File.class.php:        // f.e. any file access outside of open_basedir will issue a warning
    /var/www/phpmyadmin/Documentation.html: <tt>open_basedir</tt> for uploaded
    /var/www/phpmyadmin/Documentation.html: <tt>open_basedir</tt> restriction, you need to create a
    /var/www/phpmyadmin/Documentation.html:    <a href="#faq1_11">1.11 I get an 'open_basedir restriction' while
    /var/www/phpmyadmin/Documentation.html:<p> Since version 2.2.4, phpMyAdmin supports servers with open_basedir
    /var/www/phpmyadmin/Documentation.html:    <tt>open_basedir</tt>, if used, must contain "." and
    /var/www/panel/libs/phpseclib/Crypt/Random.php:            // "open_basedir restriction in effect", "Permission denied", "No such file or directory", etc.
    /var/www/panel/libs/phpseclib/Crypt/Random.php:        // not doing. regardless, this'll only be called if this PHP script couldn't open /dev/urandom due to open_basedir
    /var/www/cod4/panel/libs/phpseclib/Crypt/Random.php:            // "open_basedir restriction in effect", "Permission denied", "No such file or directory", etc.
    /var/www/cod4/panel/libs/phpseclib/Crypt/Random.php:        // not doing. regardless, this'll only be called if this PHP script couldn't open /dev/urandom due to open_basedir
    

    Działa. Dziękuję wszystkim bardzo za pomoc :)


  8. Starałem się zainstalowac Bright Game Panel (http://bgpanel.net) i wyskakuje mi błąd :

    Warning: is_file(): open_basedir restriction in effect. File(../configuration.php) is not within the allowed path(s): (.) in /var/www/panel/install/index.php on line 31

    Configuration file not found !

    php.ini

    ; open_basedir, if set, limits all file operations to the defined directory
    ; and below. This directive makes most sense if used in a per-directory
    ; or per-virtualhost web server configuration file. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ; http://php.net/open-basedir
    ; open_basedir =

    /var/www/panel/install/index.php

    if (!is_file('../configuration.php'))
    {
    	exit('<html><body><h1>Configuration file not found !</h1></body></html>');
    }
    else
    {
    	require('../configuration.php');
    }
    

  9. Skoro to czysta instalacja to może spróbuj:

    dpkg -l | grep ' mysql'
    # usuń wszystkie pakiety mysql "dpkg -r ..."
    rm -rf /etc/mysql /var/lib/mysql
    
    i zainstaluj ponownie.

     

    Nie chciały mi się usunąć 2 pakiety : mysql-common i mysql-server-5.5.

     

     

     

    root@arkus:~# dpkg -l | grep ' mysql'
    ii  mysql-client                    5.5.31+dfsg-0+wheezy1      all          MySQ              L database client (metapackage depending on the latest version)
    ii  mysql-client-5.5                5.5.31+dfsg-0+wheezy1      i386         MySQ              L database client binaries
    ii  mysql-common                    5.5.31+dfsg-0+wheezy1      all          MySQ              L database common files, e.g. /etc/mysql/my.cnf
    ii  mysql-server                    5.5.31+dfsg-0+wheezy1      all          MySQ              L database server (metapackage depending on the latest version)
    ii  mysql-server-5.5                5.5.31+dfsg-0+wheezy1      i386         MySQ              L database server binaries and system database setup
    ii  mysql-server-core-5.5           5.5.31+dfsg-0+wheezy1      i386         MySQ              L database server binaries
    root@arkus:~# dpkg -r mysql-client mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
    (Reading database ... 13823 files and directories currently installed.)
    Removing mysql-client ...
    dpkg: dependency problems prevent removal of mysql-common:
     libmysqlclient18:i386 depends on mysql-common (>= 5.5.31+dfsg-0+wheezy1).
    
    dpkg: error processing mysql-common (--remove):
     dependency problems - not removing
    Removing mysql-server ...
    Removing mysql-server-5.5 ...
    Removing mysql-server-core-5.5 ...
    Removing mysql-client-5.5 ...
    Processing triggers for man-db ...
    Errors were encountered while processing:
     mysql-common
    root@arkus:~# dpkg -l | grep ' mysql'                     ri  mysql-common                    5.5.31+dfsg-0+wheezy1      all          MySQL database common files, e.g. /etc/mysql/my.cnf
    rc  mysql-server-5.5                5.5.31+dfsg-0+wheezy1      i386         MySQL database server binaries and system database setup
    root@arkus:/home/ts3/teamspeak3-server_linux-x86# dpkg -r mysql-common
    dpkg: dependency problems prevent removal of mysql-common:
     libmysqlclient18:i386 depends on mysql-common (>= 5.5.31+dfsg-0+wheezy1).
    
    dpkg: error processing mysql-common (--remove):
     dependency problems - not removing
    Errors were encountered while processing:
     mysql-common
    root@arkus:~# dpkg -r mysql-server-5.5
    dpkg: warning: ignoring request to remove mysql-server-5.5, only the config
     files of which are on the system; use --purge to remove them too
    root@arkus:~# dpkg -r --purge mysql-server-5.5
    dpkg: error: conflicting actions -P (--purge) and -r (--remove)
    
    Type dpkg --help for help about installing and deinstalling packages [*];
    Use `dselect' or `aptitude' for user-friendly package management;
    Type dpkg -Dhelp for a list of dpkg debug flag values;
    Type dpkg --force-help for a list of forcing options;
    Type dpkg-deb --help for help about manipulating *.deb files;
    
    Options marked [*] produce a lot of output - pipe it through `less' or `more' !
    root@arkus:~# dpkg --purge mysql-server-5.5
    (Reading database ... 13598 files and directories currently installed.)
    Removing mysql-server-5.5 ...
    Purging configuration files for mysql-server-5.5 ...
    root@arkus:~# dpkg --purge mysql-common
    dpkg: dependency problems prevent removal of mysql-common:
     libmysqlclient18:i386 depends on mysql-common (>= 5.5.31+dfsg-0+wheezy1).
    
    dpkg: error processing mysql-common (--purge):
     dependency problems - not removing
    Errors were encountered while processing:
     mysql-common
    
    

     

     

     

    root@arkus:~# sudo apt-get install apache2 php5 mysql-server
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    apache2 is already the newest version.
    php5 is already the newest version.
    The following extra packages will be installed:
      mysql-client-5.5 mysql-server-5.5 mysql-server-core-5.5
    Suggested packages:
      libterm-readkey-perl tinyca
    The following NEW packages will be installed:
      mysql-client-5.5 mysql-server mysql-server-5.5 mysql-server-core-5.5
    0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/7376 kB of archives.
    After this operation, 86.2 MB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Preconfiguring packages ...
    Selecting previously unselected package mysql-client-5.5.
    (Reading database ... 13589 files and directories currently installed.)
    Unpacking mysql-client-5.5 (from .../mysql-client-5.5_5.5.31+dfsg-0+wheezy1_i386.deb) ...
    Selecting previously unselected package mysql-server-core-5.5.
    Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.31+dfsg-0+wheezy1_i386.deb) ...
    Selecting previously unselected package mysql-server-5.5.
    Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.31+dfsg-0+wheezy1_i386.deb) ...
    egrep: /etc/mysql/: No such file or directory
    Selecting previously unselected package mysql-server.
    Unpacking mysql-server (from .../mysql-server_5.5.31+dfsg-0+wheezy1_all.deb) ...
    Processing triggers for man-db ...
    Setting up mysql-client-5.5 (5.5.31+dfsg-0+wheezy1) ...
    Setting up mysql-server-core-5.5 (5.5.31+dfsg-0+wheezy1) ...
    Setting up mysql-server-5.5 (5.5.31+dfsg-0+wheezy1) ...
    [ ok ] Stopping MySQL database server: mysqld.
    131022 23:10:59 [Note] Plugin 'FEDERATED' is disabled.
    131022 23:10:59 InnoDB: The InnoDB memory heap is disabled
    131022 23:10:59 InnoDB: Mutexes and rw_locks use GCC atomic builtins
    131022 23:10:59 InnoDB: Compressed tables use zlib 1.2.7
    131022 23:10:59 InnoDB: Using Linux native AIO
    131022 23:10:59  InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
    InnoDB: Warning: io_setup() attempt 1 failed.
    InnoDB: Warning: io_setup() attempt 2 failed.
    InnoDB: Warning: io_setup() attempt 3 failed.
    InnoDB: Warning: io_setup() attempt 4 failed.
    InnoDB: Warning: io_setup() attempt 5 failed.
    131022 23:11:02  InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts.
    InnoDB: You can disable Linux Native AIO by setting innodb_use_native_aio = 0 in my.cnf
    131022 23:11:02 InnoDB: Fatal error: cannot initialize AIO sub-system
    131022 23:11:02 [ERROR] Plugin 'InnoDB' init function returned error.
    131022 23:11:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    131022 23:11:02 [ERROR] Unknown/unsupported storage engine: InnoDB
    131022 23:11:02 [ERROR] Aborting
    
    131022 23:11:02 [Note] /usr/sbin/mysqld: Shutdown complete
    
    [warn] /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz ... (warning).
    [FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
    invoke-rc.d: initscript mysql, action "start" failed.
    dpkg: error processing mysql-server-5.5 (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of mysql-server:
     mysql-server depends on mysql-server-5.5; however:
      Package mysql-server-5.5 is not configured yet.
    
    dpkg: error processing mysql-server (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     mysql-server-5.5
     mysql-server
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    

     

     

     

    root@arkus:~# sudo /etc/init.d/mysql stop
    [ ok ] Stopping MySQL database server: mysqld.
    root@arkus:~# sudo mysqld_safe --skip-grant-tables &
    [1] 4103
    root@arkus:~# 131022 23:17:15 mysqld_safe Logging to '/var/lib/mysql/arkus.err'.
    131022 23:17:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
    131022 23:17:18 mysqld_safe mysqld from pid file /var/lib/mysql/arkus.pid ended
    mysql -u root
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
    [1]+  Done                    sudo mysqld_safe --skip-grant-tables
    
    

  10. dpkg-reconfigure mysql-server-5.5:

    Unable to set password for the MySQL "root" user                                                                                                        
                                                                                                                                                                 
         An error occurred while setting the password for the MySQL administrative user. This may have happened because the account already has a password, or   
         because of a communication problem with the MySQL server.                                                                                               
                                                                                                                                                                 
         You should check the account's password after the package installation.                                                                                 
                                                                                                                                                                 
         Please read the /usr/share/doc/mysql-server-5.5/README.Debian file for more information.                                                                
                                                                                                                                                           <Ok>                    
    
    root@arkus:~# dpkg-reconfigure mysql-server-5.5
    invoke-rc.d: unknown initscript, /etc/init.d/mysql not found.
    /var/lib/dpkg/info/mysql-server-5.5.postinst: line 52: /usr/sbin/mysqld: No such file or directory
×