You are not logged in.
Pages: 1
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
<ip> <hostname> <hostname>
127.0.0.1 localhost.localdomain localhost
127.0.0.1 anadyr.localdomain anadyr
try that
Offline
Is your httpd.conf file ok? try httpd -t to test config file.
Offline
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
Have you checked your logs?
Also, try
/usr/sbin/apachectl start
Offline
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
Have you ever considered using PostgreSQL instead... ;-)
Offline
Do you have a proper /etc/hosts?
1000
Offline
Pages: 1