# Sohaib Khan > Field notes on cloud infrastructure, applied AI, software engineering, and the systems behind reliable products. Sohaib Khan writes long-form technical essays and field notes. Topics covered: AI & Machine Learning, Cloud & Infrastructure, E-commerce Solutions and Web Servers & DevOps. ## Articles - [Lakehouse Studio: A Self-Hosted Databricks Alternative](https://sohaib.com/blog/lakehouse-studio-self-hosted-databricks-alternative.md): Lakehouse Studio offers a self-hosted data and AI workspace that allows organizations to maintain control over their data while utilizing modern analytics tools. - [DD Band Explained: A Simple Daily Price Range for ES and NQ Futures](https://sohaib.com/blog/dd-band-explained-daily-price-range-futures.md): This article details the DD Band, a charting tool that helps traders set realistic price expectations and identify unusual market movements in ES and NQ futures. - [Testreel: Turn Any GitHub Repo Into a Tested, Scored YouTube Video (Free and Open Source)](https://sohaib.com/blog/testreel-turn-github-repo-into-video.md): Testreel automates the process of creating YouTube videos for GitHub projects, providing accurate measurements and honest evaluations of software performance. - [I Built My Own Local Noise Cancelling App for macOS](https://sohaib.com/blog/local-noise-cancelling-app-macos.md): Discover how to build a local noise cancelling app for macOS that keeps your audio private while effectively reducing background noise during calls. - [Meet Lumen, the Meeting Assistant That Lets You Actually Be In the Meeting](https://sohaib.com/blog/meet-lumen-the-meeting-assistant-that-lets-you-actually-be-in-the-meeting.md): Think about the last important call you were on. Maybe it was a client pitch, a job interview, or a tense conversation with your team about a missed deadline. Now think about how much of your attention went to typing… - [What I Learned Building a Reusable Microsoft Cloud Foundation for a Large Enterprise](https://sohaib.com/blog/what-i-learned-building-a-reusable-azure-foundation-for-a-large-company.md): I spent the last few months building the Azure and Microsoft 365 foundation for a large enterprise. The shape of the work is the useful part anyway. The brief was not "set up Azure." The brief was "build the thing… - [I Was Diagnosed With Cancer. So I Built an Open-Source Platform](https://sohaib.com/blog/i-was-diagnosed-with-cancer-so-i-built-an-open-source-platform.md): When I was diagnosed with oral squamous cell carcinoma, or OSCC, I started looking for answers. What I found was a field doing extraordinary work, but much of its knowledge was spread across expensive paywalls,… - [When the Code Writes Itself](https://sohaib.com/blog/when-the-code-writes-itself.md): On June 4, 2026, Anthropic published a report called "When AI builds itself." One number from it moved fast: more than 80% of the code Anthropic now merges into its own codebase is written by Claude, the company's… - [From BMW and Audi Luxury to Tesla: The Most Advanced Car I've Ever Owned](https://sohaib.com/blog/from-bmw-and-audi-luxury-to-tesla-the-most-advanced-car-ive-ever-owned.md): Over the years, I've owned some incredible vehicles. My journey started with a BMW 3 Series, then moved to a BMW X6, followed by a BMW 7 Series, and later an Audi A8 L. Every one of those cars had something special… - [WCWS Voice: Free AI Dictation for Mac With Local Whisper, Deepgram Streaming](https://sohaib.com/blog/wcws-voice-free-ai-dictation-for-mac-with-local-whisper-deepgram-streaming.md): There's a frustrating gap in the Mac experience that most people just learn to live with. You want to speak and have your words appear in your email, your notes, your code editor, your chat app and you want it to… - [I Built an AI Trading System Here's What I Learned](https://sohaib.com/blog/i-built-an-ai-trading-system-heres-what-i-learned.md): Honest lessons from building an AI-powered stock trading system. What works, what fails, and what every aspiring quant should know before starting. - [Your Phone Lines Don't Need to Sleep Anymore](https://sohaib.com/blog/your-phone-lines-dont-need-to-sleep-anymore.md): Imagine hiring a phone agent who never calls in sick, never puts a customer on hold for 20 minutes, remembers every caller they've ever spoken to, and gives perfect answers about your products at 3 AM on a Sunday.… - [Automating Proxmox VM Deployment](https://sohaib.com/blog/automating-proxmox-vm-deployment.md): In the world of virtualization and infrastructure management, efficiency is everything. Today, I'm excited to share our latest automation script that transforms the traditionally manual process of creating virtual… - [WCWS CMS](https://sohaib.com/blog/wcws-cms.md): gives you tools to build stronger content with less effort. - [Automate Virtual Machine Creation in Proxmox with Cloud-Init: Complete Guide](https://sohaib.com/blog/automate-virtual-machine-creation-in-proxmox-with-cloud-init-complete-guide.md): Creating virtual machines in Proxmox manually can be time-consuming, especially when deploying multiple instances or standardizing configurations across environments. This comprehensive guide walks you through… - [Building the Future of Voice: My Journey Creating AI Voice Agents](https://sohaib.com/blog/building-the-future-of-voice-my-journey-creating-ai-voice-agents.md): By Sohaib Khan Hello everyone! I'm Sohaib Khan, and today I'm thrilled to share an even more in-depth look at a project I've been passionately developing: the AI Voice Agents Management System. This platform is born… - [DocFlux 2.0: A PDF Knowledge Base](https://sohaib.com/blog/docflux-2-0-a-pdf-knowledge-base.md): In this post, I’ll walk you through the journey of building DocFlux 2.0, a robust PDF knowledge base application using Python, FastAPI, and cutting-edge NLP tools like OpenAI’s API. We’ll also cover how the frontend… - [AI Phone System](https://sohaib.com/blog/ai-phone-system.md): In today’s fast-paced world, seamless communication is more crucial than ever. Whether it’s connecting with customers or managing internal calls, the ability to integrate multiple communication channels into one… - [DocFlux Intelligence: A Deep Dive into an Advanced Document Analysis System](https://sohaib.com/blog/docflux-intelligence-a-deep-dive-into-an-advanced-document-analysis-system.md): A project by Sohaib Khan About the Creator As the creator of DocFlux Intelligence, I'm excited to share this innovative project that combines my passion for AI and document analysis. With years of experience in… - [Web Whisper: Breaking Free from Desktop Constraints](https://sohaib.com/blog/macwhisper-or-echoscripe.md): While desktop transcription tools have dominated the market, Web Whisper emerges as a powerful web-based solution that transforms how we approach audio transcription. As organizations embrace cloud-first strategies,… - [AI Interview Assistant](https://sohaib.com/blog/ai-interview-assistant.md): In a world where technology streamlines processes, the human touch remains essential, especially in interviews. You might wonder how an AI Interview Assistant can balance these two seemingly opposing elements. This… - [How to Install Bitninja for Cloudpanel Control for Server Security](https://sohaib.com/blog/how-to-install-bitninja-for-cloudpanel.md): Introduction Securing your server is a critical aspect of maintaining a robust and reliable online presence. Bitninja, a comprehensive security solution, provides an effective way to protect your server from various… - [Automate Service Monitoring with a Bash Script and Systemd](https://sohaib.com/blog/automate-service-monitoring-with-a-bash-script.md): Keeping your essential services running smoothly is crucial for any server. Ensuring that services like Nginx and MariaDB are always up and running can be a daunting task. In this article, we'll explore a robust… - [Monitoring Website Traffic with a Simple Script](https://sohaib.com/blog/monitoring-website-traffic-with-a-simple-script.md): In the world of website management, keeping track of traffic is essential. Monitoring access logs can help you understand the volume of traffic and identify potential issues like DDoS attacks or server overloads. In… - [Battling the Cross-Origin Request Blocked Journey from Frustration to Triumph](https://sohaib.com/blog/battling-the-cross-origin-request-blocked-journey-from-frustration-to-triumph.md): We've all been there. You're managing your website, everything's running smoothly, and then—bam! You decide to change your domain from https://www.mydomain.com to https://mydomain.com and everything falls apart. What… - [Understanding access.log and Its Importance](https://sohaib.com/blog/claudebot-attack.md): Your server's access.log file is a crucial component for maintaining the health and performance of your website. This log file records every request made to your web server, providing valuable information that can… - [Running Your Own Hosting with a Simple Script on Any *NIX Server](https://sohaib.com/blog/running-your-own-hosting-with-a-simple-script.md): Hosting your own websites on a NIX server can be an empowering and cost-effective way to manage your web presence. Whether you are hosting a personal blog, an e-commerce site, or a portfolio, having control over your… - [Unleashing the Power of Hetzner Cloud with Bash and API Magic](https://sohaib.com/blog/unleashing-the-power-of-hetzner-cloud-with-bash-and-api-magic.md): Hey tech enthusiasts and cloud wizards! 🌟 Today, I’m super excited to share an incredible script that will make your cloud management experience smoother and more efficient. We’re diving into the world of Hetzner… - [Automating Hetzner Snapshot Creation and Cleanup on Debian 12](https://sohaib.com/blog/automating-hetzner-snapshot-creation-script.md): Automating snapshot creation and cleanup is an essential task for server management, ensuring data safety and efficient resource usage. The following Bash script accomplishes this by creating snapshots of a server… - [Understanding Futures Trading: A Comprehensive Guide to Trading NQ (NASDAQ) and S&P 500 (ES)](https://sohaib.com/blog/understanding-futures-trading-a-comprehensive-guide-to-trading-nq-nasdaq-and-sp-500-es.md): Introduction Futures trading is a financial mechanism that allows traders to buy or sell a specific quantity of a commodity or financial instrument at a predetermined price at a specified time in the future. It's a… - [The Hidden Cost of Remote Work: Companies Exploiting Employees with Low Wages and Poor Benefits](https://sohaib.com/blog/the-hidden-cost-of-remote-work.md): In the era of digital transformation, remote work has become a significant trend, especially accelerated by the COVID-19 pandemic. Many companies have transitioned to offering remote positions, touting the benefits… - [Smart AI Cricket: the Future of Hardball That Swings and Adapts to Batter Actions!](https://sohaib.com/blog/smart-ai-cricket-the-future-of-hardball-that-swings-and-adapts-to-batter-actions.md): You might be skeptical about the future of cricket, but get ready to be amazed. Smart AI cricket is revolutionizing the game as we know it. No longer are bowlers relying solely on their skills and intuition. Now,… - [A Beginner's Guide to Stock Price Prediction Using Machine Learning](https://sohaib.com/blog/a-beginners-guide-to-stock-price-prediction-using-machine-learning.md): In this beginner's guide, I will walk you through the process of predicting stock prices using machine learning. It's a challenging task that requires careful analysis and understanding of market trends. By following… - [Wordpress Plugin For Uploading And Publishing Markdown Files](https://sohaib.com/blog/upload-markdown-format-in-wordpress.md): UPDATE I'm working on an enhanced version that enables you to schedule posts with precise timestamps, If you find my plugin useful, a simple backlink and a thumbs up would be greatly appreciated – that's all I'm… - [Creating a Cache Warming Bash Script for your Sitemap](https://sohaib.com/blog/cache-warming-bash-script.md): is a valuable skill for anyone looking to optimize their website's performance. In today's fast-paced digital world, it's crucial to ensure that your web pages load quickly and efficiently for users. Cache warming… - [How To Use Gpt2 In Python](https://sohaib.com/blog/how-to-use-gpt2-in-python.md): Are you interested in generating natural language text with the help of artificial intelligence? Look no further than GPT-2, a powerful language model developed by OpenAI. With its ability to generate coherent and… - [How To Use Gpt2 For Question Answering](https://sohaib.com/blog/how-to-use-gpt2-for-question-answering.md): In this article, we will explore how to use Gpt2 for question answering. Gpt2 stands for Generative Pre-trained Transformer 2 and it is an advanced natural language processing model that has been trained on a massive… - [GPT-2 Output Detector](https://sohaib.com/blog/gpt-2-output-detector.md): What Is GPT GPT stands for "Generative Pre-trained Transformer." It is a type of language model developed by OpenAI that is trained to generate human-like text. The model is pre-trained on a large dataset & can then… - [Google Address API Classifying Address as Residential or Commercial Word Press Plugin](https://sohaib.com/blog/google-address-api-classifying-address-as-residential-or-commercial-word-press-plugin.md): The Google Maps API is a software development kit that allows developers to integrate Google Maps functionality into their own websites & applications. The API allows developers to access data from Google Maps &… - [How to Install LXD Container & HA-Proxy with SSL for Ubuntu 20.x](https://sohaib.com/blog/how-to-install-lxc-container-ha-proxy-with-ssl-for-ubuntu-20-x.md): What is LXD LXD is a next generation system container and virtual machine manager. It offers a unified user experience around full Linux systems running inside containers or virtual machines. LXD is image based and… - [Prerequisite Installing Wordpress 5.9 Nginx - Mariadb - Php-7.4 w/ PHP 7.4 FPM Standalone Server without any control panel](https://sohaib.com/blog/prerequisite-installing-wordpress-5-3-nginx-mariadb-php-7-3-w-php-7-3-fpm-standalone-server-without-any-control-panel.md): I am sharing how do I normally install the required software to run Wordpress using Woocommerce on a standalone server without using any bloated control panel including the all time JUNK CPANEL and all the others. I… - [NGINX Config Generator](https://sohaib.com/blog/nginx-config-generator.md): I found this gold mine today and I tell you this is the best site for generating accurate Nginx configuration with all the necessary configuration. I am assuming you're running Ubuntu or any other Nix flavor and have… - [Security Headers Cloudflare Worker](https://sohaib.com/blog/security-headers-cloudflare-worker.md): Hardening your headers and secure your site - Special Thanks to pascalandy Goto Worker's and then Launch Editor copy the code - Once done add route and link to your script let securityHeaders = {… - [How to add year which changes dynamically in Woocommerce or WordPress](https://sohaib.com/blog/how-to-add-year-which-changes-dynamically-in-woocommerce-or-wordpress.md): You simply need to edit your functions.php. function yearshortcode() {
$year = date('Y');
return $year;
}
addshortcode('year', 'yearshortcode'); Now go to your Footer widget and add the shortcode or… - [MARIADB MYSQL Creating Database and Giving Permission](https://sohaib.com/blog/mariadb-mysql-creating-database-and-giving-permission.md): MуSQL іѕ аn ореn-ѕоurсе dаtаbаѕе management software that hеlрѕ uѕеrѕ store, organize, аnd lаtеr rеtrіеvе data. It hаѕ a vаrіеtу of орtіоnѕ to grant ѕресіfіс users nuanced реrmіѕѕіоnѕ within thе tables аnd… - [Installing Wordpress 5.x on Fresh Ubuntu Server 19.x](https://sohaib.com/blog/installing-wordpress-5-x-on-fresh-ubuntu-server-19-x.md): In this small post , I will discuss about how to install Wordpress and its prerequisites, I am not going to waste your time and have you read same thing over and over again to gain more SEO crap, so I will cut to the… - [Why Bunny CDN](https://sohaib.com/blog/why-bunny-cdn.md): I've used many CDN to name a few Cloud Front from Amazon Max CDN - Now called Stackpath Incapsula now called Imperva I mean what is up with name changing these days :) I am very much impressed with Bunny CDN - Here… - [Setup Timezone in Ubuntu & Sync your clock](https://sohaib.com/blog/updating-ubuntu-timezone.md): When you install a brand new NIX server, We need to make sure your time zone is accurate, At least I do - I am in EST NY Time zone, I will show you how to set this up. I am assuming you've root shell access sudo… - [Run Full Featured Accounting in Odoo 12](https://sohaib.com/blog/run-full-featured-accounting-in-odoo-12.md): At first you need to enable developer settings in Odoo by simply going to settings and then activate developer mode , goto your user account and enable show full accounting features. Once that's done, download this… - [Setup Nginx for Odoo with SSL using Let's Encrypt](https://sohaib.com/blog/setup-nginx-for-odoo-with-ssl-using-lets-encrypt.md): OpenERP backend We are assuming you've Odoo already installed on your server, If it's not installed use my guide to install it first. How to install Odoo on Ubuntu or Debian Install Nginx and Certbot first sudo apt… - [How to Install Let's Encrypt Free SSL on any Linux Flavor OS](https://sohaib.com/blog/how-to-install-lets-encrypt-free-ssl-on-any-linux-flavor-os.md): Super simple laxy mehthod apt-get install git git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt sudo ./letsencrypt-auto --nginx 📚 Related Articles → Nginx Deny From IP → How to Install LXD… - [How to Install Odoo in Debian or Ubuntu](https://sohaib.com/blog/how-to-install-odoo-in-debian-or-ubuntu.md): Last updated April-15-2022 Once you are logged in, run the following command to update all installed packages to the latest available version apt-get update && apt upgrade 3. Install PostgreSQL server Odoo requires a… - [Database creation error: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) HINT: Use the same encoding as in the template database, or use template0 as template. Odoo 10 Ubuntu 16.04](https://sohaib.com/blog/database-creation-error-new-encoding-utf8-is-incompatible-with-the-encoding-of-the-template-database-sql_ascii-hint-use-the-same-encoding-as-in-the-template-database-or-use-template0-as-templat.md): root@server:~# su postgres postgres@server:~ $ psql -U postgres psql (9.0.3) Type "help" for help. postgres=# update pgdatabase set datallowconn = TRUE where datname = 'template0'; UPDATE 1 postgres=# \c template0… - [Generate BIOS Update Key on Super Micro Server *SOLVED*](https://sohaib.com/blog/generate-bios-update-key-on-super-micro-server-solved.md): After spending a lot of time and doing some research, It was a pain to update BIOS on Super Micro Server - I am running X9DRW-iF and few other's my server went, Because I brick this sucker badly. First I update the… - [Amazon Lightsail But Why?](https://sohaib.com/blog/amazon-lightsail-vs-ec2.md): Alright Hom'es .. Today I spend few hours trying to figure out which is what and what is what :) - I am not a writer but this is just my diary so I know what I did, If you like it or find any grammar mistakes , Good… - [Increase price by 10% in Excel using VB Formula](https://sohaib.com/blog/increase-price-by-10-in-excel-using-vb-formula.md): This is the code to add to your excel file in order for you to increase the price, Please pay special attention where it say's Call CheckDollar ("A") and so on. Basically, I don't know in which column or sheet you… - [Class Does Not Exist Magento 2.2 *SOLVED* When running compiler](https://sohaib.com/blog/class-does-not-exist-magento-2-2-solved-when-running-compiler.md): After spending some time and and almost gave up on all my Magento2 Store - I install this JUNK EXTENSION called MAGENERDS and it cause me this crash. After realizing the fact that for some reason I can't run compiler… - [Access denied; you need (at least one of) the SUPER privilege(s) RDS AWS *SOLVED*](https://sohaib.com/blog/access-denied-you-need-at-least-one-of-the-super-privileges-rds-aws-solved.md): The MySQL server provided by RDS does not allow a DEFINER syntax for another user. Solution sed -E ‘s/DEFINER=[^]+@[^]+/DEFINER=username/g’ store.sql > storefix.sql 📚 Related Articles → How to Install LXD Container… - [Access EC2 Linux box over ssh without .pem file](https://sohaib.com/blog/access-ec2-linux-box-over-ssh-without-pem-file.md): 1. Login to your EC2 instance using your .pem file ssh -i yourpemfile.pem ubuntu@ec2-.compute-1.amazonaws.com 2. Create a new user that will access the instance using a password: $ sudo useradd -s /bin/bash -m -d… - [How to setup Nginx on Webmin?](https://sohaib.com/blog/how-to-setup-nginx-on-webmin.md): Installing Virtualmin wget http://software.virtualmin.com/gpl/scripts/install.sh Run the script to install Virtualmin. sh /root/install.sh Follow on-screen guide to install this. systemctl stop apache2.service… - [Magento 2.12 Varnish 5.0 Error 503 Backend fetch failed **SOLVED** PHP 7.1 Nginx Varnish 5.x](https://sohaib.com/blog/magento-2-12-varnish-error-503-backend-fetch-failed-solved-php-7-1-nginx-varnish-5-x.md): Magento 2.x 503 backend fetch failed varnish This blog is my diary so I can keep track what I fix and what I've learned and today after spending some time and pulling my hair, as we are about to launch our e-commerce… - [Magento2 Authorize.NET CIM Opensource](https://sohaib.com/blog/magento2-authorize-net-cim-opensource.md): After spending some time I found free Opensource Authorize.NET CIM why pay $200 when you can get opensource. https://github.com/pmclain/module-authorizenetcim 📚 Related Articles → Set up Magento 2 with Redis,… - [Set up Magento 2 with Redis, Varnish and Nginx as SSL termination](https://sohaib.com/blog/set-up-magento-2-with-redis-varnish-and-nginx-as-ssl-termination.md): In this article, we will show you how to install Magento 2 on an Ubuntu 16.04 VPS with MariaDB, PHP-FPM 7.0, Varnish as a full page cache, Nginx as SSL termination and Redis for session storage and page caching. This… - [Magento 2.x: Required parameter ‘theme_dir’ was not passed](https://sohaib.com/blog/magento-2-x-required-parameter-theme_dir-not-passed.md): This error message appears in Magento 2 when you deleted a theme directory and the theme registry reminds in the database. To fix this issue you need to go to app/design/frontend and check which themes you have… - [Displaying Files like phpinfo.php Nginx](https://sohaib.com/blog/displaying-files-like-phpinfo-php-nginx.md): Problem I was having was is basically I cannot run a simple info.php inside my publichtml after doing some research I came up with this rewrite if you've any other solution do let me know it works for me. Nginx This… - [Magento2 Set Anchor to YES in all Categories](https://sohaib.com/blog/magento2-set-anchor-yes-categories.md): I am assuming you've PHPMYADMIN , not going in detail as to how you install that and all that crap First identify the attribute id of the isanchor attribute: SELECT FROM eavattribute where attributecode =… - [Magento Page Cache Warming](https://sohaib.com/blog/magento-page-cache-warming.md): Lets use a simple software to warm pages so they load faster and already in cache. Before we do anything we need to install the following software sudo apt-get install libxml-xpath-perl siege -y Now lets setup… - [Magento 2 - (2.13) Failed to load resource: the server responded with a status of 404 (Not Found) **Solved](https://sohaib.com/blog/magento-2-2-13-failed-load-resource-server-responded-status-404-not-found-solved.md): After spending sometime with Magento 2 (2.13) , as I am running Nginx and PHP 7 fpm I was getting a lot of error and after some research I was able to find a solution simply replace location static in given magento 2… - [How to install Nginx Google Page Speed on Ubuntu 16.10 x64 Xenial](https://sohaib.com/blog/how-to-install-nginx-google-page-speed-on-ubuntu-16-10-x64-xenial.md): Happy New Year !!!!!! I am not going to bore you guys, I’ve already completed the building process and the hard work so you can enjoy . Install Nginx with Google Page speed At the time of building this we’ve latest… - [How to install Nginx Page Speed on Debian x64 Jessie](https://sohaib.com/blog/how-to-install-nginx-page-speed-on-debian-x64-jessie.md): Happy New Year !!!!!! I am not going to bore you guys, I've already completed the building process and the hard work so you can enjoy . Install Nginx with Google Page speed At the time of building this we've latest… - [Installing Magento 2.x and PHP 7.0 on Debian Jessie x64](https://sohaib.com/blog/installing-php-7-0-debian-jessie-x64.md): Step by Step gpg --keyserver keys.gnupg.net --recv-key 89DF5277 && gpg -a --export 89DF5277 | apt-key add Add sources nano /etc/apt/sources.list deb http://packages.dotdeb.org jessie all deb-src… - [Odoo9 Community to Odoo9 Enterprise Database Upgrade](https://sohaib.com/blog/odoo9-community-odoo9-enterprise-database-upgrade.md): Today I've purchase Odoo9 Enterprise therefore I need to move my database from Odoo9 community to Odoo9 Enterprise at first I was getting Internal server error then after some research I realize that I need to… - [Magento2 Varnish 503 Backend Fetch Failed Problem **SOLVED](https://sohaib.com/blog/magento-503-backend-fetch-failed.md): I've M2.10 , Varnish , Redis and Nginx intalled and using Php7.08 with installed after doing a lot of research I wasn't able to find a solution for this. I was moving around attributes from groups to un-assigned… - [How to use Gmail or Amazon SES with Magento](https://sohaib.com/blog/how-to-use-gmail-or-amazon-ses-with-magento.md): Let's configure Gmail or Amazon SES with Magento2 or Magento 1 or any other php application, basically will configure our server in a way so any php application will then use local php mail but email will route with… - [How to Enable Verbose in Ubuntu](https://sohaib.com/blog/how-to-enable-verbose-in-ubuntu.md): You are trying to start up a service and you are not getting an output here is a quick solution Edit the following file /etc/default/rcS edit VERBOSE=no to VERBOSE=yes 📚 Related Articles → Nginx Deny From IP → How… - [Magento 2.01 Broken CSS and Magento 2.01 Admin Page not found](https://sohaib.com/blog/magento-2-01-broken-css-and-magento-2-01-admin-page-not-found.md): Fix is easy as I am using Apache(2), I was able to fix this by adding the following piece of code in my 000-default.conf Located at /etc/apache2/sites-available AllowOverride All … - [Mod_pagespeed with Apache on Ubuntu](https://sohaib.com/blog/mod_pagespeed-with-apache-on-ubuntu.md): Speed Up the Web with Google Page Speed = Apache2 If you’re on a 64-bit version (likely)... wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stablecurrentamd64.deb If you’re on a 32-bit version (less… - [Apache2 w/Percona 5.6 Installation Ubuntu Willy](https://sohaib.com/blog/apache2-wpercona-5-6-installation-ubuntu-willy.md): Its been a long time since my last update, I was busy with family and work. Today I will show how we install Apache2 using Ubuntu latest edition Willy as of Jan-23-2016 apt-get update apt-get install apache2… - [Magento Apc and Memcached Speed up Magento](https://sohaib.com/blog/magento-apc-and-memcached-speed-up-magento.md): I hear a lot of time that people complaints about "Magento is very slow". In my opinion Magento is not a good solution if you are hosting it in a Shared environment, If you've a dedicated server then YES, use it… - [Nginx Deny From IP](https://sohaib.com/blog/nginx-deny-from-ip.md): Nginx is a very unique Web Server, today I will show how to deny IP using Nginx, Please note you must have this module installed in your Nginx web server , If you don't have it installed - Simply download my… - [Nginx Ubuntu Server 15.04 Precompile Pagespeed Module](https://sohaib.com/blog/nginx-ubuntu-server-15-04-precompile-pagespeed-module.md): Great news, I was able to compile Nginx with the following modules for all Ubuntu flavors listed below nginx version: nginx/1.6.2 built by gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13) TLS SNI support enabled configure… - [Nginx Pagespeed Modsecurity Pre-compile](https://sohaib.com/blog/nginx-pagespeed-modsecurity-and-all-other-modules-precompile.md): I've pre-compile nginx 1.6.2, with the following modules. You will get Google Pagespeed, ModSecurity and all your Gzip compression modules, I've compile this for the Ubuntu 12.04 x64 & Ubuntu 14.04 x64. Let's get… - [Block Country using Iptables](https://sohaib.com/blog/block-country-using-iptables.md): #!/bin/bash # Purpose: Block all traffic from AFGHANISTAN (af) and CHINA (CN). Use ISO code. # # See url for more info - http://www.cyberciti.biz/faq/?p=3402 # Author: nixCraft under GPL v.2.0+ #… - [How to setup a Webserver *Nginx w/Percona](https://sohaib.com/blog/how-to-setup-a-webserver-nginx-wpercona.md): Today, I will share how to setup a Nginx Webserver allowing you to create dynamic web applications with Nginx, PHP5 and MySQL, Please make sure that you've a fresh Ubuntu Server with just OpenSSH Server installed.… - [How I got my Gtmetrix.com Score to 1.98s](https://sohaib.com/blog/how-i-got-my-gtmetrix-com-score-to-1-98s.md): My last project was very challenging where I was told to optimize Magento Site, Customer was using a dedicated server where I've to optimize not only Magento but also Optimize & Speed up the server, Took me some real… - [Optimize Mysql Percona Database for 12GB Ram Server](https://sohaib.com/blog/optimize-mysql-percona-database-for-12gb-ram-server.md): Step 1) Switch from MyISAM to InnoDB (e.g. XtraDB) Step 2) /etc/mysql/my.cnf defaultstorageengine = InnoDB innodblogfilesize = 128M innodbbufferpoolsize = 8G innodbfilepertable = 1 innodbopenfiles = 400… - [Magento Defer JavaScript](https://sohaib.com/blog/magento-defer-javascript.md): How I achieve 2.8s Load time in Magento as compare to 10s using the following In order to have Defer Javascript, Please change the following files page.xml, my page.xml is stored at… - [WebServer with Percona Google Pagespeed](https://sohaib.com/blog/webserver-with-percona-google-pagespeed.md): Today : I would like to share how you setup a fast Webs Server with MYSQL . In this tutorial you don’t really need any control panel and waste your money, like Cpanel or this and that, I am not discouraging any one… - [How to Install & Setup your NGINX Webserver](https://sohaib.com/blog/how-to-install-setup-your-nginx-webserver.md): NGINX Webserver 📚 Related Articles → Openerp Automated Install Script v7.0 → Apache Traffic Server Reverse Proxy - [How To Install Zabbix on Ubuntu 12.04 Precise & Configure](https://sohaib.com/blog/how-to-install-zabbix-on-ubuntu-12-04-precise-configure.md): Hello - Today, I am going to show how you can install zabbix monitoring tool on Ubuntu 12.04 Precise. Edit apt source list to add the PPA: sudo nano /etc/apt/sources.list Add the following items at the end of the… - [How to Install Nginx with Google Page Speed](https://sohaib.com/blog/how-to-install-nginx-with-google-page-speed.md): Hello Its been a long time since I last updated my blog as I was busy with so many other projects, Today I am going to show an easy way to install Nginx with Google Page speed. I have only tested this with Ubuntu… - [How to fix Magento 1.8 Admin Blank Page](https://sohaib.com/blog/how-to-fix-magento-1-8-admin-blank-page.md): Ok, on to the solution:: So, you left compilation mode on, but cannot reach the backend to switch it off. If you have SSH access, you are in luck. Step 1: Check current compilation status $ php -f shell/compiler.php… - [Install OpenERP v7 on Ubuntu 12.10 Server](https://sohaib.com/blog/install-openerp-v7-on-ubuntu-12-10-server.md): Next, download my script. from here Or, at the command prompt, type the following ; cd /tmp chmod +x installfreshopenerp.sh sudo ./installfreshopenerp.sh The script will do the following ; Update the Ubuntu… - [Magento upgrade from 1.7 to 1.8](https://sohaib.com/blog/magento-upgrade-from-1-7-to-1-8.md): Take a Code backup as well as DB backup before upgrade. Use SSH to upgrade. Follow below steps to upgrade.. Open command terminal. Go to your Magento directory by cd command like cd /var/www/yourmagento/ & run below… - [Cannot edit or delete categories in Magento Nginx](https://sohaib.com/blog/cannot-edit-or-delete-categories-in-magento-nginx.md): Just Add location ~ .php/ { rewrite ^(..php)/ $1 last; } 📚 Related Articles → Set up Magento 2 with Redis, Varnish and... → How to warm cache in Magento 2 - [How can I setup a remote connection to MySQL?](https://sohaib.com/blog/how-can-i-setup-a-remote-connection-to-mysql.md): mysql or: /usr/local/mysql/bin/mysql Your shell prompt should now look like this: mysql> Run this command: GRANT ALL PRIVILEGES ON . TO USERNAME@IP IDENTIFIED BY "PASSWORD"; FLUSH PRIVILEGES; 📚 Related Articles →… - [Openerp Automated Install on Centos 6.3](https://sohaib.com/blog/openerp-automated-install-on-centos-6-3.md): This script installs OpenERP v7.0 on a Centos 6.3 server (minimal i386) with PostgreSQL 9.2 #!/bin/sh # Modified script from Carlos E. Fonseca Zorrilla yum -y install wget unzip rpm -ivh… - [Configuring a failover cluster with heartbeat + pacemaker](https://sohaib.com/blog/configuring-a-failover-cluster-with-heartbeat-pacemaker.md): I am going to show of how you configure heartbeat with pacemaker Active / Passive Cluster in easy word if one server goes offline second one kicks right back up. We are using Apache2 to monitor and using Ubuntu 12.04… - [Openerp Automated Install Script v7.0](https://sohaib.com/blog/openerp-automated-install-script-v7-0.md): I will assume you have installed Ubuntu 12.04 precise. There are PLENTY of resources on the web if you need detailed help with that! Simple Openerp Installation to make your life easier Start by updating the package… - [DRBD+Heartbeat+Mysql](https://sohaib.com/blog/drbdheartbeatmysql.md): MySQL high availability cluster with DRBD+Heartbeat+MySQL - You can also download the cleaner version of this document by clicking here - Download here 1) Set up hostnames and network On all Nodes. Please copy this… - [Yslow Score Tweak](https://sohaib.com/blog/yslow-score-jump.md): Yslow Score Little trick - to increase your YSLOW Score Open your .htaccess file and add the following Header set X-CDN "WCWS Internet Inc" Header set X-Powered-By "TDINX" Header unset Pragma To do the… - [Apache Traffic Server Reverse Proxy](https://sohaib.com/blog/apache-traffic-server-reverse-proxy.md): Apache Traffic Server This tutorial is about setting up Apache Traffic Server to work as Reverse Proxy to cache your website for SSL and NON SSL domain for CENTOS 6.x 1.Aapache Traffic Server is not available in… - [Squid as Reverse Proxy](https://sohaib.com/blog/squid-as-reverse-proxy.md): Squid Reverse Proxy 1.Installing the squid proxy in the server # yum install squid 2.All the configuration should are done at squid.conf file which is located at /etc/squid/squid.conf Changes : At acl Declaration :… - [Amazon S3 Backup via S3tools](https://sohaib.com/blog/amazon-s3-backup-via-s3tools.md): Amazon S3 I wrote this HOW to on DirectAdmin Forum Guide is for CENTOS 6.x x32 or x64 yum install s3cmd -y - If you can't install s3cmd then please follow the instructions cd /etc/yum.repos.d touch s3cmd.repo nano… - [Nginx + Varnish](https://sohaib.com/blog/nginx-varnish.md): Install Varnish & Configure to work with NGINX Configure the VCL VCL is the Varnish Configuration Language. The VCL file holds most of the config. sudo vi /etc/varnish/default.vcl Tell Varnish to communicate with the… - [NGINX Configuration for CS-Cart](https://sohaib.com/blog/nginx-configuration-for-cs-cart.md): I have spend a lot of times configuring CS-Cart to work with NGINX server , bottom line is to cache static content and have speed at the same time. This is my step by step tutorial to install NGINX server and run… ## Topics - [AI & Machine Learning](https://sohaib.com/category/ai-machine-learning): Artificial Intelligence, GPT models, voice agents, and machine learning projects - [Cloud & Infrastructure](https://sohaib.com/category/cloud-infrastructure): AWS, Hetzner, databases, SSL, security, and cloud services - [E-commerce Solutions](https://sohaib.com/category/ecommerce-solutions): Magento, WordPress, WooCommerce, and online store development - [Web Servers & DevOps](https://sohaib.com/category/web-servers-devops): Server configuration, Nginx, Apache, Linux administration, monitoring, and caching solutions ## Optional - [RSS feed](https://sohaib.com/rss.xml): RSS 2.0 feed of the latest articles - [JSON feed](https://sohaib.com/feed.json): JSON Feed 1.1 with full article text - [Full text](https://sohaib.com/llms-full.txt): Every published article as raw markdown in one file - [About](https://sohaib.com/about): Who Sohaib Khan is and what this site covers - [Contact](https://sohaib.com/contact): Get in touch