*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hey everyone. I am running freeBSD 5.4. I installed Apache with the ports collection. I have had it up and running for awhile with rarely an issue. Well over the last few days I have been messing with installing php and MySQL from the ports collection php5 and MySQL client and server 4.1. Well after a reboot last night and trying to start MySQL with
I recieved the following error.
rm: /tmp/mysql.sock: Operation not permitted
I figured no big deal I can narrow that down and fix.
Then I tried to access my webserver to get the BSD book I got a connection refused. Whoa, what the heck? Apache is not even running so I do
OSIRIS# apachectl status
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://localhost/server-status
So maybe I just needed to start it, which is odd.So I do
OSIRIS# apachectl start
[Fri Oct 14 01:49:26 2005] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
/usr/local/sbin/apachectl start: httpd could not be started
Guys I am at a loss here, it seems one problem after the other.I fix one thing and something else goes down.I know this is probably frm the MySQL install and trying to configure accounts, I just fixed an hostname issue from this thread http://www.linuxquestions.org/questi...hreadid=369879
so I doubt its that as a matter of fact I rechecked those files and everything is still there I added before. To make sure it wasnt a firewall issue, I dropped the firewall for a second to test an apachectl start and same deal as above. Could someone please save me before I rip my eyeballs out and go insane?
routers, thanks for the help. Here are the outputs:
OSIRIS# apachectl configtest
[Fri Oct 14 14:21:14 2005] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
OSIRIS# su mysql
This account is currently not available. (I thought mysql account was created automatically)
OSIRIS# /usr/local/bin/mysqld_safe &
OSIRIS# Starting mysqld daemon with databases from /var/db/mysql (awesome!)
OSIRIS# telnet localhost 3306
telnet: connect to address ::1: Connection refused
Connected to localhost.MYLAN.
Escape character is '^]'.
HHost 'localhost.MYLAN' is not allowed to connect to this MySQL serverConnection closed by foreign host.
OSIRIS# telnet localhost 80
telnet: connect to address ::1: Connection refused
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
#LISTEN (was already commented out)
Port 80 (yes)
#NameVirtualHost *:80 (this was commented out, as well as the stuff that follows)
# ServerAdmin email@example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
Um why would I need virtual hosts if I have not needed it before, isnt that for running more than one webserver from 1 ipaddress? I only have one webserver and one ipaddress.When my friends and I connect since I dont have a real domain name, only what my little LAN is running, if I do need virtual hosts how would I set it up?
In any case here is the httpd-error.log: (The error log was full of some script kiddie bullsh&* trying to look for passwd files but they failed miserably...at least I hope so...I removed the skiddie stuff and was left with this)
[Thu Oct 13 13:17:19 2005] [error] [client 220.127.116.11] request failed: URI too long
[Thu Oct 13 13:17:49 2005] [error] [client 18.104.22.168] File does not exist: /usr/local/www/start/_vti_bin/_vti_aut/fp30reg.dll
[Thu Oct 13 13:38:56 2005] [notice] caught SIGTERM, shutting down
[Thu Oct 13 13:40:24 2005] [alert] mod_unique_id: unable to gethostbyname("OSIRIS.MYLAN")
[Fri Oct 14 01:49:27 2005] [alert] mod_unique_id: unable to gethostbyname("OSIRIS.MYLAN")
[Fri Oct 14 02:05:36 2005] [alert] mod_unique_id: unable to gethostbyname("OSIRIS.MYLAN")
[Sat Oct 15 00:36:46 2005] [alert] mod_unique_id: unable to gethostbyname("OSIRIS.MYLAN")
for your info i have one domain but i still use <VirtualHost> that for easy maintenance if next day i need to add my freind site for testing purpose and my domain is handle by dyndns.org . FOC
because in virtualhost i can point the file or whatever inside user path not inside system path
like /usr/local/www/bla.. bla.. or such that , yeah my web run for LAN also sometime i need to transfer file from room to another room i no need to execute samba whch i just open browser
and shoot away http://noc/ its would open the web for me
be patient a lot of thing you can learn from there , u see my path i put the userdir in the /export/site/user i doing this i have own reason, normaly ppl put userpath either in /home/user
how ever make the simple thing success first then can go for advance modification
but looks like u install frontpage which i never touch that,
root@noc:~# locate fp30reg.dll
i dont have that dll but looks like ur system read that , btw are u give up
otherwise cat /etc/hosts
let me see because i not understand this part
maybe this one u more knowledge about this , let me know we share
No I do not have frontpage installed...I prefer coding by hand.Tha was probably from some of the script kiddie crap searching for front page exploits.....
No I will never give up....its too much fun!
ermm now i know why u have this problem
OSIRIS# apachectl configtest
[Fri Oct 14 14:21:14 2005] [alert] httpd: Could not determine the server's
can u repair ur /etc/hosts
192.168.0.11 noc.homelinux.net noc
$ cat /etc/hosts
::1 localhost.MYLAN localhost <- remove this line
127.0.0.1 localhost >-- remove .MYLAN localhost OSIRIS
192.168.X.XXX <- add ur eth0 or rl0 or whatever ur nic gip ip here,
so might become like this
192.168.0.200 OSIRIS.domain.com OSIRIS
thanks me by helping other *nix users , make opensource comunittee bigger and largest in the world , my intention to remove micro$oft from this world (i know imposible ) , ms is now going to move job to china, this mean economy US move to China .
I know my company depending a lot of US economy satuation, imagin if US economy become worst, what happen to me, i migh loose job
my company allowed me to introduce system for other company for my extra pocket money,
charging for linux desktop installation , i charge USD 66.28 for 1 unit customize fully working linux system have a look
Yeah I try to help others when I feel I can.
I am currently in school and going to graduate next year, so hopefully I can help with trying to invade office spaces with *nix desktops.
Yes more jobs are going overseas than ever before, If you were here we could grab a drink and talk for hours on that subject alone.
Thanks again routers.
Nice screen shots too!