i can't get my website to work on Linux!
i installed apache by unzipping it,
-running ./config --prefix=/usr/local/apache -typing "make" as root then "make install" as root, -did "chown -R shawn /usr/local/apache" (to make damn sure i can use it) -changed the document root in BOTH places in httpd.conf to /usr/local/apache/realdocs -did the command "chmod -R 755 /usr/local/apache/realdocs" (to make damn sure it can be read) -did the command "./httpd start" while in the apache/bin folder i run a server with dns2go (d2g.com) so i ran that program, when i "ping shawnserver.d2g.com" in console it DOES ping my IP so i know that works. i type shawnserver.d2g.com in the URL bar of Mozilla and it tells me the connection was actively refused. i type 'localhost' as the URL and it refuses....... why? i ran a website on Linux before and it didn't give me problems like this :(, same distro of Linux even.... |
well have you configured apache properly? is the service running ( check "ps aux" ) are you firewalled? is there any info from "dmesg" ?
|
whats the output from ./httpd start?
|
do a netstat -at and see if port 80 is open also look in apaches logs.
|
ok, /usr/local/apache is NOT listed in that ps aux list
the firewall is set to standard, this is the same distribution with the same security settings i had before so that shouldn't be an issue (i say shouldn't, not isn't because i'm not sure) the output of ./httpd start is that it nothing. after you type in that command and hit enter, the display line shows [shawn@shawnserver bin]$ netstat -at did not list port 80 as being used here is what the log says: (date) means just the date, it doesn't actually say (date) [(date)] [crit] (13)Permission denied: make_sock: could not bind to port 80 i ran it as root and it works now for some reason....that is whack. i'm pretty sure that last time i was running it was shawn and not root. the only thing i NEED to run as root is dns2go thank you for all your help :) |
When you .configure Apache as non-root, apache sets your default port to 8080 (it assumes you are running as non-root, and would therefore be unable to bind to port 80), edit your conf file, find the port and Listen directives, and change from 8080 to 80.
|
its supposted to be ./apachectl start not ./httpd start
|
/usr/local/apache won't be listed in ps aux as it's not a program, it's a directory.... ps shows running programs, where apaches actaul executable daemon is httpsd
|
Quote:
as soon as i get MySQL to work (i have no clue what i'm doin), i can run my forum on the Linux puter :) |
Don't leave us in the dark Shawn, what was the problem?
|
i said 2 posts ago, i had to run it as root.
i never had to run it as root before though :( |
Yikes, sorry,, I wans't paying attention :(......
Yes, deamons that bind to ports below 1000 (somehting, 1024?), need to be run as root. |
really? i didn't know that.
cool, thanks man :) |
Quote:
|
All times are GMT -5. The time now is 07:01 PM. |