Categories
Linux UNIX

Password Protect Website

There are two files that must be inside your root directory in order to password protect your site. .htaccess — the .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration. .htpasswd — .htpasswd is a flat-file used to store usernames and password […]

Categories
Linux UNIX

Reset Root MySQL Password

Error $ mysql -u root Error 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO) Stop mysqld deamons $ sudo service mysql stop Start a mysql deamon with the –skip-grant-table option $ sudo mysqld_safe –skip-grant-tables Open a┬áseparate┬áterminal and and run the following commands $ mysql mysql> use mysql; mysql> UPDATE user SET password=PASSWORD(‘YOUR_NEW_PASSWORD_HERE’) WHERE […]

Categories
Linux UNIX

ZIP & UNZIP Files & Directories

I thought I’d create a quick reference of useful zip and unzip commands for those of you that aren’t too familiar doing it via command line. Definition: zip is a compression and file packaging utility for Unix, VMS, MSDOS, OS/2, Windows NT, Minix, Atari and Macintosh, Amiga and Acorn RISC OS. ZIP a File zip […]