Jud,
Sorry but I pretty much exhausted my knowledge of PHP/Apache configuration
with that first message :). I am a newbie to Linux, Apache and PHP and
had to get help with my own install.
The only suggestion I have is to check if there are IfModule or IfDefine
statements bracketing your AddType lines. I installed the latest Apache
from a download of a few days ago, and my httpd.conf file contained quite
a few statements like this:
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php3 .php4 .phtml
... similar line for .phps ...
</IfModule>
and then
<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>
So, for the PHP4 support to be loaded, at the very least you need to
define a symbol, HAVE_PHP4. I found that the /etc/rc.d/init.d/httpd
script did this by scanning the /usr/lib/apache dir to enumerate all the
available modules, and defining a HAVE_<modulename> symbol for each,
passed to the httpd executable with the -D flag.
Now, of course if you just run the httpd program, rather than the startup
script httpd, then you will just be running the executable with no defined
symbols, and it won't load support for PHP4 and a variety of other things.
Anyway, that's my best guess -- maybe you have httpd.conf set up properly,
but you need to use the httpd startup script to start Apache in order to
get all the defined symbols right. Of course your httpd.conf and scripts
may well be different from mine but I am using all defaults with the
latest distribution so I think they would be similar.
Hope this helps...
Terry McKiernan
Ugly Software
"If you're looking for Ugly Software, you've come to the right place"
On Sun, 14 Jan 2001, George P.Taylor IX wrote:
> Terry,
>
> Very Ugly of you!
>
> I apologize. Re-checking the file, I had used the lines
>
> AddType application/x-httpd-php .php .php3 . .phtml
> AddType application/x-httpd-php-source .phps
>
> The problem persists. I still get the dialog box asking "Save As..."
>
> Thanks,
>
> Jud
>
>
> -----Original Message-----
> From: The Big Ugly [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 14, 2001 4:18 AM
> To: Taylor, George
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] Problem w/ RH Linux 7, PHP 4, Apache, MySQL
>
>
> George,
>
> I think the problem is in the AddType line. Instead of using a type of
> x-httpd-php4, try x-httpd-php.
>
> HTH,
>
> Terry McKiernan
> Ugly Software
>
> On Thu, 11 Jan 2001, George P. Taylor IX wrote:
>
> > Greetings.
> >
> > I've bought the book _PHP Fast & Easy Web Development_ and have followed
> the
> > instructions precisely.
> >
> > I'm running RH Linux 7.
> >
> > I've successfully installed MySQL, and tested it.
> >
> > I've successfully installed Apache and tested it.
> >
> > I've installed PHP4, and made the configuration changes to httpd.conf
> > suggested.
> >
> > Specifically, I modified httpd.conf by adding the lines
> >
> > AddType application/x-httpd-php4 .php .php3 . php4 .phtml
> > AddType application/x-httpd-php4-source .phps
> >
> > Then I stopped and restarted Apache, then tested it by creating the file
> > "phpinfo.php" consisting of the single line below.
> >
> > <? phpinfo(); ?>
> >
> > when I point the netscape browser at http://localhost/phpinfo.php, that
> > single line of text shows up. It seems that either Apache is failing to
> > pass the file to PHP for parsing, or PHP is receiving the file but not
> > parsing it.
> >
> > Question 1: In order to isolate the problem to either PHP or Apache, is
> > there a way to test to ensure that PHP4 is running without using Apache?
> >
> > Question 2: Are there other changes that need to be made to httpd.conf
> that
> > I am unaware of?
> >
> > Thanks!
> >
> >
> >
> >
> >
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]