LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-04-2004, 08:35 AM   #1
Nik0s
Member
 
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41

Rep: Reputation: 15
Cant make web server run my local web page...


I ;am trying to transfer my perl website from xp to linux. I put the appropriate file to the /var/www and /var/www/cgi-bin but when i am trying htp://localhost from konqueror it doesnt shoe my webpage it just says it cannot connect to localhost. do you know why? i have configured httpd.conf but still i cannot see my webpage. any ideas on how to proceed?
 
Old 01-04-2004, 07:28 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Do you have httpd running? Check with "service httpd status", as root.
 
Old 01-04-2004, 08:24 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Moved: Not a Success Story and seems more suitable in Newbie. May I remind you to try and place your threads in the most appropiate forum, its not rocket science you know. Asking a question is not a Success Story. Regards.
 
Old 01-05-2004, 02:13 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Hi there,

1. Yes, please check if httpd is in fact running, that would help .
2. You say it's a perl website, well, do you have the perl module loaded for apache? Otherwise, it will not serve out your perl webpage.
3. Your cgi-bin is being Scriptaliased correct? You will need to make sure it is as well.
4. Are you running any sort of firewalls?
5. Have you tried just putting in a test index.html file in the documentroot (/var/www) and seeing if that showed up anything when you "http://localhost"?

-twantrd
 
Old 01-05-2004, 07:35 AM   #5
Nik0s
Member
 
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41

Original Poster
Rep: Reputation: 15
Either on Knoppix neither in Gnoppix as well i can run service httpd status, it says command not found. In redhat it works but not on my Gnoppix Debian Distro. Do i have to use another command for that?

ps. trickykid i thought this was the appropriate forum to ask this question!

Last edited by Nik0s; 01-05-2004 at 07:37 AM.
 
Old 01-05-2004, 08:33 AM   #6
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
If you're running the service command, afaik you need to be logged in as root, not SU'd.

try: ps -ax |grep httpd
 
Old 01-05-2004, 08:59 AM   #7
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
also check if httpd is listening on port 80 by issueing the following command:

netstat -an | grep :80

it should output something like this:

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN

that is IF httpd is running.

Then we can get down to whether you are configured correctly...
 
Old 01-05-2004, 09:59 AM   #8
Nik0s
Member
 
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41

Original Poster
Rep: Reputation: 15
no it isnt running! why am i gonna start it in Gnoppix?
 
Old 01-05-2004, 10:09 AM   #9
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
so you can browse your webpage ?! :s

Start it by running

apachectl start

[ first locate the file apachectl ]

Then we mohjy
 
Old 01-05-2004, 12:15 PM   #10
Nik0s
Member
 
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41

Original Poster
Rep: Reputation: 15
ok i have started it! now what? how can i make it start every time i login?
 
Old 01-05-2004, 12:32 PM   #11
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
Hi!
I'm assuming that you come up in runlevel 5 (GUI). If not, then replace 5 with 3. I'll say below.

As root, type:
cd /etc/rc.d/rc5.d

If you come up in console, then type:
cd /etc/rc.d/rc3.d

Then, type this command:
ln -s /etc/init.d/httpd S92httpd

The 92 insures that Apache starts after networking and all that good stuff.
Reboot, and it'll come up everytime your computer starts.
Good luck!
--Taj
 
Old 01-05-2004, 01:44 PM   #12
Nik0s
Member
 
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41

Original Poster
Rep: Reputation: 15
thanks a lot, but isnt there some comamnd like setup where i can set which daemons i want to start every time at boot like theri is on redhat distrubutions? is there a command like setup?
 
Old 01-05-2004, 02:03 PM   #13
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
Hi!
I'm not sure. But ln -s has always worked for me. Check google.
--Taj
 
Old 01-05-2004, 02:17 PM   #14
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
You, know sometimes I think that people can be lazy... Cant you just try and do what Taj recommended? It doesnt seem like you have... I apologise if I am wrong...
 
Old 01-05-2004, 04:10 PM   #15
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Not all linux distrobutions are the same. You can start services at boot time with "chkconfig" command on redhat but there is no such command on debian. The only way (could be others) that I know how to start services is by performing soft links like how tmorton has stated. The Debian distro requires more manual labor than say redhat.

-twantrd
 
  


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
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 07:11 PM
adding more web servers to make web server farm linuxboy69 Linux - Networking 5 07-09-2004 09:50 AM
I would like to make a web page! HELP domen Red Hat 4 02-07-2004 11:36 PM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM
cannot view web page from local lan Tigger Linux - Networking 4 05-31-2003 01:03 AM


All times are GMT -5. The time now is 08:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration