Showing posts with label Solved. Show all posts
Showing posts with label Solved. Show all posts

Sunday, March 18, 2012

nginxcp pythonfix [solved]

http://nginxcp.com/forums/Thread-installation-error?page=2

easy_install Pyyaml==3.09
rm /usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg

nginxcp tells about pythonfix
Note:
You may needed to run pythonfix script if you are installing it in first time.

before:

Traceback (most recent call last):
  File "/usr/local/src/publicnginx/nginxinstaller2", line 9, in ?
    import createvhosts
  File "/usr/local/src/publicnginx/createvhosts.py", line 2, in ?
    import yaml
  File "/usr/lib/python2.4/site-packages/PyYAML-3.10-py2.4-linux-i686.egg/yaml/__init__.py", line 26
SyntaxError: 'yield' not allowed in a 'try' block with a 'finally' clause

After:
 Reading Apache Configuration
 updating Apache configuration
 ****************************************************
 *               Installation Complete              *
 *run /etc/init.d/httpd restart to start Nginx Admin*
 ****************************************************
Done! :)

Tuesday, December 20, 2011

dependency problem xen from centos 5.3 to 5.7

http://www.centos.org/modules/newbb/viewtopic.php?topic_id=19677

i'm unable to update xen image (centos 5.3) using centos 5.7 repository.

the solution: yum --exclude=elfutils-libelf* --exclude=python* update

done this and finally i can do yum update. :)

http://www.linuxquestions.org/questions/linux-general-1/error-timeout-urlopen-error-timed-out-when-using-yum-on-centos5-2-a-722441/

finally i've found the problem
i think this error because of repository overload
so i edit /etc/yum.conf
and add line timeout=300 (default value is 30 sec)
now it's working...case closed


solution: #yum update yum

Wednesday, September 28, 2011

[solved] 4gb fixup problem end

WARNING: try at your own risk.
2. not use this function when memory below 512MB
3. this break down my production server http://blog.apis17.info/2011/09/segmentation-fault-after-glibci386.html -reformat and reinstall solve the problem

finally 4gb fixup on xen is finally gone. (now i have openvz too :) 2.6.18-274.el5.028stab093.2xen

it fixed using i386 version of glibc

#yumdownloader glibc.i386

then yum downloading 'glibc-2.5-65.i386.rpm' package

#rpm -Uvh --force glibc-2.5-65.i386.rpm

it force 32bit glibc version. default my centos  use i686 even os 32-bit. you can read my previous entries. (thanks to cloudlinux forum)

after several hours recovering back from my lost glibc uninstall thanks to webmin saving my life.
and NEVER use this command rpm -e glibc


now i'm ready to get dangerous on production server. will update this post later.

Monday, September 26, 2011

[solved] unable to update lxlighthttpd

http://forum.lxcenter.org/index.php?t=msg&goto=88875&

Was getting dependency error running yum update
lxlighttpd requires liblua-5.1.so 



solution:


install EPEL repo
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm


remove existing lua
yum remove lua


install EPEL lua
yum install lua


disable the EPEL repo by editing /etc/yum.repos.d/epel.repo file and change 'enabled=1' to 'enabled=0'

Wednesday, June 15, 2011

[Xen] Save file location

cd /var/lib/xen/save

this is path used by xen to store virtual machine state before shutdown/reboot.

i use du -lsh /var/lib/xen/* to trace what folder make my disk space full

Before

Filesystem Size Used Avail Use% Mounted on
/dev/hda6 8.6G 8.6G 0.0G 100% /

After
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 8.6G 7.1G 1.1G 88% /

Solved.

Wednesday, May 18, 2011

Thursday, May 05, 2011

nginx pid error (using nginxcp)

pid      /var/run/nginx.pid;

error:
fopen `/var/run/nginx.pid': No such file or directory [ ok ]

reference: http://bugs.alpinelinux.org/issues/559

vi /etc/nginx/nginx.conf

add

pid /var/run/nginx.pid;

between worker process and error log line.

kill previous nginx process

now you can use:

service nginx restart
success!!

alternative ./configure --pid-path=/var/run/nginx.pid

Tuesday, May 03, 2011

4gb seg fixup on debian

linux02:~# apt-get install libc6-xen

trying this on debian.

Updates:

after install libc6-xen successfully, you need to fire:
echo 'hwcap 0 nosegneg' > /etc/ld.so.conf.d/libc6-xen.conf && ldconfig

Then reboot.. message gone! :)
another debian problems solved.

Thursday, April 14, 2011

4gb seg fixup, process tailwatchd

4gb seg fixup, process tailwatchd (pid 2050), cs:ip 73:001d3b78
printk: 57 messages suppressed.
4gb seg fixup, process tailwatchd (pid 2050), cs:ip 73:001d3b78
printk: 56931 messages suppressed.
4gb seg fixup, process tailwatchd (pid 2050), cs:ip 73:001d3b78
printk: 57093 messages suppressed.
4gb seg fixup, process tailwatchd (pid 2050), cs:ip 73:001d3b78
printk: 114397 messages suppressed.
4gb seg fixup, process mysqld (pid 22760), cs:ip 73:00e6b4b5
printk: 23090 messages suppressed.
4gb seg fixup, process tailwatchd (pid 2050), cs:ip 73:001d3b78
printk: 99415 messages suppressed.
4gb seg fixup, process tailwatchd (pid 2050), cs:ip 73:001d3b78
printk: 57 messages suppressed.

the solution

mv /lib/tls /lib/tls.disabled mv /usr/lib/tls /usr/lib/tls.disabled echo hwcap 0 nosegneg > /etc/ld.so.conf.d/kernelcap-`uname -r`.conf ldconfig
reboot the server
reference: http://forum.lxcenter.org/index.php?t=msg&goto=42027&

Friday, April 01, 2011

finally - NAT server works!

i'm using this template

#---------------------------------------------------------------  # Load the NAT module #  # Note: It is best to use the /etc/rc.local example in this  #       chapter. This value will not be retained in the  #       /etc/sysconfig/iptables file. Included only as a reminder.  #---------------------------------------------------------------    modprobe iptable_nat   #---------------------------------------------------------------  # Enable routing by modifying the ip_forward /proc filesystem file #  # Note: It is best to use the /etc/sysctl.conf example in this  #       chapter. This value will not be retained in the #         /etc/sysconfig/iptables file. Included only as a reminder.  #---------------------------------------------------------------    echo 1 > /proc/sys/net/ipv4/ip_forward    #---------------------------------------------------------------  # Allow masquerading # - Interface eth0 is the internet interface  # - Interface eth1 is the private network interface  #---------------------------------------------------------------    iptables -A POSTROUTING -t nat -o eth0 -s 192.168.1.0/24 -d 0/0 \           -j MASQUERADE     #---------------------------------------------------------------  # Prior to masquerading, the packets are routed via the filter  # table's FORWARD chain.  # Allowed outbound: New, established and related connections  # Allowed inbound : Established and related connections  #---------------------------------------------------------------    iptables -A FORWARD -t filter -o eth0 -m state \           --state NEW,ESTABLISHED,RELATED -j ACCEPT     iptables -A FORWARD -t filter -i eth0 -m state \           --state ESTABLISHED,RELATED -j ACCEPT 


thank you for faj-kumar for let me find this

Tuesday, January 11, 2011

fix xen kernel

this problem happened when i try to use latest version of xen kernel in hypervm
the error code:

Error: (2, 'Invalid kernel', 'xc_dom_parse_elf_kernel: ELF image has no shstrtab\n')

windows vps running ok but linux cannot start.

search thru google and found; http://www.webhostingtalk.com/archive/index.php/t-761158.html

run this script using root:
# /script/fixxenkernel

then done! linux xen client successfully start. - END -

Monday, June 14, 2010

yum and apt at RH9 machine

after a few headache i found this to install yum and apt in my rh9 machine


download and install rpm here and it's works!

lastly with root# type yum update and tadaa.. :)

Saturday, May 01, 2010

wget in windows

recently i having problems when download large files and connection temporarily stops at 90%. that make me crazy to wait more until i found solution on how to continue your download.

i'm using google chrome and download ubuntu 10 64bit. waiting about 3 hours @ 44kB/s. at 90%, connection disconnect and download stops at 449MB. damn. i'm searching in google and found this solution.


for all having same problem you can download wget.exe for windows in this website


copy into c:\windows folder and use wget -c http://[url] to continue. -c switch is for continue current downloads.

C:\Users\user>wget -c http://ubuntu.lagis.at/releases/lucid/ubuntu-10.04-desktop
-amd64.iso
--2010-05-01 12:43:08-- http://ubuntu.lagis.at/releases/lucid/ubuntu-10.04-desk
top-amd64.iso
Resolving ubuntu.lagis.at... 83.164.133.196
Connecting to ubuntu.lagis.at|83.164.133.196|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 731453440 (698M), 232082942 (221M) remaining [application/x-iso9660-imag
e]
Saving to: `ubuntu-10.04-desktop-amd64.iso'

now i'm continue download rest 10%. that's save my bandwidth :) thank you wget.

Tuesday, January 12, 2010

Google chrome print very small - fixed

Currently i'm using google chrome to browse internet, make payment and print some recipt after payment has been made. there are problem here because google chrome does not have printing preference like other browser (ie & firefox). i'm not able to print into actual size and all my recipt are very small :)


for my cute PDF, (always using this for later printing) i use optimize for portability as follows:
1. press ctrl + P for printing menu
2. select CutePDF Writer printer
3. click Preferences > Advanced and click at PostScript Options
4. there are Optimize for speed as default value
5. Select Optimize for portablity and now you can print at actual size. (see screenshot)


thats all. hope this will help.

Monday, January 11, 2010

can ping IP address but cannot browse - settled

i have big problem tomorrow and fixed it today. yess!. the problem is i'm accidently remove winsock2 registry entries to fix another problem but big problem arise.

i've refered to this website and giving me some idea

when i tried to browse internet it shows that page cannot be displayed or connection error. when try to ping, it replies when enter an ip address but cannot resolve ip when enter hostname or domain for example. ping yahoo.com ping google.com failed. ping 192.168.1.1 success.

after doing some search (using another computer, :( i've tried all the steps but not working.

final solution is easy.
1. go to network connection and right click at wireless network connection or local area connection. select properties.

2. click install > protocol > and click add

3. click Have Disk

4. type c:\windows\inf into copy manufacturer's files from.

5. select Internet Protocol (TCP/IP) and continue. this will reset your TCP/IP network configuration and all problems gone.

try first and leave a comment if not able to solve probelm

Sunday, June 05, 2005

sending SMS via internet

i spend much time to set word counter under my sms web here.

Error: this.form has no properties (using firefox javascript console)

Error: Object required (using ie6 browser)
Code: 0

solution:
* forgot to place <form.... > </form> opening tags for textarea options.

finally my sms word counter working normally :)

Thursday, May 26, 2005

Webmin 1.200 setup successfull story..apis17

There are steps to install webmin on your rh9 server..
1. goto http://www.webmin.com and download required file. Just click at Downloading & Installing button and you will go to installation menu.

2. after download webmin-1.200-1.noarch file then you can install by typing this command..

go to terminal, login to normal user

$ .. type su
then enter your root password

go to download path
# type cd /path/to/download/location

then install the software
# use command rpm -ivvr webmin-1.200-1.noarch.rpm

*note that extra v is for debugging process
use -ivr command to disable debug text (u cannot see what happened during installation, so -ivvr is recomended)

next step is to configure your webmin,
first go to /usr/libexec (created after rpm installation)
# type cd /usr/libexec
# type ./setup.sh /usr/local/webmin

wait for a while and just enter default value if asked for example..
[/etc/webmin]
the log directory.. and etc.

almost finished.. the last step is to set default webmin user
# type /usr/local/webmin/changepass.pl /etc/webmin root <your_password>

**you can add and remove another webmin user later in your webmin control panel

now you're done.. test your server now using http://your.server.com:10000

for example http://apis17.serveftp.com:10000
user: pelawat
password: PassPelawat

if you have any comment or question just write here.. tq..
apis17: http://www.apis17.net
Webmin is a great tools for all linux fan to try.. check it out
--get help here
http://www.webmin.com/faq.html
http://www.webmin.com/download.html

http://taufico17.fotopages.com -- pinjam kejap aa.. :)
Related Posts Plugin for WordPress, Blogger...