LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-20-2007, 05:29 PM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Rep: Reputation: 47
Apache on Fedora Core 5


I am running FC5 on a 64 bit computer. I have Fedora Core 64 bit version.
It seems Apache server is installed by default.
How do I configure it?
------------------------------
[Nissanka@c83-251-145-130 ~]$ su root
Password:
[root@c83-251-145-130 Nissanka]# find / -name httpd
/etc/logrotate.d/httpd
/etc/sysconfig/httpd
/etc/httpd
/etc/rc.d/init.d/httpd
/var/lock/subsys/httpd
/var/log/httpd
/usr/lib64/httpd
/usr/sbin/httpd
[root@c83-251-145-130 Nissanka]#
---------------------------------------------------------
The above shows it is on the system.
How do I configure it? How do I find the version number?

Last edited by Gins; 03-20-2007 at 05:30 PM.
 
Old 03-20-2007, 06:28 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The configuration files are in /etc/httpd/conf/, with the main file being httpd.conf.
 
Old 03-21-2007, 03:42 AM   #3
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks macemoneta
It didn't work.
--------------------------------------

[root@c83-251-145-130 Nissanka]# cd /etc/httpd
[root@c83-251-145-130 httpd]# ./configure
bash: ./configure: No such file or directory
[root@c83-251-145-130 httpd]#
-----------------------------------------
What is the problem?
 
Old 03-21-2007, 04:27 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Why did you want ./configure? Apache was installed from a package, so "service httpd start" should (at least attempt to) fire it up. "chkconfig httpd on" will start it on restart

Last edited by billymayday; 03-21-2007 at 04:34 AM.
 
Old 03-21-2007, 04:34 AM   #5
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks billymayday.
No, the commands you suggested were negative.

[Nissanka@c83-251-145-130 ~]$ su root
Password:
[root@c83-251-145-130 Nissanka]# chkconfig httpd on
bash: chkconfig: command not found
[root@c83-251-145-130 Nissanka]# chkconfig httpd
bash: chkconfig: command not found
[root@c83-251-145-130 Nissanka]#
[root@c83-251-145-130 Nissanka]# service httpd start
bash: service: command not found
[root@c83-251-145-130 Nissanka]#
 
Old 03-21-2007, 05:08 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Rather than "su root", do "su -"
 
Old 03-21-2007, 06:57 AM   #7
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I hope now it is working.

[Nissanka@c83-251-145-130 ~]$ su -
Password:
[root@c83-251-145-130 ~]# chkconfig httpd on
[root@c83-251-145-130 ~]# service httpd start
Starting httpd:
[root@c83-251-145-130 ~]#
 
Old 03-21-2007, 07:02 AM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Looks good!
 
Old 03-21-2007, 07:15 AM   #9
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
However, the following file drew a blank.
--------------------------
<html>
<head>
<title>My Simple Page</title>
</head>
<body>

<?php echo "Hi There"; ?>
</body>
</html>
[Nissanka@c83-251-145-130 ~]$
-------------------------------
The name of the file is 'filename.php '
I got a blank screen. I just opened the file in Firefox browser.
Why is that?
This is my home computer. I don't have a bunch of computers.
 
Old 03-21-2007, 08:57 AM   #10
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
Where to put your web pages
 
Old 03-21-2007, 07:25 PM   #11
Shilo Carson
LQ Newbie
 
Registered: Oct 2006
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by Gins
However, the following file drew a blank.
--------------------------
<html>
<head>
<title>My Simple Page</title>
</head>
<body>

<?php echo "Hi There"; ?>
</body>
</html>
[Nissanka@c83-251-145-130 ~]$
-------------------------------
The name of the file is 'filename.php '
I got a blank screen. I just opened the file in Firefox browser.
Why is that?
This is my home computer. I don't have a bunch of computers.
Did you open the file with Firefox via the filesystem, or through the web server?

The page needs to be opened through the web server in order for the php to be interpreted (assuming php is set up properly). If you open it up through the file system, it won't do much of anything.
 
Old 03-22-2007, 04:05 AM   #12
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Thanks sn68 and shilo for the comments.
I just opened using Firefox.
I am very busy at the moment. I will come back to you later on. Now I don't have time.

I don't have a network of computers at the moment. I just have a single computer connected to the Internet.
 
Old 03-22-2007, 04:48 AM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Don't confuse things - php may not be working. Try something really basic like

<a>test</a> in test.html
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache - Fedora Core 5 Phil Armstrong Linux - General 10 11-22-2006 03:27 AM
Fedora Core 5 And Apache litenin Linux - General 3 05-23-2006 04:44 PM
apache problem in fedora core 3 BloodyCat Linux - Software 1 09-20-2005 02:00 PM
in apache on my fedora core 3??!! khafanus Linux - Software 2 02-24-2005 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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