Greetings! I am trying to install PHP 4.2.3 as a module running with Apache 1.3.26 on a RH7.2 Linux box.
The problem I am having is this: I created a test page (phpinfo.php) with the <? phpinfo(); ?> command and tried to load the page, I get a dialogue box asking if I wish to save or open the file (this also occurs with any other xxxx.php page I try to view in a browser). After a few hours of scouring this list and reading/re-reading the installation instructions for both Apache and PHP,(and pulling out fistfulls of my already disappearing hair), I renamed the page as phpinfo.phtml... and it WORKED! Still no luck with .php pages however :/ I tried reinstalling from the beginning, both Apache and PHP, in case I did something wrong, several times. Same problem. Frankly, I am stumped as to why .phtml works, yet .php refuses to. In httpd.conf, I added the AddType line for both types. The LoadModule and AddModule lines in httpd.conf for PHP appear to be correct as well. I am hoping someone here has some insight on this issue. Here is what I did last: Installed Apache 1.3.26 as follows: removed old install >make clean >./configure --enable-shared=max --enable-module=all --prefix=/webserver --enable-module=so --enable-rule=SHARED_CORE --without-execstrip --server-uid=webuser --server-gid=webuser >make >make install -- tweak httpd.conf with servername and document root >apachectl restart RESULT: Apache appears to work fine Installed PHP4.2.3 as follows: >make distclean > ./configure --with-mysql --with-imap-ssl --with-kerberos --enable-track-vars --with-apxs=/webserver/bin/apxs >make >make install > cp php.ini-dist to proper location and rename to php.ini --tweak httpd.conf as follows: (LoadModule php4_module libexec/libphp4.so is present) (AddModule mod_php4.c is present) Inserted a line AddType application/x-httpd-php .phtml .php (When this failed to solve the problem, I even tried changing it to AddType application/x-httpd-php .php .phtml also tried adding a seperate line for each extension. I even went so far as to try adding the extensions directly into the mime.types file) -- verified engine=on in php.ini file -- verified include path in php.ini file >apachectl restart Page phpinfo.phtml shows up correctly. The page phpinfo.php asks to OPEN/SAVE the file. I would appreciate hearing any ideas on why this is occurring, I am sure I overlooked something obvious or simple ;) Regards, Thistle -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php