LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-05-2004, 02:02 AM   #16
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30

comment out the line that says NameVirtualHost now
and do a
Code:
apachectl configtest
if all is ok, do
Code:
apachectl start

Last edited by linux_terror; 12-05-2004 at 02:04 AM.
 
Old 12-05-2004, 02:12 AM   #17
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
root@server:/usr/sbin# apachect1 start
-bash: apachect1: command not found

I don't understand, it was working before
 
Old 12-05-2004, 02:13 AM   #18
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
root@server:/usr/sbin# apachect1 start <---has a type-o the l is a 1
 
Old 12-05-2004, 02:15 AM   #19
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
I did a 1, still nothing
 
Old 12-05-2004, 02:17 AM   #20
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
1 is wrong.

ok....if apachectl is in /usr/sbin/ do this
Code:
cd /usr/sbin
./apachectl start
 
Old 12-05-2004, 02:19 AM   #21
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Didn't work, would you recommend a reinstall of apache? how would I do that?
 
Old 12-05-2004, 02:20 AM   #22
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
copy paste this line:
Code:
/usr/sbin/apachectl restart
btw it's not suppose to give you any output unless there's an error

Last edited by Demonbane; 12-05-2004 at 02:21 AM.
 
Old 12-05-2004, 02:20 AM   #23
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
apache is not broken.

what does
Code:
/etc/init.d/httpd restart
give you

Last edited by linux_terror; 12-05-2004 at 02:21 AM.
 
Old 12-05-2004, 02:22 AM   #24
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
root@server:~# /usr/sbin/apachect1 restart
-bash: /usr/sbin/apachect1: No such file or directory

root@server:~# /etc/init.d/httpd start
-bash: /etc/init.d/httpd: No such file or directory

I'm sorry this is a hassle, im not exactly an expert at this yet
 
Old 12-05-2004, 02:24 AM   #25
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
root@server:~# /usr/sbin/apachect1 restart can you not see that that is a one at the end of your command? copy and paste this
Code:
/usr/sbin/apachectl restart
copy and paste copy and paste copy and paste copy and paste copy and paste copy and paste copy and paste copy and paste copy and paste copy and paste copy and paste
 
Old 12-05-2004, 02:28 AM   #26
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
OMG you are right, I kept thinking the L was a 1, hahaha

/me slaps himself in the head!

root@server:~# /usr/sbin/apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
/usr/sbin/apachectl restart: httpd started

lynx http://10.0.0.10

Looking up 10.0.0.10
Making HTTP connection to 10.0.0.10
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://10.0.0.10/

root@server:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:E8:4F:E1:7F
inet addr:10.0.0.10 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2574 errors:0 dropped:0 overruns:0 frame:1
TX packets:3214 errors:0 dropped:0 overruns:0 carrier:0
collisions:26 txqueuelen:1000
RX bytes:325473 (317.8 Kb) TX bytes:556023 (542.9 Kb)
Interrupt:10 Base address:0x6800

Just to make sure it IS indeed 10.0.0.10
 
Old 12-05-2004, 02:34 AM   #27
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
what does
Code:
lynx 127.0.0.1
give you?
 
Old 12-05-2004, 02:34 AM   #28
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
root@server:~# lynx 127.0.0.1

Looking up 127.0.0.1 first
Looking up 127.0.0.1
Making HTTP connection to 127.0.0.1
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://127.0.0.1/

*sigh*
 
Old 12-05-2004, 02:36 AM   #29
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
is there an index.html file in your webroot? Is your firewal allowing connections on port 80?
 
Old 12-05-2004, 02:39 AM   #30
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Yep there is a HTML file in there

Is there an inbuilt firewall in Slackware? If so how do I check that it is blocking port 80? My router's NAT has port 80 open.
 
  


Reply



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
Virtual Server LAdProg2005 Linux - Newbie 2 11-09-2005 12:14 PM
Virtual Server GeneralChaos Slackware 2 09-20-2005 07:32 PM
Apache virtual hosts for intranet and external site tawalker Linux - Software 12 06-25-2004 11:01 AM
Virtual Server ONOM Debian 1 09-30-2003 03:27 AM
Apache Virtual Server - 01 bkeating Linux - Software 5 12-05-2002 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:04 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
Open Source Consulting | Domain Registration