[Solution] How to reset a MySQL root password easily

Stop the MySQL service sudo /etc/init.d/mysql stop Start MySQL without a password sudo mysqld_safe –skip-grant-tables & Connect to MySQL mysql -uroot Set a new MySQL root password Stop and start the MySQL service Log in to the database mysql -u root -p Warning mysqld_safe Directory ‘/var/run/mysqld’ for UNIX socket file don’t exists Method 2


[Solution] Add Expires headers on Ubuntu

How to add expire header on Ubuntu with Apache2 : Edit your httpd.conf The module ‘mod_expires’ must be activated Add the new configuration 1) Activate mod_expires sudo a2enmod expires sudo /etc/init.d/apache2 restart 2) Add new lines on your httpd.conf nano /etc/apache2/apache2.conf Then add these lines at the end ExpiresActive On ExpiresByType image/gif “access 1 month”

Read More