Installation of PHP and Apache in RedHat 7.0
| From: | Sami Kristeri Maisniemi | Date: | Mon, 05 Feb 2001 10:34:13 +0000 |
| Subject: | Installation of PHP and Apache in RedHat 7.0 | ||
| Groups: | php.general php.install | ||
| Request: | Send a blank email to php-general+get-38200@lists.php.net to get a copy of this message | ||
If you have PHP 4.0 and Apache running in RedHat 7.0, you can propably
solve this problem immediately, but all advices are needed.
I have a beginner's problem, which is related to RedHat's unordinary way
to implemt Apache and PHP. I received detailed instructions how to install
both Apache and PHP, but the problem occurred when I tried to start Apache
and make a simple PHP script to work in my Linux computer.
First I was unable to locate 'apachectl' program to start apache. Then I
finally found from RedHat 7.0 reference guide that Apache can be started
by typing: './httpd start' which is located at '/etc/rc.d/init.d/'
directory.
The result is OK and when I type './httpd status', I receive a message
"... server is running ...".
However, my simple PHP script:
<?php
phpinfo();
?>
is not interpreted at all. Also the test cgi program of Apache is not
interpreted (I do not have any idea how that is implemented). I think
I installed PHP 4.0 and configured Apache's configuration file properly,
but is there anyway to verify that? Should I do also something else like
move the PHP script into a specified directory? How can I verify that
Apache is properly installed?
Regards, Sami
-------------------------------------------------------------------------
Sami Maisniemi tel: +358 9 4580 854
Helsinki University of Technology mobile: +358 40 7499 088
Department of Electrical and email: smaisnie@cc.hut.fi
Communication Engineering sami.maisniemi@nokia.com
-------------------------------------------------------------------------