LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-05-2003, 08:35 AM   #1
Xiangbuilder
Member
 
Registered: Apr 2003
Location: Shandong province China
Distribution: fedora core 1.0
Posts: 206

Rep: Reputation: 30
apache question


I have select "everything" during installing Redhat 7.2.
In home folder, there is no "httpd" folder,
so I add it, and add a simple *.html file in it.
I have applied the web address: xiangbuilder.dns0755.net
but when I type "xiangbuilder.dns0755.net" in http address box,
"The page not find" appears.
What is wrong?
And what should I do?
Here is the detail:

[root@xiangbuilder root]# /etc/init.d/httpd start
Starting httpd: [Fri Jul 4 22:51:55 2003]
[alert] httpd: Could not determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName
[ OK ]
But I have opened the file: /etc/httpd/conf/httpd.conf
and modified the "servername localhost" to "servername 127.0.0.1"

[root@xiangbuilder root]# ./apachectl configtest
bash: apachectl: command not found

Does this mean apache has been installed successfully in my OS?

Thank you.
 
Old 07-05-2003, 11:15 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
About the html folder, you can't just create one and assume your httpd.conf file is going to recognize it? Where does your httpd.conf file state the default root directory is for your web server? I do believe in Redhat 7.2 they still had it in /var/html or /var/www

apachectl command is usually in your /usr/sbin directory by default in most cases, not your /root directory.

The servername is usually what the actual name of your server is, like xiangbuilder.dns0755.net and if you have some DNS server pointing to your actual IP address with that name, that should work.

I would suggest reading some of the howto at http://httpd.apache.org or at www.tldp.org
 
Old 07-05-2003, 07:14 PM   #3
Xiangbuilder
Member
 
Registered: Apr 2003
Location: Shandong province China
Distribution: fedora core 1.0
Posts: 206

Original Poster
Rep: Reputation: 30
"Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.
http://www.linuxquestions.org/rules.php

//moderator.note: closed cuz of Xiangbuilder cross posting it:"

Sorry for that.
I will read some of the howto at http://httpd.apache.org or at www.tldp.org,
if still have troubles, then post here.
Thank you.



Last edited by Xiangbuilder; 07-05-2003 at 07:25 PM.
 
Old 07-05-2003, 09:33 PM   #4
Xiangbuilder
Member
 
Registered: Apr 2003
Location: Shandong province China
Distribution: fedora core 1.0
Posts: 206

Original Poster
Rep: Reputation: 30
I have downloaded apache-2.0.46.tar.gz and installed it with no errors.
This is my process:

$ gzip -d httpd-2_0_NN.tar.gz
$ tar xvf httpd-2_0_NN.tar

$ ./configure --prefix=/usr/local/apache2
$ make
$ make install
So far the process is well, it seems.

Many links in http://httpd.apache.org, for example,
http://httpd.apache.org/docs-2.0/install.html say:
Customize: $ vi PREFIX/conf/httpd.conf
Test: $ PREFIX/bin/apachectl start
but there is no "conf" subfolder in /usr/local and /usr/local/apache2 folder,
there is no file similar to apachectl in /usr/local/bin.

What is wrong?
Thank you.

Last edited by Xiangbuilder; 07-05-2003 at 09:34 PM.
 
Old 07-05-2003, 09:56 PM   #5
jhorvath
Member
 
Registered: Sep 2002
Location: OH, USA
Distribution: 2.6.16-1.2096_FC5 #1
Posts: 245

Rep: Reputation: 30
here is one command that solves damn near all of my problems when i can't find something

`locate` (note:: the first time it is run it may say something about ::slocate.db , no such file or directory :: or something similar, in which case , as root run `updatedb`)

eg. `locate httpd.conf`
`locate apachectl`

usually the httpd.conf file is in $PREFIX/apache2/conf (that is, with a default location , unless another was specified during ./configure) and the apachectl is in $PREFIX/apache2/bin directory...anyway the locate command (man locate)
should find that for you...

(oh...another note:: when trying to `locate` something that was newly installed you must run `updatedb` , because `locate` has no clue of what files were added since the last `updatedb` was performed)

enjoy
 
Old 07-06-2003, 12:48 PM   #6
JanRigter
LQ Newbie
 
Registered: Jul 2003
Location: Netherlands
Distribution: SuSE/Debian
Posts: 26

Rep: Reputation: 15
hmmm...
apachectl doesn't work for me neither
apache2ctl does however...

Cheers,
Jan
 
  


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
Question - (apache?) pylon42 Linux - General 7 03-23-2005 07:55 AM
Apache Question Sideshow Linux - Networking 6 02-13-2004 05:31 PM
another apache question peteABK Linux - Software 8 05-27-2003 02:58 AM
Apache question plisken Linux - Software 1 02-25-2003 02:40 PM
apache question davsingl67 Linux - Newbie 1 12-11-2002 02:04 PM

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

All times are GMT -5. The time now is 01:58 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