LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-25-2009, 03:55 AM   #1
sulacco
Member
 
Registered: Apr 2006
Posts: 46

Rep: Reputation: 15
can't start apache server after configuring, compiling and installing.


Hi, ppl!
I've decided to install apache server from ground
zero. So I've done next things:
1)downloaded source tar with apache2
2)unzipped it
3)./configure(d) it
4)make
5)make install
...But!!! I can't start it. apachectl in /usr/local/apache2/bin
error answer is:
<code>
[root@dhcppc1 bin]# apachectl start
httpd: Could not open configuration file /etc/httpd/conf/httpd.conf: No such file or directory
</code>

Note!!! before I've compiled I deleted directory
/etc/httpd because I think that while compiling
everything necessary would be installed and any
directories would be made.
The problem is: How to start apache?
 
Old 04-25-2009, 04:46 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
When you removed /etc/httpd, did you make any backups? Maybe next time you should. In the directory you build Apache2 in there should be one or more example configuration files that may or may not have been installed. Search for them, install if necessary and configure. Then run 'apachectl configtest' to see if that configuration will work.
 
Old 04-25-2009, 05:21 AM   #3
sulacco
Member
 
Registered: Apr 2006
Posts: 46

Original Poster
Rep: Reputation: 15
why should I do backups of /etc/httpd if this is
old version and I'm trying to install new one?
 
Old 04-25-2009, 08:29 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,072

Rep: Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969Reputation: 1969
I guess there is still apachectl in your PATH.
Use:
Code:
/usr/local/apache2/bin/apachectl start
to start the apache you've installed from sources.
 
Old 05-01-2009, 06:10 AM   #5
sulacco
Member
 
Registered: Apr 2006
Posts: 46

Original Poster
Rep: Reputation: 15
with errors is done. That was because SELinux dont allow.
but now command:
apachectl start is good
but it is just silently failed to run httpd.
I looked ps -A and there is no httpd running.
In logs nothing either.
any ideas?
 
Old 05-01-2009, 08:31 AM   #6
vargstein
LQ Newbie
 
Registered: Apr 2009
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by sulacco View Post
with errors is done. That was because SELinux dont allow.
but now command:
apachectl start is good
but it is just silently failed to run httpd.
I looked ps -A and there is no httpd running.
In logs nothing either.
any ideas?
why not configure apache first...?
 
Old 05-01-2009, 12:51 PM   #7
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 209Reputation: 209Reputation: 209
This likely won't help, but, some time ago, when I ran a web server with apache2, the command I used to start it was "apache2 -k start", or "apache2 -k restart".
 
  


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
installing configuring and compiling a kernel vidya75 Linux - Software 1 02-27-2006 04:18 PM
Configuring my web server with APACHE pkrishna10 Linux - Newbie 2 12-11-2004 06:44 AM
Installing+Configuring Apache 2.0.49 plus extras PhuckFonix Linux - Newbie 1 04-03-2004 06:54 PM
Installing and Configuring apache and php goldfish Linux - Newbie 21 10-11-2003 02:50 PM
Tuts on installing/configuring Apache Web server! Jnox Linux - General 1 01-22-2002 08:38 PM

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

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