≡ Menu

centos logoIf you want to synchronize the system clock in your CentOS Linux box, you can install and configure NTP (Network Time Protocol, a means of transmitting time signals over a computer network).

step 1: install ntp

step 2: Turn on NTP service

step 3: Synchronize the system clock with 0.pool.ntp.org server

step 4: Start the NTP service

{ 0 comments }

Here is the command how to be able to copy a fil or directory and replace the destination if already existing.

i’m using “Bash”

{ 1 comment }

Kloxo with Nginx or Nginx-Proxy

If you love Kloxo as your Web Control Panel and want to running Nginx as Webserver or want to running Nginx as Proxy, you can Install Kloxo-MR (aka ‘Kloxo for by Mustafa Ramadhan’).

How to install:

1. pre-install — better for fresh install

2. Install/reinstall/upgrade — data not destroyed with this fork – for existing kloxo (6.1.x), run ‘sh /script/update’ first.

To switch from Apache to be Nginx Webserver just login into kloxo and find Switch Program at Home.

kloxo mr nginx proxy

TIPS: To ‘save’ memory if you use Kloxo-MR

  1. Convert mysql to MyISAM engine by running ‘sh /script/mysql-convert –engine=myisam’
  2. Select php-fpm_event on php-type in ‘webserver config’ and can also be enabled on the ‘secondary php’
  3. Select php53u on ‘php branch’ in ‘webserver config’ as php-fpm is problematic with php52
  4. Keep a minimum amount of ‘customer’ and if it might be enough ‘admin’ alone
  5. remove clamav with ‘yum remove * freshclam clamav *’

ref: http://forum.lxcenter.org/index.php?t=msg&th=18842

{ 0 comments }

How To Update OpenBSD Binaries

OpenBSD is binary-centric. You can update the binaries (if any updates/changes are available) by executing pkg_add:

The OpenBSD team recommends using the packages over building from ports

{ 0 comments }

To update the locate database (updatedb) in OpenBSD, running the following command:

{ 0 comments }

openbsdIf you already trying to setup an OpenBSB Webserver using Apache + MySql + PHP, and now you want to replace the apache webserver with Nginx, you can follow the follong tutorial:

Step 1: Remove Apache Webserver

To remove apache webserver:

Step 2: Installing Nginx

Step 3: Intstaling PHP-FPM

Step 4: Start ONMP services automatically

put the following lines:

Step 5: Setting Up Nginx

Edit /etc/nginx/nginx.conf and add “index.php” to the line that has the other index files. The config block should look like this, but you can alter the order if you wish.

Uncomment the following block of configuration to enable nginx to forward PHP requests to php-fpm.

Step 6: Reboot OpenBSD

Once everything is installed and configured to start automatically, reboot to make sure everything starts up as expected.

Step 7: Testing

Create phpinfo file:

Open phpinfo script:

openbsd nginx
{ 0 comments }