본문 바로가기

삽질의 추억 ㅠㅠ/my errors

Php-syslog-ng-2.9.8j 설치 중 에러 해결__history_file

Php-syslog-ng-2.9.8j 설치 중 에러 해결

History file>

510 vim /usr/local/http/conf/php.ini

511 vim /usr/local/http/htdocs/syslog/includes/regularresult.php

512 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

513 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

514 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

515 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

516 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

517 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

518 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

519 yum install mattcorefonts

520 yum install corefont*

521 yum install msttcorefonts

522 yum install ms*

523 yum install ttf*

524 ttmkfdir

525 ttmkfdir --help

526 wget http://www.cabextract.org.uk/cabextract-1.2-1.i386.rpm

527 rmp -Uvh cabextract-1.2-1.i386.rpm

528 rpm -Uvh cabextract-1.2-1.i386.rpm

529 wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec

530 rpmbuild -bb msttcorefonts-2.0-1.spec

531 ls

532 rpm -ivh ./msttcorefonts-2.0-1.noarch.rpm

533 rpm -ivh ./ msttcorefonts-2.0-1.noarch.rpm

534 cd root

535 ls

536 cd /root

537 ls

538 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

539 yum install *ttf*

540 yum install freetype

541 yum install freetype-devel

542 yum install *font*

543 cd /usr/local/syslog-ng/

544 cd etc

545 ll

546 rpm - ivh/root/msttcorefonts-2.0-1.noarch.rpm

547 rpm - ivh /root/msttcorefonts-2.0-1.noarch.rpm

548 find / -name msttcorefonts

549 rpm - ivh /usr/src/redhat/BUILD/msttcorefonts/msttcorefonts-2.0-1.noarch.rpm

550 rpmbuild -bb /usr/src/redhat/BUILD/msttcorefonts/msttcorefonts-2.0-1.spec

551 mv msttcorefonts-2.0-1.spec /usr/src/redhat/BUILD/msttcorefonts/

552 rpmbuild -bb /usr/src/redhat/BUILD/msttcorefonts/msttcorefonts-2.0-1.spec

553 rpm - ivh /usr/src/redhat/BUILD/msttcorefonts/msttcorefonts-2.0-1.noarch.rpm

554 cd /usr/src/redhat/BUILD/msttcorefonts

555 ls

556 cd fonts/

557 ls

558 wget wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec

559 rpmbuild - bb msttcorefonts-2.0-1.spec

560 rpmbuild -bb msttcorefonts-2.0-1.spec

561 ll

562 cd ..

563 ll

564 rpmbuild -bb msttcorefonts-2.0-1.spec

565 ll

566 cd ..

567 cd ..

568 cd RPMS/noarch/

569 ll

570 rpm -Uvh msttcorefonts-2.0-1.noarch.rpm

571 rpm -qa msttcorefonts-2.0-1.noarch.rpm

572 rpm -ql msttcorefonts-2.0-1.noarch.rpm

573 rpm -qa msttcorefonts-2.0-1.noarch.rpm

574 rpm -qa |grep msttcorefonts-2.0-1.noarch.rpm

575 yum install msttcorefonts-2.0-1.noarch.rpm

576 find / -name *.ttf

577 mkdir /usr/share/fonts/truetype

578 ln -s /usr/share/fonts/msttcorefonts/ /usr/share/fonts/truetype/

579 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

580 history

581 vim /usr/local/http/htdocs/syslog/includes/regularresult.php

582 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

583 vim /usr/local/http/htdocs/syslog/includes/regularresult.php

584 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

585 vim /usr/local/http/htdocs/syslog/logout.php

586 vim /usr/local/http/htdocs/syslog/includes/regularresult.php

587 vim /usr/local/http/htdocs/syslog/includes/regularresult.php

588 vim /usr/local/http/htdocs/syslog/includes/regularresult.php

589 cd /usr/local/syslog-ng/etc

590 ls

591 vi /etc/profile

592 vi /etc/bashrc

593 vi /etc/profile

594 vi ~/.bashrc

595 alias

596 clear

597 ls

598 rdate -s time.bora.net

599 cd /usr/local/http/htdocs/php-syslog-ng/html/includes

600 ls

601 vi version.php

602 ls

603 vi version.php

604 cd ../../

605 ls

606 ls

607 cd ..

608 ls

609 rm -rf php-syslog-ng/

610 ls

611 wget http://php-syslog-ng.googlecode.com/files/php-syslog-ng-2.9.8j.tgz

612 tar xvfz php-syslog-ng-2.9.8j.tgz

613 ls

614 ll

615 chown -R webuser.webuser php-syslog-ng

616 ll

617 cd php-syslog-ng

618 ll

619 cd html

620 ls

621 cd config

622 ls

623 vi config.php

624 vi config.php

625 vi config.php.dist

626 cd ..

627 ls

628 ls install

629 mv install install.bak

630 ls

631 mv install.bak ../install

632 ls

633 rdate -s time.bora.net

634 ls

635 cd ../../

636 rm -rf php-syslog-ng

637 ls

638 tar xvfz php-syslog-ng-2.9.8j.tgz

639 chown -R webuser.webuser php-syslog-ng

640 cd php-syslog-ng

641 ls

642 cd html/install/

643 ls

644 cd sql

645 ls

646 gzip -cd cemdb.sql.gz | xvf -

647 gzip -cd cemdb.sql.gz

648 ls

649 ll

650 ls -a

651 gzip -d cemdb.sql.gz

652 ls

653 mysql -u mydbadmin -p pass1234 syslog < /usr/local/http/htdocs/php-syslog-ng/html/install/sql/cemdb.sql

654 cd /usr/local/http/htdocs/

655 ls

656 rm -rf php-syslog-ng

657 cd ../../src

658 ls

659 cd syslog-ng-3.0.4/

660 ls

661 cd contrib/

662 ls

663 vi syslog-ng.conf.doc

664 vi syslog-ng.conf.RedHat

665 cd /usr/local/http/htdocs/

666 ls

667 tar php-syslog-ng-2.9.8j.tgz

668 tar xvfz php-syslog-ng-2.9.8j.tgz

669 chown -R webuser.webuser php-syslog-ng

670 vi php-syslog-ng/html/includes/version.php

671 l

672 ll

673 rm -rf php-syslog-ng

674 tar xvzf php-syslog-ng-2.9.8j.tgz

675 ll

676 chown -R webuser.webuser ./

677 vim ../conf/php.ini

678 mv php-syslog-ng/html/* syslog/

679 mkdir syslog

680 mv php-syslog-ng/html/* syslog/

681 ll

682 cd syslog/

683 ll

684 cd ..

685 rm -rf php-syslog-ng/

686 ll

687 chown -R webuser.webuser ./

688 vim ../conf/httpd.conf

689 service httpd restart

690 cd syslog/

691 ll

692 cd config/

693 ll

694 cd ..

695 cd install/

696 ll

697 cd ..

698 cd ..

699 ll

700 tar xvzf php-syslog-ng-2.9.8j.tgz

701 ll

702 tail -f ../logs/error_log

703 vi syslog/config/config.php

704 mysql -u mydbadmin -p

705 tail -f /var/log/messages

706 vi ../conf/php.ini

707 service httpd restart

708 vim /usr/local/http/htdocs/syslog/includes/version.php

709 vi ../conf/httpd.conf

710 service httpd restart

711 cd syslog/

712 ll

713 cd ..

714 cd php-syslog-ng

715 ll

716 cd scripts/

717 ll

718 ./dbgen.pl

719 vi dbgen.pl

720 vi dbgen.pl

721 cp ../../syslog/config/config.php ../html/config/config.php

722 ./dbgen.pl

723 vi dbgen.pl

724 vi dbgen.pl

725 ./dbgen.pl

726 perl -MDBD::mysql -e 'print "$DBD::mysql::VERSION\n"

727 ;

728 perl -MDBD::mysql -e 'print "$DBD::mysql::VERSION\n"'

729 yum install perl-NET-MySQL

730 yum install perl-NET-*

731 perl -MCPAN -e shell

732 yum install perl-Net-MySQL

733 yum install perl-*-mysql

734 yum install perl-DBD-MySQL

735 yum install perl-IO-Socket

736 perl -MCPAN -e shell

737 ./dbgen.pl

738 perl -MCPAN -e shell

739 ./dbgen.pl

740 vim /usr/local/http/htdocs/syslog/includes/version.php

741 im /usr/local/http/htdocs/syslog/includes/regularresult.php

742 vim /usr/local/http/htdocs/syslog/includes/regularresult.php

743 vim /usr/local/http/htdocs/syslog/includes/jpgraph/jpgraph.php

744 cd

745 ls

746 ls -a

747 vi .bash_history

748 cp .bash_history history_bak_php-syslog-ng_2.9.8f_error_complete

749 ls

750 cat history_bak_php-syslog-ng_2.9.8f_error_complete

751 ps -ef |grep syslog

752 ps -ef |grep syslog-ng

753 /etc/init.d/syslog-ng start

754 history |grep export

755 export LD_LIBRARY_PATH=/usr/local/lib

756 /etc/init.d/syslog-ng start

757 rdate -s time.bora.net

758 /etc/init.d/syslog-ng start

759 vi /usr/local/syslog-ng/etc/syslog-ng

760 vi /usr/local/syslog-ng/etc/syslog-ng.conf

761 /etc/init.d/syslog-ng status

762 /etc/init.d/syslog-ng start

763 vi /usr/local/syslog-ng/etc/syslog-ng.conf

764 history

765 vi /usr/local/syslog-ng/etc/syslog-ng.conf

766 /etc/init.d/syslog-ng start