RE: [PHP] php4 on RedHat 7.1
Your httpd.conf configuration should look something like this: AddType application/x-httpd-php .php .phtml .php3 .php4 AddType application/x-httpd-php-source .phps -Original Message- From: j2n tech [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 8:42 PM To: [EMAIL PROTECTED] Subject: [PHP] php4 on RedHat 7.1 I'm trying to get a webmail client to work under RH 7.1 with Apache 1.3.19. I downloaded php-4.0.4pl and configured and installed it. Now when I try to bring up a php page it trys to download it instead of execute. I added the AddType line for php4 in my httpd.conf but it made no difference. I noticed Apache 1.3.19 with RH7.1 treats modules differently with the IfDefine functions...am i missing something here? Anybody have any idea how I might be able to get this to work? Thanks. --j2n. -- PHP General 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 General 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]
Re: [PHP] php4 on RedHat 7.1
Yes, it has that in there right out of the box like this: IfDefine HAVE_PHP4 LoadModule php4_modulemodules/libphp4.so /IfDefine # # AddType: allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # # The following is for PHP4 (conficts with PHP/FI, below): IfModule mod_php4.c AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source .phps /IfModule It comes like that from a clean install of RH 7.1, but why is it not working? Any Ideas? Ralph Guzman wrote in message ... Your httpd.conf configuration should look something like this: AddType application/x-httpd-php .php .phtml .php3 .php4 AddType application/x-httpd-php-source .phps -Original Message- From: j2n tech [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 8:42 PM To: [EMAIL PROTECTED] Subject: [PHP] php4 on RedHat 7.1 I'm trying to get a webmail client to work under RH 7.1 with Apache 1.3.19. I downloaded php-4.0.4pl and configured and installed it. Now when I try to bring up a php page it trys to download it instead of execute. I added the AddType line for php4 in my httpd.conf but it made no difference. I noticed Apache 1.3.19 with RH7.1 treats modules differently with the IfDefine functions...am i missing something here? Anybody have any idea how I might be able to get this to work? Thanks. --j2n. -- PHP General 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 General 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 General 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]
Re: [PHP] php4 on RedHat 7.1
Take a look at /var/log/httpd/error_log. Is there an entry for the very first time the server was run (before you installed PHP 4.04pl)? Does it list PHP/4.0 as installed? The initial entry in my error_log from the Wolverine beta of 7.1 shows: [Fri Apr 27 12:36:13 2001] [notice] Apache/1.3.14 (Unix) (Red-Hat/Linux) mod_ssl/2.7.1 OpenSSL/0.9.5a DAV/1.0.2 PHP/4.0.4pl1 mod_perl/1.24_01 configured -- resuming normal operations [Fri Apr 27 12:36:13 2001] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) In my case the PHP module was loaded by default (along with ssl and mod_perl) when I chose the install everything option in RedHat. If it appears in the log, then the module is running. Put a file called info.php into /var/www/html with just the line ? phpinfo() ? in it. What happens when you view it from a browser? If it's still not working, I suggest you try uninstalling your version of PHP and installing the PHP4 rpm that comes with RedHat instead. Works fine for me. Peter . wrote: Yes, it has that in there right out of the box like this: IfDefine HAVE_PHP4 LoadModule php4_modulemodules/libphp4.so /IfDefine # # AddType: allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # # The following is for PHP4 (conficts with PHP/FI, below): IfModule mod_php4.c AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source .phps /IfModule It comes like that from a clean install of RH 7.1, but why is it not working? Any Ideas? Ralph Guzman wrote in message ... Your httpd.conf configuration should look something like this: AddType application/x-httpd-php .php .phtml .php3 .php4 AddType application/x-httpd-php-source .phps -Original Message- From: j2n tech [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 8:42 PM To: [EMAIL PROTECTED] Subject: [PHP] php4 on RedHat 7.1 I'm trying to get a webmail client to work under RH 7.1 with Apache 1.3.19. I downloaded php-4.0.4pl and configured and installed it. Now when I try to bring up a php page it trys to download it instead of execute. I added the AddType line for php4 in my httpd.conf but it made no difference. I noticed Apache 1.3.19 with RH7.1 treats modules differently with the IfDefine functions...am i missing something here? Anybody have any idea how I might be able to get this to work? Thanks. --j2n. -- PHP General 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 General 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 General 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 General 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]
Re: [PHP] php4 on RedHat 7.1
Peter H. Lemieux [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Take a look at /var/log/httpd/error_log. Is there an entry for the very first time the server was run (before you installed PHP 4.04pl)? Does it list PHP/4.0 as installed? The initial entry in my error_log from the Wolverine beta of 7.1 shows: [Fri Apr 27 12:36:13 2001] [notice] Apache/1.3.14 (Unix) (Red-Hat/Linux) mod_ssl/2.7.1 OpenSSL/0.9.5a DAV/1.0.2 PHP/4.0.4pl1 mod_perl/1.24_01 configured -- resuming normal operations [Fri Apr 27 12:36:13 2001] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) I chose the Install Everything Option, but when I start Apache, the error_log reports only this: Apache/1.3.19 (Red-Hat/Linux) configured -- resuming normal operations Yet the httpd.conf file would seem to tell me that I have all the modules installed for php4. It's confusing. Also, when I complie php404pl1, does it automatically update the libphp4.so in the /etc/httpd/modules? I thought I was getting somewhere after I complied php404pl1, but when I try to start Apache it now dumps out with the error: Unable to load libphp4.so into server: undefined symbol: mxdriver. Sigh, I had this working on my RH 6.2 box, I assumed it would be easier to set it up on 7.1 but I guess not :( Anyway, maybe you can point me in the right direction here? Thanks. j2n. -- PHP General 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] php4 on RedHat 7.1
I'm trying to get a webmail client to work under RH 7.1 with Apache 1.3.19. I downloaded php-4.0.4pl and configured and installed it. Now when I try to bring up a php page it trys to download it instead of execute. I added the AddType line for php4 in my httpd.conf but it made no difference. I noticed Apache 1.3.19 with RH7.1 treats modules differently with the IfDefine functions...am i missing something here? Anybody have any idea how I might be able to get this to work? Thanks. --j2n. -- PHP General 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]