Wednesday, January 8, 2014

apt-get extremely slow to resolve domains?

It's probably trying to do DNS resolution through ipv6 which is not configured. You can edit
/etc/gai.conf 
and add the line
precedence ::ffff:0:0/96  100
to the end of the file. This way DNS lookups are done with ipv4 prioritized over ipv6.

Tuesday, October 15, 2013

"Failed to connect to connect to FTP server" issue (Wordpress)

I set up a Wordpress installation on my web server. As soon as I tried to install a new theme/plugin, I got the message "Failed to connect to FTP server mydomain.com:21". I was certain that the address and login credentials where correct since I could connect to my FTP server with an FTP client (Filezilla).

I proceeded to set my wp-content folder's permissions to 755, as well as it's contents with:
chmod -R 755 /var/www/mywordpressfolder/wp-content/
I then changed ownership of the wp-content folder and its contents to the www-data user (apache user/group).
chown -R www-data /var/www/mywordpressfolder/wp-content/
This solved my issue. Needless to say, change mywordpressfolder with where your wordpress installation is. If your installation is not in a folder just use /var/www/wp-content/. If you get a "Permission denied/Operation not permitted" message, you probably omitted using "sudo" in front of the command.

Wednesday, April 11, 2012

Disable special characters Mac OSX such as á ä é ë (single-double quote/vowel)

Go to System Preferences -> Language and Text -> Input sources. Deselect U.S International, and select U.S.
Done.

Friday, December 2, 2011

Solve "Standard Mode: Fault outside of MS-DOS Extender." in virtualbox

I got this error when trying to install Windows 98 in Virtualbox.
Just uncheck these options:
  • "Enable VT-x/AMD-V" and 
  • "Enable PAE/NX"
Source

Monday, July 25, 2011

Toshiba bios "Yes" string

If a Toshiba Qosmio bios asks for a key string in order to make a setting change, press: 1234 [ENTER].

Thursday, June 9, 2011

Error 0x80072f8f when trying to activate MS Windows

Just fix the date/time in Windows, either by syncing with a time server, or manually.

Friday, June 3, 2011

After successful update: "An automated WordPress update has failed to complete"

Just navigate to your wordpress directory via ftp and delete the ".maintenance" file. Only do this AFTER you have successfully updated wordpress.