Category: linux
-
tune2fs, make free space to appear
ext2 ant ext3 file systems has reserved 5% disk space in case of dissapeared free space, for system proccesses. That system wouldn’t crash and would keep going. For big filesystems those 5% are too much(with 1TB it would be 50G for system procceses), so we can tune a little bit. You can check how much…
-
[warn] [client 123.123.123.123] mod_fcgid: stderr: PHP Warning: POST Content-Length of 12430806 bytes exceeds the limit of 10485760 bytes in Unknown on line 0, referer: http://www.yoursite.tld/index.php?phpparams
You can get this error if You are uploading file via post parameters, and it’s bigger than allowed size. [warn] [client 123.123.123.123] mod_fcgid: stderr: PHP Warning: POST Content-Length of 12430806 bytes exceeds the limit of 10485760 bytes in Unknown on line 0, referer: http://www.yoursite.tld/index.php?phpparams In php.ini file You should set bigger limits. post_max_size = 32M…
-
locale.Error: unsupported locale (Solved)
# iotop Traceback (most recent call last): File “/usr/bin/iotop”, line 16, in main() File “/usr/lib/pymodules/python2.6/iotop/ui.py”, line 506, in main locale.setlocale(locale.LC_ALL, ”) File “/usr/lib/python2.6/locale.py”, line 513, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting Solution: # export LCC_ALL=C for making it permanent, You have to add it to .bashrc reference: http://www.quantumwise.com/support/faq/103-localeerror-unsupported-locale-setting?catid=24%3Aerror-messages
-
apache [warn] module ssl_module is already loaded, skipping (Solved)
# httpd -t [Fri Jun 08 11:12:19 2012] [warn] module ssl_module is already loaded, skipping Syntax OK This happens, because ssl module is enabled in more than 1 place: # grep ssl_module -rI /etc/httpd/* conf/httpd.conf:LoadModule ssl_module /usr/lib64/httpd/modules/mod_ssl.so conf.d/ssl.conf:LoadModule ssl_module modules/mod_ssl.so we load all needed modules in one place – /etc/httpd/conf/httpd.conf. So we can safely comment…
-
After upgrade: PHP Warning: PHP Startup: Unable to load dynamic library (Solved)
After upgrade to php53 # php -v PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/dbase.so’ – /usr/lib64/php/modules/dbase.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/ncurses.so’ – /usr/lib64/php/modules/ncurses.so: undefined symbol: first_arg_force_ref in Unknown on line 0 PHP…
-
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory
If You got messed up with PHP in CentOS with plesk 10.4, You might get such error: # httpd -t Syntax error on line 65 of /var/www/vhosts/domain.tld/conf/13353493930.96968200_httpd.include: Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory Small fix to make it work:
-
Ubuntu 12.04 64bit /sbin/insserv: No such file or directory
Small fix if You have an error when You try to turn on startup programs. for example: # chkconfig -s ssh on /sbin/insserv: No such file or directory Fix is simple, just to add symlink: # ln -s /usr/lib/insserv/insserv /sbin/insserv [paypal-donation]
-
Creating debian template for lxc virtualization
To create debian template for lxc you need fresh copy of debian system. Well, we do have one installed recently on guruplug. All debian install on guruplug steps are here.
-
Adding bridge interface for lxc containers
You can make a bridge by changing network configuration file: # cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 # iface…