PHP 4 and SuSE 6.x?

From: Date: Wed, 06 Dec 2000 00:18:04 +0000
Subject: PHP 4 and SuSE 6.x?
Groups: php.general 
Request: Send a blank email to php-general+get-28792@lists.php.net to get a copy of this message
Situation: Apache/1.3.12 (Unix) (SuSE/Linux) PHP/4.0.3pl1 mod_ssl/2.4.7 OpenSSL/0.9.4 running on SuSE 6.3 with patches from 6.4 (needed to make PHP 4 load at all). Apache loads without errors, but doesn't show mod_php4.c when started with -l option. A test script, called test.php with copies named test.php3, test.php4 and test.phtml are in a web server VirtualHost. AddTypes and stuff should be correct (and no, not [only] inside the VirtualHost statement). Ok... so anyone got any ideas why the hell it won't work? Every php file (.php, .php4 and .phtml) with the x-httpd-php or x-httpd-php4 type is shown as unknown file type, or so it seems, at least it's not parsed. Netscape wants to download the file. A .php3 file (with x-httpd-php3 type) is shown as text/plain (the default encoding in this config). What can it be? $ cat test.php <html><body><p>dumdidum</p> <?php phpinfo(); ?> </body></html> $ grep -2in PHP /etc/httpd/httpd.conf 206-# LoadModule foo_module libexec/mod_foo.so 207- 208:<IfDefine PHP4> 209:LoadModule php4_module /usr/lib/apache/libphp4.so 210:#LoadModule php4_module libexec/libphp4.so 211-</IfDefine> 212-<IfDefine PERL> -- 305-AddModule mod_ssl.c 306-</IfDefine> 307:<IfDefine PHP4> 308:#AddModule /usr/lib/apache/libphp4.so 309:AddModule mod_php4.c 310-</IfDefine> 311-<IfDefine PERL> -- 850-# make certain files to be certain types. 851-# 852:# For example, the PHP3 module (not part of the Apache distribution - see 853:# http://www.php.net) will typically use: 854-# 855:#<IfDefine PHP4> 856:AddType application/x-httpd-php .php 857:AddType application/x-httpd-php4 .php4 858:AddType application/x-httpd-php4-source .phps 859:AddType application/x-httpd-php4 .phtml 860-#</IfDefine> 861- -- 1188-ScriptAlias /cgi-bin/ /home/some/dir/ 1189- 1190:AddType application/x-httpd-php .php 1191:AddType application/x-httpd-php4 .php4 1192:AddType application/x-httpd-php4-source .phps 1193:AddType application/x-httpd-php4 .phtml 1194- 1195-</VirtualHost> Sincerely moeffju

« previous php.general (#28792) next »