Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Rep:
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?
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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?
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.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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]#
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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.
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.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.