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? |
The configuration files are in /etc/httpd/conf/, with the main file being httpd.conf.
|
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
|
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]# |
Rather than "su root", do "su -"
|
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 ~]# |
Looks good!
|
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. |
|
Quote:
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. |
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. |
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. |