Setting Up Your Web Server in Minutes: A Beginner's Guide

WhoAmI => notes.sohag.pro/author
Search for a command to run...

WhoAmI => notes.sohag.pro/author
The moment i hit enter with this shell command on my VM. It did not ask me any optons, just gave a long list of script with failed to install error on almost everything.
Laravel on AWS Lambda Imagine running a restaurant where you only pay for the kitchen when someone orders food - that's exactly how AWS Lambda works! In this comprehensive guide, we'll walk through deploying a Laravel application on AWS Lambda, makin...
I had a solid list of reasons my life wasn't moving faster, until a grainy old lecture pointed out the one name missing from it

The finale isn't a victory lap. It's the story of the control I shipped that did nothing, the footgun still sitting in my demo, and the handful of things I'd keep exactly as they are.

How do you hold a large payment for a second pair of eyes without ever letting the unapproved money touch a balance, and how do you stream that decision to the outside world without standing up a broker?

How do you show the total under a parent account when the whole system refuses to store a balance? A recursive query, a trigger that refuses to draw a circle, and a rule about what actually has to sum to zero.

Every time I wanted to change an FX rate I had to edit a file on the server and restart the app. So I moved rates and markup into a live admin API, and then audited it hard enough to find the bug that quietly undid the whole thing.

TL;DR: Want to set up a complete web server for your Laravel project without the headache? Just copy-paste a single command, answer a few simple questions, and you're done! It's like having a tech expert do all the heavy lifting for you.
Command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/sohag-pro/SingleCommand/main/lamp.sh)"
Github: https://github.com/sohag-pro/SingleCommand
Picture this: You've just finished building an awesome web application, and now you need to share it with the world. But wait – setting up a server feels like assembling furniture without instructions, in the dark, while wearing mittens. You need to install Apache, PHP, MySQL, Node.js, and configure them all to work together. It's enough to make anyone's head spin!
That's where this magical little script comes in. It's like having a tech-savvy friend who knows exactly what to do and handles all the complicated stuff for you. Instead of spending hours googling commands and troubleshooting errors, you can have your server ready in about the same time it takes to brew a cup of coffee.
This script sets up what we call a "LAMP stack" (Linux, Apache, MySQL, PHP) along with some extra goodies that modern web development needs. Think of it as preparing a complete kitchen for a chef:
Apache: Your restaurant's front door – it serves your website to visitors
MySQL: Your pantry – stores all your application's data
PHP: Your chef – processes all the requests and creates dynamic content
Node.js: Your sous chef – helps with modern JavaScript tools
Extra utilities: Various helpful tools like Git, Composer, and optionally Yarn and PM2
Before you begin, make sure you have:
A fresh Ubuntu 22.04 LTS server
Admin (sudo) access
An internet connection
5 minutes of free time
Optional: A domain name if you want your site available at yourdomain.com
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/sohag-pro/SingleCommand/main/lamp.sh)"
The script will then ask you a few simple questions:
Which PHP version you want (7.4 through 8.4)
Your preferred MySQL username and password
Which version of Node.js you'd like
Whether you want extra tools like Yarn and PM2
Your GitHub repository URL
Your domain name
That's it! The script handles everything else automatically.
Time-Saving: What usually takes hours of manual setup is reduced to minutes
Error-Proof: No more typos in commands or forgotten steps
Customizable: Choose your preferred versions of PHP and Node.js
Secure: Properly sets up permissions and security configurations
Complete: Includes everything you need for a modern Laravel application
Imagine you're a developer who just finished a client's website. Instead of:
Spending 2 hours installing and configuring packages
Googling "how to set up Apache virtual hosts"
Debugging MySQL permission issues
Fighting with SSL certificate installation
You can just run one command, answer a few questions, and spend those saved hours actually working on your project (or maybe taking a well-deserved break!).
Always run this on a fresh Ubuntu 22.04 installation
Have your GitHub repository URL ready
If you're using a domain name, set up your DNS A record before installing SSL
Keep your MySQL credentials somewhere safe
Make sure your repository has both .env.example and composer.json files
Server setup doesn't have to be complicated or time-consuming. This script turns what used to be a daunting task into something as simple as ordering takeout. Whether you're a seasoned developer tired of repetitive setup tasks or a beginner intimidated by server configuration, this tool helps you get up and running quickly and reliably.
Remember: good tools should make your life easier, not harder. This script does exactly that – it handles the complex technical details so you can focus on what really matters: building great web applications.
Ready to try it out? Grab a coffee, run the command, and watch as your server sets itself up. Happy coding! 🚀