Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 07-05-2003, 09:35 AM   #1
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:
but when I type "" 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 for ServerName
[ OK ]
But I have opened the file: /etc/httpd/conf/httpd.conf
and modified the "servername localhost" to "servername"

[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, 12:15 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
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 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 or at
Old 07-05-2003, 08:14 PM   #3
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.

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

Sorry for that.
I will read some of the howto at or at,
if still have troubles, then post here.
Thank you.

Last edited by Xiangbuilder; 07-05-2003 at 08:25 PM.
Old 07-05-2003, 10:33 PM   #4
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, for example, 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 10:34 PM.
Old 07-05-2003, 10:56 PM   #5
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)

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

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



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

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration