vsftpd on Ubuntu server 530 login incorrect error - fixed

When setting up my new web server I had a problem when installing vsftpd on Ubuntu Server 12.04 LTS. After doing the sudo apt-get install vsftpd and enabling login for local users, I got a “Server 530 login incorrect error” when trying to connect with a local user. The settings for disabling anonymous login and allowing local users where set in /etc/vsftpd.conf. [cc lang=“bash”]anonymous_enable=NO local_enable=YES write_enable=YES[/cc] But the ftp server still refused to let me login with any of the users on the system. I tried remove and reinstall, but the problem persisted. Finally I found a thread where others had the same problem. And here’s how to fix the problem. [cc lang=“bash”] sudo apt-get remove vsftpd sudo rm /etc/pam.d/vsftpd sudo apt-get install vsftpd [/cc] ...

May 22, 2012

Web server with SSD disk

SSD My old web server built on old spare parts had a hard disk crash a month ago. So I had to put it up on my BlueHost account while waiting to get hold of a new disk. I decided to try out a SSD disk, so I got hold of a 60gb IBM SSD disk. Without any optimizations, it can now handle double the traffic! I’ll continue to optimize tomorrow to get the most out of it. I’m doing an article on how to set up a LAMP server on Ubuntu Linux for WordPress with all the stuff needed to get W3 Total Cache, APC and other stuff working, because I can’t find a good article that describes everything. I will start writing on it tomorrow.

May 21, 2012

permalinks in Wordpress - changing without losing Google rank

When changing permalinks in Wordpress from an old format to a new, you risk losing Google page rank. On my blog, I’ve had my permalink set to /archives/year/month/day/name-of-article. Looking at my web server log, very few used the archives sidebar, so I removed it. To make the link shorter I needed to remove everything except the article name. But when changing the permalink, all the incoming links will get a 404 error from all old connections, and the search result from Google, lowering your Google ranking. Not good. ...

February 11, 2012

Upgrading to Nginx and getting WordPress to work

So, after doing an upgrade of my Apache installation all my web content stopped working. It continued to give 403 errors. After spending hours changing permissions and checking every little detail I gave up. So I installed Nginx instead. It’s a bit scary to start using a totally new web server software, but why not live dangerously? Anyway, it’s fast! Really fast. The only problem I had was to get all the redirects to work. And I also removed my gallery2 installation and moved the blog to / ...

June 24, 2009

MAMP WordPress Error establishing a database connection

I’ve installed MAMP on my Mac to do some changes to my blog. I tried to set the WordPress wp-config.php file to connect to localhost:8889, but got an error that It could not connect to the database. After replacing localhost:8889 to 127.0.0.1:8889 it works. My quick guess is that permissions for the root user is set to allow connections 127.0.0.1, but not localhost. Anyway, it works now. My wp-config.php file looks like this: ...

March 20, 2009