LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   i can't get my website to work on Linux! (https://www.linuxquestions.org/questions/linux-software-2/i-cant-get-my-website-to-work-on-linux-25841/)

ShawnD 07-15-2002 11:46 PM

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....

acid_kewpie 07-16-2002 03:09 AM

well have you configured apache properly? is the service running ( check "ps aux" ) are you firewalled? is there any info from "dmesg" ?

fatgod 07-16-2002 05:37 AM

whats the output from ./httpd start?

Leffe 07-16-2002 08:12 AM

do a netstat -at and see if port 80 is open also look in apaches logs.

ShawnD 07-16-2002 10:37 AM

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 :)

Rashkae 07-16-2002 03:12 PM

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.

rverlander 07-17-2002 05:56 AM

its supposted to be ./apachectl start not ./httpd start

acid_kewpie 07-17-2002 07:17 AM

/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

ShawnD 07-17-2002 04:22 PM

Quote:

Originally posted by rverlander
its supposted to be ./apachectl start not ./httpd start
really? as root i ran ./httpd start and it worked beautifully and PHP even worxed :)
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 :)

Rashkae 07-17-2002 09:04 PM

Don't leave us in the dark Shawn, what was the problem?

ShawnD 07-17-2002 09:11 PM

i said 2 posts ago, i had to run it as root.

i never had to run it as root before though :(

Rashkae 07-17-2002 09:20 PM

Yikes, sorry,, I wans't paying attention :(......


Yes, deamons that bind to ports below 1000 (somehting, 1024?), need to be run as root.

ShawnD 07-17-2002 10:57 PM

really? i didn't know that.

cool, thanks man :)

rverlander 07-18-2002 12:54 AM

Quote:

Originally posted by Rashkae
Yikes, sorry,, I wans't paying attention :(......


Yes, deamons that bind to ports below 1000 (somehting, 1024?), need to be run as root.

Its daemons/software that uses port 1023 and lower must be as root


All times are GMT -5. The time now is 07:01 PM.