You are not logged in.

#1 2007-01-05 11:03:49

anadyr
Member
Registered: 2005-02-10
Posts: 225

apache and mysql does not start

I installed apache, but it does not start. If I start /etc/rc.d/httpd, then it fails.

my /etc/hosts file:

#<ip>   <hostname>   <hostname>
127.0.0.1       anadyr.localdomain      anadyr

and the hostname is rc.conf is set to anadyr.

What am I doing wrong?
I am connected to the internet through a roaming wireless internet setting.

Offline

#2 2007-01-05 13:21:07

YscO
Member
From: Netherlands
Registered: 2006-06-25
Posts: 52

Re: apache and mysql does not start

<ip>   <hostname>   <hostname>
127.0.0.1       localhost.localdomain    localhost
127.0.0.1       anadyr.localdomain      anadyr

try that smile

Offline

#3 2007-01-05 15:59:59

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: apache and mysql does not start

Is your httpd.conf file ok?  try httpd -t to test config file.

Offline

#4 2007-01-06 00:00:03

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: apache and mysql does not start

httpd -t gives:
Syntax OK

and changing the hosts into what is suggested does not help either... very strange. But I cannot see the actual error, only the fact that, when I start the daemon, it says failed.

Offline

#5 2007-01-06 00:14:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: apache and mysql does not start

Have you checked your logs?

Also, try

/usr/sbin/apachectl start

Offline

#6 2007-01-06 12:06:13

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: apache and mysql does not start

I have fixed it by commenting the line of the unique_id module in httpd.conf.

But now I came up with almost the identical problem with mysql. I pacmanned mysql, and followed the lamp page (in the archwiki). apache starts, and php works, but when I do

/etc/rc.d/mysqld start

, then it fails with this error

WARNING: The host 'myhost' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h myhost password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
:: Starting MySQL                                                        [FAIL]

the wikipage is completely silent on how to solve this. And there is no wikipage for mysql either... Does anybody have an idea why it does not start?
in the lamp wikipage, there is also a second (manual) way of configuring MySQL, but that does not work either.

Offline

#7 2007-01-09 18:54:20

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: apache and mysql does not start

Have you ever considered using PostgreSQL instead... ;-)

Offline

#8 2007-01-09 20:46:28

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: apache and mysql does not start

Do you have a proper /etc/hosts?


1000

Offline

Board footer

Powered by FluxBB