Sticky

Introduction A “LAMP” stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored inContinue Reading

Redirecting a Web Folder Directory to another Directory in .htaccess Redirecting within the same domain Using htaccess in your root level of your web server, how you redirect one page to another is: RewriteRule ^url-string-to-redirect$ https://www.linuxguru.co.in/your-new-url-string [R=301,L] Or Redirect 301 /path/to-old-url https://www.linuxguru.co.in/path/to-new-url Or Redirect / https://www.linuxguru.co.in/path/to-new-url To redirect the contentsContinue Reading

Install Node 8.10+8.17+Yarn+NPM3.5 to 6.13 sudo apt update sudo apt install -y nodejs nodejs –version sudo apt install npm npm –version curl -sL https://deb.nodesource.com/setup_8.x | sudo bash – curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add – echo “deb https://dl.yarnpkg.com/debian/ stable main” | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-get update && sudoContinue Reading

Install Ruby 2.5+gem 2.0.14.1 (Ubuntu 14.04,16.04,18.4 LTS) sudo apt update sudo apt install -y ruby sudo apt install -y gem sudo apt-get install ruby-full

Install Mongdb 3.8 Ubuntu 14.4,16.04,18.04 LTS MongoDB is a document database with the scalability and flexibility that you want with the querying and indexing that you need sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 sudo apt-get install gnupg echo “deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse” | sudo tee /etc/apt/sources.list.Continue Reading

Install Redis 4.9  Ubuntu 14.04,16.04,18.04 LTS sudo apt update sudo apt-get install -y redis-server sudo systemctl enable redis-server.service sudo nano /etc/redis/redis.conf

Redirect 443 to 8001,8002,3000 etc via Proxy sudo a2enmod proxy sudo a2enmod proxy_http Set SSL Proxy open this file sudo nano /etc/apache2/sites-available/000-default-le-ssl.conf IfModule mod_ssl.c> <VirtualHost *:443> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creatingContinue Reading

Redirect website other Domain or non-www to www.domainname.com  and Other Domain sudo nano /etc/apache2/sites-availabl/000-default.conf <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, theContinue Reading

Install Composer Ubuntu 16.04,18.04 LTS sudo apt update sudo apt install curl php-cli php-mbstring git unzip curl -sS https://getcomposer.org/installer -o composer-setup.php php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);” php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === ‘e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;” php composer-setup.php php -rContinue Reading