Fix a broken mysql

If your mysql seems broken and giving errors like: # service mysql start start: Job failed to start or ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) Or if you try to recreate databases with mysqlinstalldb: … … ERROR: 1 Can’t create/write to file ‘./mysql/db.frm’ (Errcode: 13) 041226 xx:xx:xx /usr/libexec/mysqld: …

bash: add-apt-repository: command not found

If you are trying to add a ppa repository and get the following error bash: add-apt-repository: command not found You need to install python-software-properties, like so apt-get install python-software-properties If you have python-software-properties installed and are still getting this error, there is some problem with the package. Uninstall and reinstall it. apt-get remove python-software-properties –purge …

Need to install jpegtran?

If you are optimizing your blog/site, you may end up needing a package for optimizing images called jpegtran It is a part of another package called  libjpeg-progs To install, simply install the package, like so apt-get install libjpeg-progs Done. Link to this post!

Need to install jpegtran?

If you are optimizing your blog/site, you may end up needing a package for optimizing images called jpegtran It is a part of another package called  libjpeg-progs To install, simply install the package, like so apt-get install libjpeg-progs Done. Link to this post!

How to create an admin area on fake domain

Often, you need to have areas of your site that you access through a browser, that you don’t want anyone else to access. These can be control panels or scripts with phpinfo or your apc cache monitoring script. what I do is create a fake domain for these and give them their own site. For …