Skip to content

Somik's Home

Server admins cheat codes

Menu
  • Bash
  • PHP
  • Arduino/ESP
  • About
    • eBook Reader
    • Codebin
    • User Management
    • Online Ruler
    • ShortURL Generator (Newer)
    • Video Downloader
    • ShortURL Generator (Older)
    • File Sharing
    • WhoIs Search
Menu

Author: somik

Guacamole on Ubuntu 20.04

Posted on 2021-07-292021-07-29 by somik

There are a lot of solutions to remote access your server, however the fastest is to access it directly from the browser itself. The Guacamole sits between your server’s SSH/RDP and your browser so you can access it directly from the browser without going through the hassle of using RDP or Reminna and what not….

Read more

PHP-FPM Restart Upon Crash

Posted on 2021-02-262021-02-26 by somik

PHP-FPM service, when running as socket, seems to crash making Nginx output errors and users frustated. This is a simple fix to bypass the issue with auto restarting the php upon crash. Although it is recommended to see why the crash occurs in first place and fix that first.

Read more

Ubuntu Add Sudo User

Posted on 2020-09-012021-02-26 by somik

It is best not to use root user for anything as root is a common user name. It’s better to create sudo users for these purposes. Here’s the easiest way to add a user to sudo group.

Read more

Ubuntu 20.04 SSH + TOTP

Posted on 2020-08-31 by somik

In order to protect your SSH against hacks, the most basic you can do is to change the port, but that is never enough. We know the basics to be disable root logins, change port, enable pubkey authentication, IP based blocking and so on. However, one shoe never fits all. If you keep changing computers,…

Read more

Nginx SSL Site Config

Posted on 2020-07-26 by somik

Sample configuration used for most SSL sites.

Read more

ESP OTA code upload

Posted on 2020-05-172020-05-17 by somik

When ESP is installed on a project, the USB port is not always accessible. Sometimes, even though the USB is accessible, the device is installed on site and bringing along your laptop to reprogram it is troublesome. It is more convinient to just reprogram it over the air (OTA).

Read more

Nginx + PHP continious output

Posted on 2020-03-232020-06-06 by somik

Some times we requrire the page to display partial content, such as progress while the PHP is still working in background. In apache, disabling output buffering works fine, however for nginx, the following code need to be added on top of any PHP script (before output stats).

Read more

Ubuntu 20.04 Nginx+PHP

Posted on 2019-11-132022-01-10 by somik

This will install Nginx and PHP 7.x on Ubuntu 18.04 or later and perform basic configurations needed to get it up and running. This is used to create servers to serve static content as well as minor PHP scripts that need to run on it. After we’ll set up SSL using LetsEncrypt and use it…

Read more

Ubuntu 20.04 Install Samba

Posted on 2019-10-312020-08-30 by somik

So you want to use a linux server on local network. Great, but if you still have to access the files through ssh or ftp, it is troublesome. So why not access the files over samba network share? It is also great when you want to setup a simple NAS server on your local network.

Read more

Ubuntu 18.04 Install LLMP stack

Posted on 2019-10-222019-10-22 by somik

With the new MariaDB 10+ they have disabled performance_schema, which means your database will consume minimum amount of memory and you can run Lighttpd, PHP and MariaDB on only 256 MB RAM! So here’s how to do it. We’ll also install phpMyAdmin for easy configuration of our mysql server and set it up securely to…

Read more
  • 1
  • 2
  • 3
  • Next
May 2022
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Jul    

Archives

  • July 2021
  • February 2021
  • September 2020
  • August 2020
  • July 2020
  • May 2020
  • March 2020
  • November 2019
  • October 2019

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2022 Somik's Home | Powered by Minimalist Blog WordPress Theme