Skip to main content

Thread: Ghost host && virtualhost not working properly


i setup lamp on ubuntu 10.0.4 desktop using tasksel pma , working on configuring virtual hosts more browse sites development , or testing on localhost.i have 2 problems. every time restart apache or work on virtualhost error:
code:
$ sudo /etc/init.d/apache2 restart sudo: unable resolve host ubuntu  * restarting web server apache2                                                apache2: apr_sockaddr_info_get() failed ubuntu apache2: not reliably determine server's qualified domain name, using 127.0.0.1 servername  ... waiting apache2: apr_sockaddr_info_get() failed ubuntu apache2: not reliably determine server's qualified domain name, using 127.0.0.1 servername
i have virtualhost default , wordpress. how error caused , how can resolve it?
second issue, when go wordpress-dev /etc/hosts file neatly directs me virtualhost wordpress residing in /var/www/wordpress, when click see comment url localhost in it:
code:
http://localhost/wordpress/?p=1#comments
. wordpress permalinks issue or virtualhost missconfiguration?

here virtualhost wordpress
code:
<virtualhost 127.0.1.1:80> 	serveradmin webmaster@localhost  	documentroot /var/www/wordpress/ 	<directory /> 		options followsymlinks 		allowoverride none 	</directory> 	<directory /var/www/wordpress/> 		options indexes followsymlinks multiviews 		allowoverride none 		order allow,deny 		allow 	</directory>  	scriptalias /cgi-bin/ /usr/lib/cgi-bin/ 	<directory "/usr/lib/cgi-bin"> 		allowoverride none 		options +execcgi -multiviews +symlinksifownermatch 		order allow,deny 		allow 	</directory>  	errorlog /var/log/apache2/error.log  	# possible values include: debug, info, notice, warn, error, crit, 	# alert, emerg. 	loglevel warn  	customlog /var/log/apache2/access.log combined      alias /doc/ "/usr/share/doc/"     <directory "/usr/share/doc/">         options indexes multiviews followsymlinks         allowoverride none         order deny,allow         deny         allow 127.0.0.0/255.0.0.0 ::1/128     </directory>  </virtualhost>
and here hosts file:
code:
127.0.0.1	localhost 127.0.1.1	wordpress-dev  # followinag lines desirable ipv6 capable hosts ::1     localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts

well, unixmen solved errors adding
code:
servername localhost
code:
/etc/apache2/apache2.conf
. after restarting apache
code:
$sudo /etc/init.d/apache2 restart  sudo: unable resolve host ubuntu   * restarting web server apache2                                                 ... waiting
why this:
code:
sudo: unable resolve host ubuntu
after restarting , why wordpress-dev still shows localhost in urls not know yet.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [SOLVED] Ghost host && virtualhost not working properly


Ubuntu

Comments

Popular posts from this blog

Flash Builder 4 - Debugger fails to connect

"Error compiling the data model"

Thread: Ubuntu not working - mount /dev on /root/dev failed : no such file or directory