Skip to content

Instantly share code, notes, and snippets.

View fawad4real's full-sized avatar
💭
Doing JavaScript

Fawad Javed fawad4real

💭
Doing JavaScript
  • LantroTech
  • Islamabad
  • 20:09 (UTC +05:00)
  • X @fawad4real
View GitHub Profile
@fawad4real
fawad4real / wordpress_on_ubuntu.txt
Last active April 26, 2021 09:13
Cmds to Install LAMP and WordPress on Ubuntu Server 18.04.xx
Note : This gist do not tell you how to install ubuntu server , all the steps are after the installation.
INSTALL LAMP USING TASKSEL
__________________________
1) Check the ip to see if OS is connected to internet : ifconfig
// if proper ip is not obtained then check your network settings.
2) Install tasksel (to install LAMP): sudo apt-get install tasksel
@fawad4real
fawad4real / Overide_permision.txt
Created April 21, 2021 06:02
Overide permision on Wordpress to install themes and plugins in linux
Wordpress overide permision:
_____________________________
sudo chown -R www-data:myusername /var/www/html
sudo find /path/to/your/wordpress/install/ -type d -exec chmod 775 {} \;
sudo find /path/to/your/wordpress/install/ -type f -exec chmod 664 {} \;
@fawad4real
fawad4real / file.txt
Last active April 22, 2021 05:02
upgrade from disco 19.04 to focal 20.04 after end of life using do-release-upgrade method
Faced the same problem after end of life. The process to upgrade to 20.04 was first to upgrade to 19.10. Following is how I upgraded 19.04 to 19.10
Open /etc/apt/sources.list
Delete everything and replace it with the following: (you might want to keep a backup just in case)
deb http://old-releases.ubuntu.com/ubuntu eoan main
deb http://old-releases.ubuntu.com/ubuntu eoan-updates main
deb http://old-releases.ubuntu.com/ubuntu eoan-security main
Finally, just run these commands one by one:
#!/bin/bash
# This will remove Apache
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin
sudo apt remove apache2.*
sudo apt-get autoremove
whereis apache2
sudo rm -rf /etc/apache2
@fawad4real
fawad4real / .gitignore
Created April 27, 2022 09:19 — forked from salcode/.gitignore
.gitignore file for a general web project - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore
# Bare Minimum Git
# https://salferrarello.com/starter-gitignore-file/
# ver 20220128
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/10017553/raw/.gitignore
# to download this file
#