Author: nsc
-
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…
-
sudo without password
This line should do the job: your_username ALL=(ALL) NOPASSWD: ALL You can edit sudoers file by entering command “visudo”.
-
varnish+nginx as backend and real IP
With default config nginx all IP addresses shows as localhost. Here is configuration to show real client IP. Snippet from varnish config: sub vcl_pipe { set bereq.http.connection = “close”; if (req.http.X-Forwarded-For) { set bereq.http.X-Forwarded-For = req.http.X-Forwarded-For; } else { set bereq.http.X-Forwarded-For = regsub(client.ip, “:.*”, “”); } } sub vcl_pass { set bereq.http.connection = “close”; if…
-
Replace string in all files using sed in linux
Replaces all “OLDSTRING” to “NEWSTRING” in all files $ grep -rl OLDSTRING * | sort | uniq | xargs sed -i -e ‘s/OLDSTRING/NEWSTRING/’ or using find: find */public_html/ -iname ‘*.php’ -exec sed -i -e ‘s/OLDSTRING/NEWSTRING/’ {} \;
-
Installing debian to guruplug SD card
Before installing debian, You need to prepare tftp server and connect to guruplug via serial console. Also You’ll need UTP cable for network connection and SD card for installing the base system.