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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
01-04-2004, 08:35 AM
|
#1
|
Member
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41
Rep:
|
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?
|
|
|
01-04-2004, 07:28 PM
|
#2
|
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142
Rep:
|
Do you have httpd running? Check with "service httpd status", as root.
|
|
|
01-04-2004, 08:24 PM
|
#3
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
01-05-2004, 02:13 AM
|
#4
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
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
|
|
|
01-05-2004, 07:35 AM
|
#5
|
Member
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41
Original Poster
Rep:
|
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.
|
|
|
01-05-2004, 08:33 AM
|
#6
|
Member
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269
Rep:
|
If you're running the service command, afaik you need to be logged in as root, not SU'd.
try: ps -ax |grep httpd
|
|
|
01-05-2004, 08:59 AM
|
#7
|
Member
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381
Rep:
|
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...
|
|
|
01-05-2004, 09:59 AM
|
#8
|
Member
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41
Original Poster
Rep:
|
no it isnt running! why am i gonna start it in Gnoppix?
|
|
|
01-05-2004, 10:09 AM
|
#9
|
Member
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381
Rep:
|
so you can browse your webpage ?! :s
Start it by running
apachectl start
[ first locate the file apachectl ]
Then we mohjy
|
|
|
01-05-2004, 12:15 PM
|
#10
|
Member
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41
Original Poster
Rep:
|
ok i have started it! now what? how can i make it start every time i login?
|
|
|
01-05-2004, 12:32 PM
|
#11
|
Member
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198
Rep:
|
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
|
|
|
01-05-2004, 01:44 PM
|
#12
|
Member
Registered: Jan 2004
Location: Thessaloniki
Distribution: Fedora Core 1
Posts: 41
Original Poster
Rep:
|
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?
|
|
|
01-05-2004, 02:03 PM
|
#13
|
Member
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198
Rep:
|
Hi!
I'm not sure. But ln -s has always worked for me. Check google.
--Taj
|
|
|
01-05-2004, 02:17 PM
|
#14
|
Member
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381
Rep:
|
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...
|
|
|
01-05-2004, 04:10 PM
|
#15
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|