Wednesday, April 30, 2008

Apache2 Installation problems on ubuntu 7.10

Apache2 was already installed on my machine but I just couldn't figure out how to get it working. Everything seemed fine, just that the server wouldn't start on the localhost.

I googled for a long time and then finally hit upon this lovely thread.

The solution was pretty simple, I just had to bring up my localhost.

Problem : lo was down

* feeling embarrassed *

Solution

sudo lo up

Saturday, April 12, 2008

Mysql-Server-5.0 Installation errors on Ubuntu errors

When one tries to install mysql on Ubuntu OS, the following error might occur.

user@usersLappy:~$ sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up mysql-server-5.0 (5.0.45-1ubuntu3.3) ...
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.0 (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.0; however:
Package mysql-server-5.0 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

A simple remedy is to edit the following file.

/etc/mysql/my.cnf

Comment the part where it binds to the local directory.

# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1

save the file and try to install it again :)

It would work.