LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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:44 AM   #31
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30

is there a file specifically called index.html, apache picks up files named index.html as a default in the directory....as far as the firewall, do
Code:
nmap localhost
and look for this

80/tcp open http
 
Old 12-05-2004, 02:45 AM   #32
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
There is a file called index.html in there

root@server:~# nmap localhost

Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-12-04 06:01 EST
Interesting ports on localhost (127.0.0.1):
(The 1651 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
37/tcp open time
113/tcp open auth
139/tcp open netbios-ssn
445/tcp open microsoft-ds
587/tcp open submission

Nmap run completed -- 1 IP address (1 host up) scanned in 1.446 seconds
 
Old 12-05-2004, 02:53 AM   #33
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
Code:
/etc/rc.d/rc.firewall stop
and see if it works, if so then you will have to open port 80 on your firewall
 
Old 12-05-2004, 02:57 AM   #34
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
root@server:~# /etc/rc.d/rc.firewall stop
-bash: /etc/rc.d/rc.firewall: No such file or directory

Heh, does it end?
 
Old 12-05-2004, 03:01 AM   #35
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
Code:
cd /etc/rc.d
ls
post the list
 
Old 12-05-2004, 03:02 AM   #36
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
root@server:~# cd /etc/rc.d
root@server:/etc/rc.d# ls
rc.0@ rc.atalk rc.inet1* rc.mysqld* rc.syslog*
rc.4* rc.bind rc.inet1.conf rc.nfsd* rc.sysvinit*
rc.6* rc.cups rc.inet2* rc.pcmcia* rc.udev*
rc.K* rc.dnsmasq rc.inetd* rc.portmap rc.wireless*
rc.M* rc.font.new* rc.ip_forward rc.samba* rc.wireless.conf
rc.S* rc.gpm* rc.local* rc.sendmail* rc.yp*
rc.acpid* rc.hotplug* rc.lprng rc.serial*
rc.alsa* rc.httpd* rc.modules* rc.sshd*
 
Old 12-05-2004, 03:23 AM   #37
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
What should I do from here? Reinstall apache maybe? because it was working before.
 
Old 12-05-2004, 03:26 AM   #38
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
removed

Last edited by linux_terror; 12-05-2004 at 03:36 AM.
 
Old 12-05-2004, 03:30 AM   #39
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
root@server:/etc/rc.d# chmod 755 /etc/rc.d/rc.firewall
root@server:/etc/rc.d# /etc/rc.d/rc.firewall stop
Loading kernel modules ...
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.secure_redirects = 1
net.ipv4.conf.all.log_martians = 1
Flushing Tables ...
Firewall completely flushed! Now running with no firewall.
root@server:/etc/rc.d# cd /usr/sbin
root@server:/usr/sbin# apachectl start
/usr/sbin/apachectl: line 199: 1156 Segmentation fault $HTTPD
/usr/sbin/apachectl start: httpd could not be started
 
Old 12-05-2004, 03:32 AM   #40
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Segmentation fault? :S
 
Old 12-05-2004, 03:34 AM   #41
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
well, i dunno, theres some misconfiguration with apache. I cant really do much more without physically being in your box.

chmod -x /etc/rc.d/rc.firewall

this will keep that rc script from running on boot. and maybe you want to reinstall apache and start over.
The only other option would be for me to ssh into your server and have a look first hand, I can do that if you want. Just post if you want me to.

linux_terror
 
Old 12-05-2004, 03:36 AM   #42
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Okay i'll let you SSH in, just tell me how you wanna contact me.
I might reinstall apache, ive got nothing important in webroot.
 
Old 12-05-2004, 03:40 AM   #43
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
.

Last edited by linux_terror; 12-05-2004 at 03:44 AM.
 
Old 12-05-2004, 03:43 AM   #44
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Okay give it a try, how do you keep contact in the terminal?
 
Old 12-05-2004, 03:44 AM   #45
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
edited

Last edited by linux_terror; 12-05-2004 at 06:35 AM.
 
  


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 04:19 AM.

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