13 Dec

Ubuntu booted into emergency mode

I booted my system this morning and found it was forced into an emergency mode like this:

img_20161214_082619

I found an answer on askubuntu.com which talked about unmounting some device. This remind me of what I did last night. I configured my /etc/fstab file last night to add windows partitions’ infomations there, as well as a Seagate portable disk. But now I am in my office without that Seagate disk. Could it be the missing device that caused the booting problem?

So I booted into a live USB to comment out the Seagate device information in fstab file and reboot the computer again. Now I can boot into my system without any problem!

5 Nov

500 internal server error on visiting encrypted path

I use .htaccess to encrypt “www.actinia.me/test”

the .htaccess file is:

AuthUserFile /home/.htpasswd
AuthName “ceshiyonghu”
AuthType Basic
Require user ceshiyonghu

but when I visited the url, I got a 500 internal server error. I checked the error log (/var/log/apache2/error.log) and find the “AuthUserFile not allowed here” record.

To solve this, I added this:

<Directory /var/www/test/>
Options Indexes FollowSymLinks MultiViews
AllowOverride FileInfo Indexes Authconfig
</Directory>

to apache config file (/etc/apache2/apache2.conf),

and executed:

sudo a2enmod rewrite

sudo service apache2 restart

Now I can visit my test folder!

26 Apr

“Firefox is already running”

Can’t start firefox, it reports:”Firefox is already running, but is not responding.”.

I tried to uninstall, purge uninsiall, wipe mozilla and firefox folds, but it didn’t help.

In the end, I found that starting firefox with a completely new profile helped:

firefox -p

10 Apr

Error establishing a database connection.

It’s been really a long time since my last update. There’s been an “Error establishing a database connection” problem hanppened to my wordpress. I thought it would take some time for me to solve this problem, and I’ve been really busy recently, so I didn’t manage to spare some time for this problem. However, I tried to restart my VPS today and, “PUFF!”, the blog started to work again. A little surprise to my grey life recently.