Skip to main content

:: httpd could not be started ::

:: error

[ myhostname: ~ ]# apachectl restart 
/usr/local/sbin/apachectl restart: httpd could not be started

the error log:
[alert] mod_unique_id: unable to hostbyname("myhostname") 




:: how to fix
[ myhostname: ~ ]# vi /etc/hosts
add line like this :
192.168.0.100  myhostname.tld myhostname
o 192.168.0.100 - your servers ip address
o myhostname.tld - your servers domain name
o myhostname - your servers host name

:: restarting httpd
[ myhostname: ~ ]# apachectl start

:: checking the httpd port
[ myhostname: ~ ]# netstat -tlupn | grep 80 
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      30391/httpd

:: links
+ googlelinux
+ rasyid

Comments

Popular posts from this blog

:: wordpress theme reset to default

:: whatis wordpress WordPress is an open source CMS, often used as a blog publishing application powered by PHP and MySQL. It has many features including a plugin architecture and a templating system. -[ http://en.wikipedia.org/wiki/Wordpress ]- :: reset themes wordpress to default # with cli [ linux: ~ ]$ mysql -u user -p mysql> use dbwordpress; mysql> UPDATE wp_options SET option_value = 'default' WHERE option_name = 'template'; mysql> UPDATE wp_options SET option_value = 'default' WHERE option_name = 'stylesheet'; # share hosting / cpanel / phpmyadmin 0. login on cpanel / phpmyadmin 1. select db for wordpress 2. select SQL tabs and run this command: UPDATE wp_options SET option_value = 'default' WHERE option_name = 'template'; UPDATE wp_options SET option_value = 'default' WHERE option_name = 'stylesheet'; 3. click GO 4. open your site, if you still get blank screen, you can login on admin page ...

:: install postfix, cyrus, courier, mysql, postfixadmin, squirrelmail on opensuse

:: what is please take a look this. :: install dependency + installing berkeleyDB + installing MySQL + installing Apache + installing PHP :: remove sendmail [ root:~ ]# rpm -e sendmail --nodeps :: build cyrus-sasl [ root: ~ ]# wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.23.tar.gz [ root: ~ ]# tar -xzf cyrus-sasl-2.1.23.tar.gz [ root: ~ ]# groupadd mail [ root: ~ ]# useradd -u 96 -d /usr/cyrus -g mail cyrus [ root: ~ ]# passwd cyrus [ root: ~ ]# cd cyrus-sasl-2.1.23/ [ root: cyrus-sasl-2.1.23 ]# export CPPFLAGS="-I/usr/local/mysql/include/mysql" [ root: cyrus-sasl-2.1.23 ]# ./configure --enable-anon --enable-plain --enable-login --enable-sql --disable-krb4 --disable-otp --disable-cram --disable-digest --with-mysql=/usr/local/mysql --with-plugindir=/usr/lib/sasl2 --without-pam --without-saslauthd --without-pwcheck [ root: cyrus-sasl-2.1.23 ]# make && make install :: installing Postfix + download postfix [ root:~ ]# wget http://mirror.postfix.jp/...

:: solution for libtoolT error

:: what is please take a look at this. :: case /bin/rm: cannot remove `libtoolT': No such file or directory if you get some error message like that when you compiling some application from source you can do like this for resolve on it. :: solution this example for resolve on compiling mysql package. install libtool packages from repository and run liboolize command line on the package: linux:~/download/mysql-5.1.37 # yum install libtool linux:~/download/mysql-5.1.37 # libtoolize --force linux:~/download/mysql-5.1.37 # autoconf and/or linux:~/download/mysql-5.1.37 # autoreconf after that you can recompile and install your package from source. :: links + GoogleLinux