A no nonsense notebook for nerds
-
Magento File Directory
/app The etc folder contains the di.xml configuration file The di.xml file contains class mapping and interface preferences Contains the design folder for themes. /bin The directory contains the magento file or a Command Line Interface script /dev Magento 2 testing and development tools are placed in this folder. /lib The internal and web subfolders…
-
Linux commands for SSH
tar– to create archive files(.zip, .tar) Syntax: tar [options] [archive-file] [file or directory to be archived] Options: -c : Creates Archive -x : Extract the archive -f : creates archive with given filename -t : displays or lists files in archived file -u : archives and adds to an existing archive file -v : Displays…
-
.htaccess redirect from http to https and from non-www to www redirect – Make site permanently SSL secured
put this in your htaccess file:
-
RPM repo not found connection errors on Centos Redhat duplicate problems
yum -y update command failing Command line will show messages like xxx is outdated and v abc will be installed but at the end it shows duplicate binary, please remove duplicate first. Process Backup first Integrity Check Find Problems Identify duplicates Clean duplicates re build conf cache update command remove backup file .prev if successfully…
-
Linux – Rescue disk how to reset root password and unblock yourself if locked out
Centos as test server Current situation – you are locked out, cant use WHM or SSH or anything else to login. You may or may not remember the password. In any case you can reproduce the following steps to unblock yourself. 1. Use any other linux OS cd which can run live. I prefer FINNIX…
-
Rakit library for PHP validation
To enable hastle free validation, use raket library. First install composer and then run “composer require rakit/validation” in your project directory. Edit the names according to your input field names. You can also create your own validation file. For further reference, visit https://github.com/rakit/validation
-
Installing Magento Common Issues
Following are the steps to complete install Magento error-free:- Uncomment the files which are required by Magento in php.ini and restart the server If installation error occurs, set memory_limit = 786M if still error occurs, uninstall the db and make it again after successfull install, go to (root_directory)app/etc/di.xml and change “Symlink” to “Copy” in developerMaterialization section.…
-
PHP Malware – Important regex to bust infected website
-
Light flick effect on image hover – CSS
-
How to install wordpress on cPanel
WordPress is a free and open-source content management system (CMS) based on PHP and MySQL.Features include a plugin architecture and a template system. Follow these steps to install WordPress: Download WordPress Download WordPress from this link: https://wordpress.org/download/ Create Database Create an empty database for WordPress and specify it’s username and password. Set up Wizard Step 1: Upload the downloaded compressed file on your website root directory…
Got any book recommendations?