LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-24-2013, 08:42 AM   #1
viknesh
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Rep: Reputation: Disabled
apache configuration


I configured apache via ./configure in /home/export/apache path.
To uninstall it i delete the export dir from home.
I created a another location web/apache in /home.
And i configured apache in this location.
When i start the apache it shows
httpd: Could not open configuration file /home/export/apache/conf/httpd.conf: No such file or directory

give me the proper steps to start the apache.
It's really very very urgent.
Help me.
 
Old 07-24-2013, 09:01 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,990

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
The configuration files are not in the same location on all Linux distributions. You forgot to mention which Linux distribution you are using?
A /home/export directory is an unusual location for Apache. Most major Linux distributions will install and configure Apache for you if you download from their respositories. If you want directories/files in your /home/user directory, the standard is a public_html directory which is available on install on many Linux distributions. Did you modify the httpd.conf file to show these locations?
 
Old 07-24-2013, 09:25 AM   #3
viknesh
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
yancek reply

I am using fedora.
Now My apache configuration location is /home/web/apache
Previously i build the apache in /home/export/apache
I deleted this export location and again build in web location using
#./configure --prefix=/home/web/apache --enable-modules=all --enable-proxy --enable-mods-shared=all --enable-ssl --enable-so --with-mpm=worker --enable-lib64 --libdir=/usr/lib64
#make
#make install
And goto the /home/web/apache/bin and run
#./apachectl -k start
It shows
httpd: Could not open configuration file /home/export/apache/conf/httpd.conf: No such file or directory
I verified the ServerRoot and DocumentRoot.it is also in /home/web/apache and htdocs.
Now i want to start the apache.
Give me the guide.
 
Old 07-24-2013, 09:34 AM   #4
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Why do you want to install apache using source code.
Are you not able to install using command line.

What is the version of fedora?
Is it not working for you
http://www.if-not-true-then-false.co...-red-hat-rhel/

If you are not expert. I will suggest you to install apache through command line.

but if you insist using source code, have you read this before doing it.
http://httpd.apache.org/docs/2.2/install.html

Last edited by eklavya; 07-24-2013 at 09:35 AM.
 
Old 07-24-2013, 09:36 AM   #5
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,116

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Code:
yum install httpd
Unless you are installing a newer version for some specific functionality, this is the way to go.
 
Old 07-24-2013, 09:46 AM   #6
viknesh
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
apache installation error

I know how to install httpd using yum.
But in ./configure method we can specify the location wer i want to install the package.
Thats the only reason i choose this one.
Now i'm in problem.
I want to fix it before tonight.
Give me the proper guide to start the apache.
If anyone is willing means i ll provide teamviewer access and we can interact via skype.
 
Old 07-24-2013, 09:50 AM   #7
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,116

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Ok. how about posting your command line history so we can see what you have done with your apache and directories. should be easy to fix.
 
Old 07-24-2013, 10:04 AM   #8
viknesh
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
apache installation error

Ok szboardstretcher.
R u willing to fix it.
 
Old 07-24-2013, 10:06 AM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,116

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Sure. how about posting your command line history so we can see what you have done with your apache and directories. should be easy to fix.
 
Old 07-24-2013, 10:21 AM   #10
viknesh
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you for all who were repiled for my post.
With my own involvement i successfully start the apache.
Especially i proud szboardstretcher who is willing to solve my problem.


Thanks and regards
Viknesh.K.M
meetkmv@gmail.com
 
Old 07-24-2013, 10:24 AM   #11
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,116

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
No problem. But, it's considered proper etiquette to post the fix to your original question, so if others have similar issues they are able to fix their problem. Please consider doing so.
 
  


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
Where to Add mod_evasive configuration to Apache configuration file.? Unknown3r Linux - Newbie 1 11-04-2012 11:09 AM
apache configuration sasser *BSD 4 09-09-2012 01:25 PM
Migrating Apache 1.3 configuration files to Apache 2 kaplan71 Linux - Software 0 03-28-2007 12:05 PM
Apache configuration BoardinBum Linux - Networking 3 12-29-2004 06:53 AM
apache configuration hardigunawan Linux - Newbie 1 06-21-2002 09:07 AM


All times are GMT -5. The time now is 03:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration