Here is a quick howto for setting up nginx and php-fpm on a Debian 6 VPS. We will be using the dotdeb repository for this so a big thanks goes to the dotdeb guys for building such reliable Debian packages. This has been tested on a Debian 6 OpenVZ minimal template: First add the dotdeb repo to your sources.list file: Code: nano /etc/apt/sources.list add this to the bottom of the file: Code: deb http://packages.dotdeb.org stable all Next, ...
nano /etc/apt/sources.list
deb http://packages.dotdeb.org stable all
วันนี้ได้ลง debian 5.0 บน vps พอสั่ง update เจอเลย ... Reading package lists... Done W: There is no public key available for the following key IDs: 9AA38DCD55BE302B W: GPG error: http://xxx.xx.xxx.org lenny Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B W: You may want to run apt-get update to correct these problems อ๊ากกกกกกกกก ...
1.Install autoconf: Code: apt-get install autoconf 2.Install APC using PECL: Code: pecl install apc 3.After install process we have messages like this: Code: Build process completed successfully Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so' install ok: channel://pecl.php.net/APC-3.0.19 configuration option "php_ini" is not set to php.ini location You should add "extension=apc.so" to php.ini 4.Edit php.ini (via DA or directly: /usr/local/lib/php.ini) ...
apt-get install autoconf
pecl install apc
Build process completed successfully Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so' install ok: channel://pecl.php.net/APC-3.0.19 configuration option "php_ini" is not set to php.ini location You should add "extension=apc.so" to php.ini
Since there are alot of people asking for it, here is my HowTo about mod_ruid2 This is based on my Debian server with Apache 2.x. Installing this module its no longer needed to chmod config files to 666 or upload/attachments directories to 777. Since with this module enabled everything @ HTTP will run under the user itself and not 'apache' anymore. ** If you are using mod_ruid instead of mod_ruid2, first of all remove the mod_ruid line from '/etc/httpd/conf/httpd.conf ...
Forcing reboot Linux is not Windows XP and if reboot fail you usually still connect by SSH and do something. This commands will show you how to remotely hard reboot machine. Hard reboot mean that shutdown scripts will not run and machine reboot immediately without syncing hard disk drives, shutdown applications etc, it’s more like hitting the reset button. Code: echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger This commands enable sysrq and after this calls fast ...
echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger