Dear friends,
I am having a hairpulling time trying to install )Apache) httpd 2.0.50 with PHP5.0.1.
MySQL will also be a part of the mix eventually, but right not I'm just trying to get
Apache and PHP working together.
I am using the gzipped tarballs for both and attempting to install from source in order
to get all the options the way I want them.
I first ran rpm -e httpd to get rid of the server that comes with the Fedora install.
I've tried a couple of sites suggestions as to running the .configure scripts then make
and make install. Both seem to run to completion without error. I was sure that the
--enable-so option was part of the Apache .configure script as I ran it.
I can start Apache with apachectl start and ps reveals they are there.
I made sure the httpd.conf file included the
LoadModule php5_module module/libphp5.so and
AddType application/x-httpd-php .php .phtml
I verified that the make install put a libphp5.so file exists in
/usr/local/apache/modules
I copied php.ini-dist to /usr/local/lib/php.ini
I also made a file called phpinfo.php which contained:
<?php
phpinfo();
?>
and I put it in /usr/local/apache2/htdocs.
When I try to display that file as
http://localhost/php however, all I get is the
actual script text as shown above - which indicates that Apache did not call
PHP to parse the PHP code and render the page via the phpinfo() call.
Anybody use these two versions of Apache and PHP respectively and get it to
compile from source successfully? Anybody care to share your httpd.conf and
php.ini files with me? Anybody care to guide me through what I'm doing wrong?
Thanks,
Doug
PS, if anybody needs to look at my httpd.conf or php.ini files, I can e-mail them to you.
They are too long to post here - or so I thought.