LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-16-2002, 12:46 AM   #1
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Rep: Reputation: 15
Unhappy 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....
 
Old 07-16-2002, 04:09 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
well have you configured apache properly? is the service running ( check "ps aux" ) are you firewalled? is there any info from "dmesg" ?
 
Old 07-16-2002, 06:37 AM   #3
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
whats the output from ./httpd start?
 
Old 07-16-2002, 09:12 AM   #4
Leffe
LQ Newbie
 
Registered: Apr 2002
Distribution: RH X
Posts: 21

Rep: Reputation: 15
do a netstat -at and see if port 80 is open also look in apaches logs.
 
Old 07-16-2002, 11:37 AM   #5
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
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
 
Old 07-16-2002, 04:12 PM   #6
Rashkae
Member
 
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15
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.
 
Old 07-17-2002, 06:56 AM   #7
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
its supposted to be ./apachectl start not ./httpd start
 
Old 07-17-2002, 08:17 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
/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
 
Old 07-17-2002, 05:22 PM   #9
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
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
 
Old 07-17-2002, 10:04 PM   #10
Rashkae
Member
 
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15
Don't leave us in the dark Shawn, what was the problem?
 
Old 07-17-2002, 10:11 PM   #11
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
i said 2 posts ago, i had to run it as root.

i never had to run it as root before though
 
Old 07-17-2002, 10:20 PM   #12
Rashkae
Member
 
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15
Yikes, sorry,, I wans't paying attention ......


Yes, deamons that bind to ports below 1000 (somehting, 1024?), need to be run as root.
 
Old 07-17-2002, 11:57 PM   #13
ShawnD
Member
 
Registered: Jul 2002
Distribution: Mandrake 8.2
Posts: 127

Original Poster
Rep: Reputation: 15
really? i didn't know that.

cool, thanks man
 
Old 07-18-2002, 01:54 AM   #14
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
website vs linux? rickycen Linux - General 7 08-12-2005 02:23 PM
website doesn't like linux ak99505 Linux - Software 11 02-04-2005 05:53 PM
Website needs lots of work Shade Linare 22 09-10-2004 05:53 AM
I can't get my Website to work on my local intranet. tivoli pete Linux - Newbie 9 10-13-2003 04:23 PM
Perl script for website won't work klintonray Programming 5 07-27-2003 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration