linux


มีปัญหา FTP ไม่ได้ ลอง status service ดูแล้วเจอแบบนี้ [pond@server ~]$ sudo /etc/init.d/proftpd status
proftpd dead but subsys locked
ให้ไปปิด service xinetd ก่อน [pond@server ~]$ sudo /etc/init.d/xinetd stop แล้ว [pond@server ~]$ sudo /etc/init.d/proftpd stop
[pond@server ~]$ sudo rm -f /var/lock/subsys/proftpd

Topic: 

I have a huge 500MB size tar file to upload. and It's took many hour estimate time.
I wish to split to files like mysqldump. The solution is split files with tar.

tar -cML 51200 -f files.tar large_file

-c, --create create a new archive
-L, --tape-length=NUMBER change tape after writing NUMBER x 1024 bytes
-M, --multi-volume create/list/extract multi-volume archive

ioncube-loader

My work have to use software that requires the ionCube PHP Loader to encode scripts. This instruction is explain "How to install iconCube loader on RHEL4".

  1. Goto http://www.ioncube.com/loaders.php and download ionCube loader.
    ioncube_loaders_lin_x86.tar.gz
  2. upload to server machine and extract
    tar -zxvf ioncube_loaders_lin_x86.tar.gz
  3. Copy the 'ioncube-loader-helper.php' and 'ioncube-encoded-file.php' to a directory where you expect encoded files to be working.
    cp ./ioncube/ioncube-loader-helper.php /your-www-root/
    cp ./ioncube/ioncube-encoded-file.php /your-www-root/
  4. Access the 'ioncube-loader-helper.php' script from a web server or with a PHP executable. This script can help you to find information about Loader installation.
    http://yoursite.com/ioncube-loader-helper.php
  5. Choose the 'run-time loading installation instructions.' option.
    The script will try to locate and install the required Loader, and will produce output as it runs.
    Looking for Loader 'ioncube_loader_lin_5.2.so'

    Extensions Dir: /usr/local/php5/lib/php/extensions/current (/usr/local/php5/lib/php/extensions/5.2.8)
    Relative Path: /something
  6. add the following line before any other zend_extension lines.
    zend_extension = /<path>/ioncube_loader_lin_5.2.sowhere /<path>/ is where you've installed the loader, e.g. /usr/local/php5/lib/php/extensions/5.2.8
    If there are no zend_extension lines already, you can put the line at any point in the file. I'm usingzend_extension = /usr/local/php5/lib/php/extensions/5.2.8/ioncube_loader_lin_5.2.so
  7. Copy ioncube_loader_lin_x.x.so to your extension path.
    sudo cp ioncube_loader_lin_5.2.so /usr/local/php5/lib/php/extensions/5.2.8/

Finally, restart your web server software for the changes to take effect.
/etc/init.d/httpd restart

The problem is our mail sent through ActionMailer takes 60 seconds, and It effect to Task Management System. Coz the system gonna send mail every event that happen. like Create new task, Update task logs.

I google and found cause

sendmail always waits for 60 seconds when your hostname is not a FQHN (fully qualified host name). And It will asume a temporary DNS lookup failure and try again (while actually sending out the mail, strangely enough).

just edit /etc/sysconfig/network HOSTNAME=yourdomain.something

Pages

Subscribe to RSS - linux
© 2010 Pangpond.. Theme by Kiwi Themes.