LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache on Fedora Core 5 (https://www.linuxquestions.org/questions/linux-general-1/apache-on-fedora-core-5-a-539139/)

Gins 03-20-2007 05:29 PM

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?

macemoneta 03-20-2007 06:28 PM

The configuration files are in /etc/httpd/conf/, with the main file being httpd.conf.

Gins 03-21-2007 03:42 AM

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?

billymayday 03-21-2007 04:27 AM

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

Gins 03-21-2007 04:34 AM

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]#

billymayday 03-21-2007 05:08 AM

Rather than "su root", do "su -"

Gins 03-21-2007 06:57 AM

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 ~]#

billymayday 03-21-2007 07:02 AM

Looks good!

Gins 03-21-2007 07:15 AM

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.

sn68 03-21-2007 08:57 AM

Where to put your web pages

Shilo Carson 03-21-2007 07:25 PM

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.

Gins 03-22-2007 04:05 AM

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.

billymayday 03-22-2007 04:48 AM

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

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


All times are GMT -5. The time now is 12:34 PM.