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

Category: PHP

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

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

PHP IP to Country Script

Posted on 2019-10-192019-10-20 by somik

This is a simple script to translate IP to country. It is usefull when you want to know where your traffic is coming from or perform specific actions to traffic from specific countries. Do take note that users using proxies or VPN can circumvent this and give a false country.

Read more

Server Status Display (Modified)

Posted on 2019-10-152019-10-15 by somik

This will show a simple status of your server including CPU, RAM and disk usage, as well as status of ports you are monitoring. The original script by lfiore has been highly optimized and modified by me. You need to have PHP and any httpd agent (apache or lighttpd or nginx) to be able to…

Read more

First Post

Posted on 2019-10-082019-10-08 by somik

Simple beginnings.

Read more
June 2022
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« 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