Archive for November, 2010

apache2: apr_sockaddr_info_get() failed

on Wednesday 24th November, 2010 Gabe speculated thusly…

Starting httpd: httpd: apr_sockaddr_info_get() failed for hostname.domain.com
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

Fix with these commands :

# hostname HOSTNAME.DOMAIN.COM

Add in to /etc/hosts e.g. # vim /etc/hosts

# echo HOST.DOMAIN.com > /etc/hostname

# /bin/hostname -F /etc/hostname

# apache2ctl graceful

Posted in Information, Linux, Operating System, Server

No Comments »

Easy way to install LAMP (DNS, samba, etc) under Maverick Meerkat Ubuntu 10.10

on Wednesday 24th November, 2010 Gabe speculated thusly…

Either:
$ sudo tasksel

or:
$ sudo tasksel install lamp-server

or:
$ sudo apt-get install php5 mysql-server apache2

Posted in Information, Linux, Operating System, Ubuntu

No Comments »

Ubuntu perl: warning: Setting locale failed

on Wednesday 24th November, 2010 Gabe speculated thusly…

Run as root, or prefix with “sudo”:
# locale-gen en_GB.UTF-8
# dpkg-reconfigure locales

Posted in Information, Linux, Operating System, Ubuntu

No Comments »

selecting in to a same table in mysql

on Friday 19th November, 2010 Gabe speculated thusly…

create temporary table XYZ
select * from category_to_store where store_id = 0
;
insert into category_to_store
select category_id, 1 from XYZ
;

Posted in MySQL, Programming

No Comments »