Skip to content

Instantly share code, notes, and snippets.

@hunterserror
hunterserror / phpini.sh
Created March 4, 2024 17:54 — forked from UbuntuEvangelist/phpini.sh
Edit php.ini Linux
sudo apt update && sudo apt upgrade
sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.1
# Check active php version php -v
php -v
# Check system php version
php --version
# To install another php version same machine
@hunterserror
hunterserror / Drupal Install On Lamp Stack
Created January 26, 2024 09:04
Drupal Install and Optimization
:// Install LAMP Stack//
----Install Apache:
-- sudo apt update
--sudo apt install apache2
--Install MySQL--
---sudo apt install mysql-server--
--Install PHP and Required Modules--
--sudo apt install php libapache2-mod-php php-mysql --
//After installation, restart Apache\\
-- sudo systemctl restart apache2 --
@hunterserror
hunterserror / LAMP Stack Development On-Demand Support Services
Last active January 23, 2024 16:35
On-Demand LAMP Stack Development Assistance
Hire LAMP Stack Expert Support Using Telegram https://t.me/HuntersError
Are you looking to build robust and scalable web applications? Our LAMP stack development service is designed to meet your
needs, offering a comprehensive solution for creating dynamic and feature-rich websites. With our expertise in Linux, Apache,
MySQL, and PHP, we ensure a reliable and powerful foundation for your web development projects.
Support Stack:
- LAMP Stack Setup Linux.
- LAMP Stack Development Support.
@hunterserror
hunterserror / How to recover your system Ubuntu 22.04
Last active January 18, 2024 19:59
Mistakenly Remove python3 / Or purge python3 You will see gonme terminal after reboot.
#When you remove mistakenly python3 or python from your system and after you reboot or shutdown your pc then window become black
-------- then just open up your terminal what do you do then ?
# No tention .... just chill.
# First you have to go root option, then check it's network work or not, How do you check ...
#This command--
---- dhclinet -r;dhclient
# after this you are enable for network connection.
# Recovering Process
---- [ apt install -f ]
# !/bin/sh
sudo -i
apt update && apt upgrade -y
apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
apt install build-essential checkinstall
apt autoremove
apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
cd /opt
wget https://www.python.org/ftp/python/3.11.0/Python-3.11.0.tgz
tar xzf Python-3.11.0.tgz
sudo apt update && sudo apt upgrade
sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.1
# Check active php version php -v
php -v
# Check system php version
php --version
# To install another php version same machine
### Keybase proof
I hereby claim:
* I am hunterserror on github.
* I am hunterserror (https://keybase.io/hunterserror) on keybase.
* I have a public key ASA9r5z5BX0bUdOTIRz2z9C-g9nD0ZVsUVR8hu6O_AcRNAo
To claim this, I am signing this object:
#!/bin/sh
# This Gist specially design for School Of Freelancing remote training.
# FORK THIS GIST THEN RUN ALL COMMANDS ONE BY ONE
# Select The Fastest Apt Mirror and Adjust Ubuntu Default Setting: https://youtu.be/lWHOECQ7t9Q
# Then follow Ubuntu Default settings https://youtu.be/IxmYFA9vneo
# Follow Workground 1 and Workground 2 as attached into this Gist comment section then RUN ALL COMMANDS ONE BY ONE.
# Open your terminal by ctrl+alt+t and run all commands one by one. You can copy and paste into terminal too.
sudo -i